AlText: Translate texts extracted from code into INI files

Recommend this page to a friend!
  Info   Example   View files (9)   Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 163 All time: 8,688 This week: 309
Version License PHP version Categories
altext 1.0GNU General Publi...5Localization, PHP 5, Parsers
Description Author

This package can translate texts extracted from code into INI files.

It provides classes that can parse PHP code and extract text strings to be translated by detecting calls to the function altext().

The extracted texts are stored in .INI files that can be loaded by the application scripts to get the localized texts into different idioms.

The altext() function is similar to the PHP gettext() function. It uses text defined in an INI file with translations for the texts and returns the respective translated text using an hash of the requested text.

There is also a class that can merge existing translations with new ones extracted from more up to date source code.

Recommendations
Picture of Everton da Rosa
  Performance   Level  
Name: Everton da Rosa <contact>
Classes: 17 packages by
Country: Brazil Brazil
Age: 39
All time rank: 84859 in Brazil Brazil
Week rank: 771 43 in Brazil Brazil
Innovation award
Innovation award
Nominee: 3x

  Files  
File Role Description
altext.merge.php Class Auxiliary class
altext.parser.php Class Auxiliary class
altext.php Aux. Main script file
index.php Example Example of use
merge.php Aux. Auxiliary file
merger.bat Data Auxiliary file
parse.bat Data Auxiliary file
parser.php Aux. Auxiliary file
pt_BR.ini Data Example of use

 Version Control Unique User Downloads Download Rankings  
 0%
Total:163
This week:0
All time:8,688
This week:309

For more information send a message to info at phpclasses dot org.