Translate Drupal modules
How to translate a Drupal 4,5 or 6 module?
1 The module have a POT file
The module have .po or .pot files in "/MODULENAME/po/" or "/MODULENAME/translations/".
- Enable the locale module and add a language under , "Languages".
- Download and install KBabel, Poedit or use a texteditor [1].
- Open the file with the suffix .pot from "MODULNAME/translations/" in Drupal 6 or "MODULNAME/po/" in Drupal 4 or 5, translate and save it as "LANGUAGECODE.po" (LANGUAGECODE is your language code. See: en.wikipedia.org/wiki/Language_codes).
- Make your translation availabe (under the GPL license) for other users. For example, submit your files to the module project page by create a issue http://drupal.org/project/issues/MODULNAME or contact the maintainer of the module.
2 The module have no translations
The module have no .po or .pot files in "/MODULENAME/po/" or "/MODULENAME/translations/".
- Download and install the Drupal module Translation Template Extractor (POTX).
- Enable the locale module and add a language under , "Languages".
- Create a .po file: Go to , "Translate interface" and select the module under , and select "Template language" and "Template file for LANGUAGENAME translations" and "Include translations".
- Create a .pot file for other translators: Go to , "Translate interface" and select the module under , and select "Language independent template".
- Download and install KBabel, Poedit or use a texteditor [1].
- Open the file with the suffix .po from "MODULNAME/translations/" in Drupal 6 or "MODULNAME/po/" in Drupal 4 or 5, translate and save it as "LANGUAGECODE.po" (LANGUAGECODE is your language code. See: en.wikipedia.org/wiki/Language_codes).
- Make your translation availabe (under the GPL license) for other users. For example, submit your files to the module project page by create a issue http://drupal.org/project/issues/MODULNAME or contact the maintainer of the module.
- Import the new .po file under , "Translate interface" in your language.
[1] Translate with a texteditor
Example in German. Write the german text in the msgstr line.
msgid "English text"
msgstr "Deutscher Text"






Just what we need for our
Just what we need for our project. Thanks.
Just what we need for our
Just what we need for our current project. It's very applicable. Thanks.
Thanks a lot
Thank you very much for posting such a useful post.
keep on posting such items.