Drupal Association members fund grants that make connections all over the world.
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-cli.phpto 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 --helpto 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.
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Developer, Multilingual
- Reported installs: 8,313 sites currently report using this module. View usage statistics.
- Downloads: 258,256
- Automated tests: Enabled
- Last modified: October 27, 2015
- Stable releases are covered by the security advisory policy.
Look for the shield icon below.