Translating the pot file

Translators enter the translation of each msgid into the corresponding msgstr field and save the result as a file with the same name as the pot file but with the extension .po. There will be one po file for each target language.

  • po files should be saved in Unicode utf-8 encoding.
  • po files should not have a BOM (Byte Order Mark) at the start of the file.
  • If a msgstr contains an embedded double quote character (x22), precede it with a backslash (\). as in:

    msgstr "He said, \"Wow\", when he saw the R-squared"

  • msgid and msgstr entries can have multiple lines. Enclose each line in double quotes.

Each translated po file is compiled into a binary format by running msgfmt.py from the standard Python distribution, giving the output the same name as the po file but with an extension of .mo.