pilpil-client/locales/gen_mo.sh

7 lines
192 B
Bash
Executable File

#!/usr/bin/env bash
cd "$(dirname "$0")"
#pygettext -p en/LC_MESSAGES/ -o template.pot ../app.py
for locale in */LC_MESSAGES/template.pot; do
/usr/bin/msgfmt -o ${locale%.*}.mo $locale
done