Translation template extractor

Gábor Hojtsy - March 20, 2007 - 11:01

The goal of the Translation Template Extractor project is to provide command line and web based Gettext translation template extractor functionality for Drupal. These translation templates are used by teams to translate Drupal to their language of choice. There are basically two ways to use the contents of this project:

  • Copy potx.inc and potx-cli.php to the directory you would like to generate translation templates for and run php potx-cli.php. The translation templates will get generated as separate files in the current directory.
  • Install the module on a Drupal site as you would with any other module. Once potx module is turned on, you can go to the "Extract strings" tab on the Locale administration interface, select the module or modules you want to have a translation template for, and submit the form. You will get one single template file generated.

The command line functionality is quite mature now, because it was basically carried over and refactored from extractor.php, previously hosted as part of the translation templates themselfs. The web based functionality is still in its early stages.

Note: If you only get a white browser screen as response to the extraction request, the memory limit for PHP on the server is probably too low, try to set that higher.

Releases

Official releasesDateSizeLinksStatus
6.x-2.22008-Oct-1334.53 KBRecommended for 6.xThis is currently the recommended release for 6.x.
5.x-1.32008-Sep-0930.06 KBRecommended for 5.xThis is currently the recommended release for 5.x.
Development snapshotsDateSizeLinksStatus
6.x-2.x-dev2008-Dec-0235.45 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.
5.x-1.x-dev2008-Sep-1030.2 KBDevelopment snapshotDevelopment snapshots are automatically regenerated and their contents can frequently change, so they are not recommended for production use.


 
 

Drupal is a registered trademark of Dries Buytaert.