-
Notifications
You must be signed in to change notification settings - Fork 0
Translate
It's easy to translate the extension in your language !
Translation of the weather-conditions is not used with forecast.io, they provide already translated data (see: the lang-parameter in the The Dark Sky Forecast API ). If different languages are desired, please consider contributing to their API translation module on Github.
- A GitHub account.
-
git
. -
seed
. -
poedit
. - Fork the project.
cd ~ && git clone git@github.com:YOUR_USERNAME/gnome-shell-extension-openweather.git
cd ~/gnome-shell-extension-weather/po
seed update.js
-
Open the locale file for your language (each locale are named with ISO 639 standard. Example for french, fr.po) with poEdit.
-
Translate the file and save.
-
Don't forget to remove the "#, fuzzy" lines, if the updated translation is correct, otherwise the translation will not be visible.
-
Update the po directory.
-
Send changes to your fork:
git add YOUR_LANGUAGE_IN_ISO_639.po git commit -m 'Update YOUR_LANGUAGE translation' git push
-
Open a new poEdit project using gnome-shell-extension-weather.pot and name it YOUR_LANGUAGE_IN_ISO_639.po
-
Translate and save.
-
Update the po directory.
-
Send changes to your fork:
git add YOUR_LANGUAGE_IN_ISO_639.po git commit -m 'Add YOUR_LANGUAGE translation' git push