diff --git a/README.md b/README.md index 91f16be..4536645 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,8 @@ Recommended schedule: Translating: ------------ -The scrip `update-translations.sh` can be used to update the language template and translation files from source. +Translations are managed in [Weblate](https://weblate.danwin1210.de/projects/DanWin/onion-link-list). +If you prefer manually submitting translations, the script `update-translations.sh` can be used to update the language template and translation files from source. It will generate the file `locale/onion-link-list.pot` which you can then use as basis to create a new language file in `YOUR_LANG_CODE/LC_MESSAGES/onion-link-list.po` and edit it with a translation program, such as [Poedit](https://poedit.net/). Once you are done, you can open a pull request, or [email me](mailto:daniel@danwin1210.de), to include the translation. diff --git a/update-translation.sh b/update-translation.sh index d0d50b6..9c15d8c 100755 --- a/update-translation.sh +++ b/update-translation.sh @@ -1,3 +1,3 @@ #!/bin/bash -xgettext -o locale/onion-link-list.pot `find . -iname '*.php'` +xgettext --from-code UTF-8 -o locale/onion-link-list.pot `find . -iname '*.php'` for translation in `find locale -iname '*.po'`; do msgmerge -U "$translation" locale/onion-link-list.pot; msgfmt -o ${translation:0:-2}mo "$translation"; done