Skip to content
This repository has been archived by the owner on May 15, 2021. It is now read-only.

Add more translations #13

Open
kylecorry31 opened this issue Oct 14, 2018 · 2 comments
Open

Add more translations #13

kylecorry31 opened this issue Oct 14, 2018 · 2 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@kylecorry31
Copy link
Owner

kylecorry31 commented Oct 14, 2018

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

Translations needed for:

  • Do not disturb label
  • Settings
@kylecorry31 kylecorry31 added help wanted Extra attention is needed good first issue Good for newcomers labels Oct 14, 2018
@mikebarkmin
Copy link
Contributor

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
Copy link
Owner Author

Agreed, I will work on this

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants