Make a string translatableΒΆ

If you introduce a new string in the source code that you would like to be translated into different languages, you need to do 2 things:

  1. Enclose the string in _()
  2. Upload a pot file to Launchpad

Example of enclosed string:


To generate a pot file, run

python tools/

It requires the xgettext program to be on the path. See gettext for instructions how to install it.

You should now have a file:


that contains an entry for your string looking something like this:

#: source/
msgid "Hello!"
msgstr ""

Upload this pot file to Launchpad using this form: (It requires login.)

Now translators will see your new string and can translate it.