i18n_: Get application text from class constants

Recommend this page to a friend!
  Info   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 395 All time: 6,529 This week: 313Up
Version License PHP version Categories
i18n_ 1.0.0GNU General Publi...5.3Localization, PHP 5
Description Author

This class can get application text translations from class constants.

It can get application texts for a given idiom by accessing the respective class constants that have the text of the selected idiom.

Applications should create separate classes for each of the supported idioms. Those classes should have constants defined for each of the supported text strings for which the translations are needed.

The class supports both static translation texts or texts with parameters. The parameterized functions are retrieved by calling static functions passing the application parameters.

Picture of Martin Lacroix
Name: Martin Lacroix <contact>
Classes: 4 packages by
Country: France France
Age: 45
All time rank: 178250 in France France
Week rank: 841 Up28 in France France Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files  
File Role Description
Accessible without login Plain text file firstExample Example simple example
Plain text file i18n Class main class
Accessible without login Plain text file i18nDoc Doc. Documentation
Accessible without login Plain text file secondExample Example Complex architecture using derivated classes

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:6,529
This week:313Up
For more information send a message to info at phpclasses dot org.