PHP Classes
elePHPant
Icontem

AlText: Translate texts extracted from code into INI files

Recommend this page to a friend!
  Info   View files Example   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-06-23 (3 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 159 All time: 8,616 This week: 437Up
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
  Performance   Level  
Name: Everton da Rosa <contact>
Classes: 17 packages by
Country: Brazil Brazil
Age: 38
All time rank: 86761 in Brazil Brazil
Week rank: 168 Up8 in Brazil Brazil Up
Innovation award
Innovation award
Nominee: 3x

  Files folder image Files  
File Role Description
Plain text file altext.merge.php Class Auxiliary class
Plain text file altext.parser.php Class Auxiliary class
Accessible without login Plain text file altext.php Aux. Main script file
Accessible without login Plain text file index.php Example Example of use
Accessible without login Plain text file merge.php Aux. Auxiliary file
Accessible without login Plain text file merger.bat Data Auxiliary file
Accessible without login Plain text file parse.bat Data Auxiliary file
Accessible without login Plain text file parser.php Aux. Auxiliary file
Accessible without login Plain text file pt_BR.ini Data Example of use

 Version Control Unique User Downloads Download Rankings  
 0%
Total:159
This week:0
All time:8,616
This week:437Up