This module aims to ease the deployment of translation .PO files that the great Potx module generates. No longer will you have to manually upload these files to keep your site translations up to date. You can manually batch import all PO files defined in custom modules or alternatively, you can use the always useful Drush command to make things easier for you.

All you need to do is implement hook_potx_file_location_info to let this module know where to find PO files and then go to admin/config/regional/translate/update-from-code to batch import them or use the Drush command drush potx-import-all or the short version drush pia. The module will take care of the rest.

As a side bonus, you will be able to version these PO files and keep changes in code.

Features:
- Automatically imports PO files defined in custom modules.
- Only newly found or updated PO files will be processed.

Features yet to do:
- Add support for text groups. So far this module only supports the default group.

Be aware:
- Strings found in PO files will replace existing ones and new ones will be added.

Drupal 8

This module is not needed for Drupal 8 as you can use Interface translation properties.

Supporting organizations: 
Provided initial development

Project information

Releases