PHP Classes

i18n_: Get application text from class constants

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
Not enough user ratingsTotal: 398 All time: 6,590 This week: 455Up
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: 48
All time rank: 178851 in France France
Week rank: 227 Up11 in France France Up
Innovation award
Innovation award
Nominee: 2x

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

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:398
This week:0
All time:6,590
This week:455Up