rhythm/generate_locale.sh
2020-03-05 21:46:08 +01:00

9 lines
388 B
Bash
Executable file

#!/usr/bin/env sh
xgettext --add-comments templates/*.php -o locale/rhythm.pot
msgmerge --update locale/de/LC_MESSAGES/rhythm.po locale/rhythm.pot
msgmerge --update locale/en/LC_MESSAGES/rhythm.po locale/rhythm.pot
msgfmt locale/de/LC_MESSAGES/rhythm.po --output-file=locale/de/LC_MESSAGES/rhythm.mo
msgfmt locale/en/LC_MESSAGES/rhythm.po --output-file=locale/en/LC_MESSAGES/rhythm.mo