mirror of
https://github.com/DanWin/mail-hosting.git
synced 2024-11-21 15:10:25 +00:00
Add link to weblate
This commit is contained in:
parent
55da3b38a4
commit
8e3d7d003a
2 changed files with 3 additions and 2 deletions
|
@ -11,7 +11,8 @@ TODO
|
||||||
Translating:
|
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/mail-hosting).
|
||||||
|
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/mail-hosting.pot` which you can then use as basis to create a new language file in `YOUR_LANG_CODE/LC_MESSAGES/mail-hosting.po` and edit it with a translation program, such as [Poedit](https://poedit.net/).
|
It will generate the file `locale/mail-hosting.pot` which you can then use as basis to create a new language file in `YOUR_LANG_CODE/LC_MESSAGES/mail-hosting.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.
|
Once you are done, you can open a pull request, or [email me](mailto:daniel@danwin1210.de), to include the translation.
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
xgettext -o locale/mail-hosting.pot `find . -iname '*.php'`
|
xgettext --from-code UTF-8 -o locale/mail-hosting.pot `find . -iname '*.php'`
|
||||||
for translation in `find locale -iname '*.po'`; do msgmerge -U "$translation" locale/mail-hosting.pot; msgfmt -o ${translation:0:-2}mo "$translation"; done
|
for translation in `find locale -iname '*.po'`; do msgmerge -U "$translation" locale/mail-hosting.pot; msgfmt -o ${translation:0:-2}mo "$translation"; done
|
||||||
|
|
Loading…
Reference in a new issue