Login   Register  
PHP Classes
elePHPant
Icontem

PHP Locale Language Strings: Get locale strings for multi-language sites

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2013-06-04 (1 year ago) RSS 2.0 feedNot enough user ratingsTotal: 321 This week: 1All time: 6,481 This week: 1,134Up
Version License PHP version Categories  
language 1.0BSD License5.0Localization, PHP 5
Description Author  

This class can get locale strings for multi-language sites.

It can display in a Web page the list of languages for the user to select. The selected language can be stored in a cookie to keep track of the user preferred language.

The class can load .INI files with application strings for the selected language.

The class can lookup for a given string in the loaded application texts and either output it or return it as a string.

Picture of frizzo28
Name: frizzo28 <contact>
Classes: 1 package by
Country: Italy Italy
Age: ???
All time rank: 3368137 in Italy Italy
Week rank: 926 Up38 in Italy Italy Up

  Files folder image Files  
File Role Description
Files folder imageflags (3 files)
Files folder imagelanguages (3 files)
Accessible without login Plain text file advanced_example.php Example Example with all parameters
Accessible without login Plain text file basic_example.php Example Simple example
Plain text file language.php Class Main class file

  Files folder image Files  /  flags  
File Role Description
  Accessible without login Image file de.png Icon German icon
  Accessible without login Image file en.png Icon English icon
  Accessible without login Image file it.png Icon Italian icon

  Files folder image Files  /  languages  
File Role Description
  Accessible without login Plain text file de.ini Conf. German translation
  Accessible without login Plain text file en.ini Data English translation
  Accessible without login Plain text file it.ini Data Italian translation

 Version Control Unique User Downloads Download Rankings  
 0%Total:321All time:6,481
 This week:1This week:1,134Up