Login   Register  
PHP Classes
elePHPant
Icontem

i18n_: Get application text from class constants

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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 (3 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 384 All time: 6,018 This week: 1,492Up
Version License PHP version Categories  
i18n_ 1.0.0GNU General Public Lice...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: 38
All time rank: 170151 in France France
Week rank: 1882 Down50 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:384All time:6,018
 This week:0This week:1,492Up