PHP Classes

POT Creator: Build application translation files for gettext

Recommend this page to a friend!
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 441 This week: 1All time: 6,242 This week: 560Up
Version License PHP version Categories
pot-creator 1.0MIT/X Consortium ...5.0Localization, PHP 5, Files and Folders
Description 

Author

This class can automatically build application translation files for gettext.

It can traverse recursively all PHP application files in a given directory.

The class can extract all the application strings and generates a .pot file with all texts ready to be translated to other idioms for use in internationalized applications with the gettext extension.

Innovation Award
PHP Programming Innovation award nominee
January 2012
Number 6
PHP has the gettext extension that is meant to help creating applications ready for internationalization.

This means that the extension can get the text messages used in the application from files that contain the translation of the messages for the different idioms that the application supports.

This class can help building those files traversing all PHP files of a project and extracting the text messages from them.

Manuel Lemos
Picture of Peter He
Name: Peter He <contact>
Classes: 2 packages by
Country: China China
Age: 39
All time rank: 134616 in China China
Week rank: 411 Up3 in China China Up
Innovation award
Innovation award
Nominee: 1x

  Files folder image Files  
File Role Description
Files folder imageexample (4 directories)
Accessible without login Plain text file example.php Example Example file
Plain text file POTCreator.php Class Main class file

  Files folder image Files  /  example  
File Role Description
Files folder imagecontroller (1 file)
Files folder imagelanguage (1 file)
Files folder imagemodel (1 file)
Files folder imageview (1 file)

  Files folder image Files  /  example  /  controller  
File Role Description
  Accessible without login Plain text file controller.php Example Example file

  Files folder image Files  /  example  /  language  
File Role Description
  Accessible without login Plain text file example.pot Output POT file

  Files folder image Files  /  example  /  model  
File Role Description
  Accessible without login Plain text file model.php Example Example file

  Files folder image Files  /  example  /  view  
File Role Description
  Accessible without login Plain text file view.tpl Example Example file

 Version Control Unique User Downloads Download Rankings  
 0%
Total:441
This week:1
All time:6,242
This week:560Up