Hello Drupalisers,

If I have a module installed and imported its translation, and see a language error, I make changes using the localisation module. From there, I only can export a whole language, or a POT file for all Drupal.

Is there a way to export a .po file per module? This would increase improvement posibilities, and to share this improvements or post them back to the author.

Web Portal Management

Comments

gábor hojtsy’s picture

Drupal does not know what string comes from what module. Fix the error in the PO file you got for the module and send that to the translator.

heeckhau’s picture

You can't do that with Drupal. But you can use external tools for this purpose:
First export all Dupal strings (to for example nl.po)
Then you can run, as mentioned in the translation guide:

msgmerge --compendium nl.po -o module-name.po /dev/null module-name.pot

Then you will have the translation of the module that you can send to someone with CVS access.

florisg’s picture

The Translation template extractor module

http://drupal.org/project/potx