Thank you for your interest in translating Gradia! This guide will help you contribute translations to make Gradia accessible to more users around the world.
-
Fork the Gradia repository and clone it to your local machine.
-
Locate the translation template file, found at
po/gradia.pot. -
Open the
gradia.potfile in Poedit. -
In Poedit, create a new translation by selecting your target language. Poedit will generate a new
.pofile for that language. -
Save the new
.pofile in thepo/directory, following the naming convention for your language code, e.g.,fr.po,de.po, ornl.po. -
Add your language code to the
po/LINGUASfile to register your translation.
- Use Poedit's interface to translate each message carefully, some entries will have notes/comments attached to them.
- Poedit may sometimes generate a
.mofile, but this file is not needed because it is already generated when building the app.
If your system is not set to the target language or you want to preview the English version for reference, you can force the app to run in English using the following environment variable:
"--env=LANGUAGE=en"To apply this in a more permanent fashion, add it under the finish-args section of build-aux/be.alexandervanhee.gradia.Devel.json before building the app.
- Commit your
.pofile and the updatedpo/LINGUASfile. - Push the changes to your fork.
- Open a Pull Request against the main Gradia repository with a title beginning with
i18n:.
Thank you for helping make Gradia multilingual!