Skip to content

Latest commit

 

History

History
 
 

README.md

Translations

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).

Translation status

Translation status 2

Other tools

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.

Adding a new language

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.

Create a Pull Request

  1. Fork the repository.

  2. Clone your forked repository using git.

  3. Create new translation .po file using msginit.

  4. Add the language name to LINGUAS file.

  5. 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 push

Create an Issue

If you're not familiar with Git/GitHub, you can open an issue instead of a pull request.