PHP Language Selector class: Get texts for the current language from globals

Recommend this page to a friend!
  Info   View files Example   View files View files (8)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 140 This week: 1All time: 9,004 This week: 341Up
Version License PHP version Categories
php-language-selecto 1.0.1MIT/X Consortium ...5Localization, PHP 5
Description Author

This package can get texts for the current language from globals.

It can set the current application language to a certain language by specifying the associated language identifier name.

The class can load the texts for the specified language from scripts that are loaded dynamically.

Those scripts contain code that set a global variable with an array of texts which defines the translation of each string to the language that is set.

Picture of Muhammad Umer Farooq
Name: Muhammad Umer Farooq <contact>
Classes: 46 packages by
Country: Pakistan Pakistan
Innovation award
Innovation award
Nominee: 4x

Details

PHP Language Selector class

This package Can help create website support multi-language.

This package support 1. Language string/code seperate form html/php. 2. If language string/key not found in language file it return key that you supply/provide. 3. Require String class https://github.com/Lablnet/PHP-String-class

Description

This package can get texts for the current language from globals. It can set the current application language to a certain language by specifying the associated language identifier name. The class can load the texts for the specified language from scripts that are loaded dynamically. Those scripts contain code that set a global variable with an array of texts which defines the translation of each string to the language that is set.

  Files folder image Files  
File Role Description
Files folder imagecore (1 file, 3 directories)
Accessible without login Plain text file example.php Example Example script
Accessible without login Plain text file readme.md Doc. Documentation

  Files folder image Files  /  core  
File Role Description
Files folder imageclasses (2 files)
Files folder imagelibraries (1 file)
Files folder imagelocal (2 files)
  Accessible without login Plain text file init.php Aux. Auxiliary script

  Files folder image Files  /  core  /  classes  
File Role Description
  Plain text file Language.php Class Class source
  Plain text file String.php Class Class source

  Files folder image Files  /  core  /  libraries  
File Role Description
  Accessible without login Plain text file language.php Example Example script

  Files folder image Files  /  core  /  local  
File Role Description
  Accessible without login Plain text file en.php Aux. Auxiliary script
  Accessible without login Plain text file ur.php Aux. Auxiliary script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:140
This week:1
All time:9,004
This week:341Up

For more information send a message to info at phpclasses dot org.