PHP Classes

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

Recommend this page to a friend!
  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 (3 years ago) RSS 2.0 feedStarStar 39%Total: 384 All time: 6,338 This week: 1,042Up
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
  Performance   Level  
Name: frizzo28 <contact>
Classes: 1 package by
Country: Italy Italy
Age: ???
All time rank: 3357136 in Italy Italy
Week rank: 1549 Up64 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  
This week:0
All time:6,338
This week:1,042Up
 User Ratings  
 All time