PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStar 38%Total: 402 All time: 6,556 This week: 79Up
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: 3548141 in Italy Italy
Week rank: 170 Up7 in Italy Italy Up

  Files folder image Files (9)  
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 (9)  /  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 (9)  /  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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:402
This week:0
All time:6,556
This week:79Up
 User Ratings  
 
 All time
Utility:56%StarStarStar
Consistency:56%StarStarStar
Documentation:-
Examples:43%StarStarStar
Tests:-
Videos:-
Overall:38%StarStar
Rank:3986