Add script to update translations

This commit is contained in:
Miraty 2023-05-02 19:14:16 +02:00
parent 9f5f8958c5
commit f8aced3894
1 changed files with 9 additions and 0 deletions

9
locales/update.sh Executable file
View File

@ -0,0 +1,9 @@
#!/usr/bin/bash
xgettext --from-code=UTF-8 --no-wrap -d messages -p locales/ *.php */*.php */*/*.php
mv locales/messages.po locales/messages.pot
msgmerge --no-wrap locales/fr/C/LC_MESSAGES/messages.po locales/messages.pot -o locales/fr/C/LC_MESSAGES/messages.po
msgfmt locales/fr/C/LC_MESSAGES/messages.po -o locales/fr/C/LC_MESSAGES/messages.mo