kylecorry31 / gnome-shell-extension-do-not-disturb

Enable or disable do not disturb mode on Pop!_OS
MIT License
17 stars 5 forks source link

Add more translations #13

Open kylecorry31 opened 6 years ago

kylecorry31 commented 6 years ago

Add a .po file at /locale/{language code}/LC_MESSAGES/gnome-shell-extension-do-not-disturb.po with the translations.

Translations needed for:

mikebarkmin commented 5 years ago

You should probably update the others locales (es, fr, pt), because they will be used as a template for new ones. For example, I just copied the fr one, because I did not know how to extract the translations from the source files. Therefore, I did not include the settings translations at first.

Or add a guide on how to add a new locale and use the newest messages:

Extract translations into messages.pot

cd src
xgettext -k_ -kN_ -o messages.pot *.js

Create a new locale for example sv_SE

cp -R locale/fr locale/sv_SE

Update the messages in the locale

msgmerge -U locale/sv_SE/LC_MESSAGES/gnome-shell-extension-do-not-disturb.po messages.pot
kylecorry31 commented 5 years ago

Agreed, I will work on this