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    
Ratings Unique User Downloads Download Rankings
StarStar 38%Total: 400 All time: 6,555 This week: 339Up
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: 3542141 in Italy Italy
Week rank: 312 Up14 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:400
This week:0
All time:6,555
This week:339Up
 User Ratings  
 
 All time
Utility:56%StarStarStar
Consistency:56%StarStarStar
Documentation:-
Examples:43%StarStarStar
Tests:-
Videos:-
Overall:38%StarStar
Rank:3897