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.
-
msgid
andmsgstr
entries can have multiple lines. Enclose each line in double quotes.
Each translated po file is compiled into a binary format
by running the msgfmt
program (included with the
freely available GNU gettext utilities package), giving the output
the same name as the po file but with an extension of .mo.