PHP Classes

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 enough user ratingsTotal: 397 All time: 6,584 This week: 105Up
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: 47
All time rank: 178851 in France France
Week rank: 314 Up14 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  
 0%
Total:397
This week:0
All time:6,584
This week:105Up