Download & Extend

Translation template extractor

The Translation template extractor provides a web based and a command line Gettext translation template extractor interface for Drupal as well as a reusable API to look for translatable strings and translatability errors. This tool is used under the hood at http://localize.drupal.org/ as well to serve as a parsing machine for Drupal.org project releases.

Translation templates are used by teams to translate Drupal to their language of choice. There are basically three ways to use the contents of this project:

  • Web based extraction: If you are a translator, 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 theme you want to have a translation template for, and submit the form. You will get one single template file generated.
  • Web based code review: If you are a module or theme developer, install this module and the coder review module. Pick the Interface text translatability review offered by potx and check your module for translatability problems.
  • Command line extraction: 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. Use php potx-cli.php --help to get a list of command line options.

Seeing a white screen?

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 or parse a smaller number of modules at once.

Downloads

Recommended releases

Version Downloads Date Links
7.x-1.0 tar.gz (41.92 KB) | zip (58.61 KB) 2011-Jan-26 Notes
6.x-3.3 tar.gz (46.61 KB) | zip (64.46 KB) 2011-Jan-26 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (29.65 KB) | zip (34.28 KB) 2011-Feb-25 Notes
6.x-3.x-dev tar.gz (29.58 KB) | zip (34.18 KB) 2011-Feb-25 Notes

Project Information


Maintainers for Translation template extractor

  • Gábor Hojtsy - 163 commits
    last: 29 weeks ago, first: 4 years ago
  • ray007 - 5 commits
    last: 4 years ago, first: 4 years ago

Issues for Translation template extractor

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Oldest open issue: 21 Jul 07
nobody click here