pilpil-server/locales/gen_mo.sh

9 lines
200 B
Bash
Executable File

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