forked from alexduf/gnome-github-notifications
-
Notifications
You must be signed in to change notification settings - Fork 5
Translating the extension
Thomas Florio edited this page Apr 30, 2023
·
1 revision
The extension uses the gettext localization framework for multi-language support. You can use any tool compatible with the gettext format to edit or create new translations.
If you would like to extend or improve an existing translation you have to:
- Fork the repository
- Clone your fork locally and create a new branch
- Open the localization file of your language in your editor of choice. You can find it in the directory
src/main/ponamed with your language code. - Update the po file from the pot to get the updated strings to translate
- Once you have made your changes, save the po file
- Make sure to add your name in the
Language-Teamproperty of the po file. This property should contain a comma separated list of the names of all people that contributed to the translation." This step is important to make sure your contribution is credited in the "About" dialog of the extension. - Commit your changes and push them to your fork
- Create a pull request against master
- Fork the repository
- Clone your fork locally and create a new branch
- Create a new po file from the pot located in
src/main/po. Save the new file with the two letter language code as the name and .po as extension. - Use the name of the language (localized) as
Project-Id-Versionand put your name in theLanguage-Teamfield. This step is important to make sure your contribution is credited in the "About" dialog of the extension. - Once you have completed the translation, save the po file
- Commit your changes and push them to your fork
- Create a pull request against master