Add script to update translations
This commit is contained in:
parent
9f5f8958c5
commit
f8aced3894
1 changed files with 9 additions and 0 deletions
9
locales/update.sh
Executable file
9
locales/update.sh
Executable 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
|
Loading…
Reference in a new issue