Translation template extractor
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.incandpotx-cli.phpto the directory you would like to generate translation templates for and runphp 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 releases | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-2.2 | 2008-Oct-13 | 34.53 KB | Download · Release notes | Recommended for 6.x | |
| 5.x-1.3 | 2008-Sep-09 | 30.06 KB | Download · Release notes | Recommended for 5.x | |
| Development snapshots | Date | Size | Links | Status | |
|---|---|---|---|---|---|
| 6.x-2.x-dev | 2008-Dec-02 | 35.45 KB | Download · Release notes | Development snapshot | |
| 5.x-1.x-dev | 2008-Sep-10 | 30.2 KB | Download · Release notes | Development snapshot | |
