PHP Classes
elePHPant
Icontem

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    
Last Updated Ratings Unique User Downloads Download Rankings
2011-08-20 (5 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 392 All time: 6,279 This week: 1,099Up
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
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  
 0%
Total:392
This week:0
All time:6,279
This week:1,099Up