Login   Register  
PHP Classes
elePHPant
Icontem

POT Creator: Build application translation files for gettext

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 (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2012-01-18 (2 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 407 All time: 5,857 This week: 1,526Up
Version License PHP version Categories  
pot-creator 1.0MIT/X Consortium License5.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: 30
All time rank: 137516 in China China
Week rank: 498 Up4 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:407All time:5,857
 This week:0This week:1,526Up