You can edit translations on Weblate, or submit your changes as a pull request on GitHub.
Important
When working on a translation, please add your name
to the translation of translator-credits string as a new line.
You could also add an e-mail address (in Name <email> format),
or a URL (in Name https://url format).
CI system automatically adds new strings to .pot and .po files.
You can add/edit a .po file with the tool of your choice and create a pull
request.
Previously, people often added new languages through Weblate, but then left the translations empty.
So the option to add languages on Weblate had been disabled.
New languages can only be added through GitHub.
-
Clone your forked repository using
git. -
Create new translation
.pofile usingmsginit. -
Add the language name to
LINGUASfile. -
Create a pull request.
Example - steps 2 to 4 for Hungarian (hu) translation:
git clone git@github.com:yourname/gnome-shell-extension-ddterm.git
cd gnome-shell-extension-ddterm/po
msginit -i ddterm@amezin.github.com.pot -l hu --no-translator --no-wrap
echo hu >>LINGUAS
git add hu.po LINGUAS
git commit -m "translations: add Hungarian"
git pushIf you're not familiar with Git/GitHub, you can open an issue instead of a pull request.
