servnest/locales/update.sh

10 lines
354 B
Bash
Raw Normal View History

2023-05-19 23:52:06 +02:00
#!/usr/bin/env bash
2023-05-02 19:14:16 +02:00
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