libmypaint uses WebLate for its translations. You can get involved at https://hosted.weblate.org/engage/mypaint/.
That might be all the information you need if you just want to help ensure that libmypaint is correctly translated into your language.
Information for coders and maintainers
We use GNU gettext for runtime translation of program text.
After updating program strings
After changing any string in the source text which makes use of the gettext macros, you will need to manually run
and then commit the modified
along with your changes.
Keeping this generated template file in the distribution
allows WebLate users to create new translations by themselves
without having to ask us.
.pot file alone can be updated by running
if all you want to do is compare diffs.
Information for translators
New translation (manual)
New translations can be started manually too.
Start by putting a new stub
.po file into this directory.
To make such a file you can
copy the header from an existing
and modify it accordingly.
Unless there are several country-specific dialects for your language,
the file should be named simply
where "ll" is a recognized language code.
If there are several dialects for your language,
the file should be named
where "CC" is the country code.
Before you can work on it,
you will need to update the
from the most recent
.pot template file
generated by the developers.
Update translation (manual)
Before working on a translation,
.po file for your language.
For example, for the french translation, run:
Use/Test the translation
After modifying the translation, you need to rebuild to see the changes:
To run MyPaint with a specific translation on Linux, you can use the LANG environment variable like this (the locale needs to be supported):
To run MyPaint with the original strings, for comparison,
you can use the
LC_MESSAGES variable like this:
Send changes (manual)
Before you send your changes, please make sure that your changes are based on the current development (git) version of libmypaint.
Changes made in WebLate are asy for us to merge, but changes sent as Github pull requests are fine too. If you do not know git just send either a unified diff or the updated .po file along with your name to: a.t.chadwick (AT) gmail.com.
If you are interested in keeping the transalations up to date, please subscribe to the MyPaint project on WebLate: https://hosted.weblate.org/accounts/profile/#subscriptions.