How can I translate one of the modules into my language?

Submitted by Leighton Whiting on Fri, 04/30/2010 - 14:23

Since MoneyScripts modules are coded following the Drupal Best Practices, all user-facing text is first passed through Drupal's t() (translate) function. Because of this, it is very easy to translate the modules into your language using the tools provided by the Drupal community without changing any of the module code! To get started, follow these steps:

  1. Download and install the Translation Template Extractor (POTX).
  2. Use POTX to extract from the installed module a .pot template, that is, a file that includes the untranslated strings in english.
  3. Download and install POEdit, the most common string translator.
  4. Use POEdit to create, from the extracted .pot template, a version of the strings in your language, a file with the .po extension.
  5. Use the locale module to import the new .po file so that the module's interface appears in your language.

It's that simple! I am working on getting some official .po files for some of the common languages, but if you see a language that isn't included and you would like to share, feel free to email me a copy of the .po file and I will include it in the modules for other people to use :)

Sincerely,

Leighton Whiting

Twitter Feed