Skip to content

Commit

Permalink
Add link to weblate
Browse files Browse the repository at this point in the history
  • Loading branch information
DanWin committed Jan 22, 2023
1 parent 99b31f0 commit 9dbaf35
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:[email protected]), to include the translation.

Expand Down
2 changes: 1 addition & 1 deletion update-translation.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 9dbaf35

Please sign in to comment.