pilpil-server/locales/gen_mo.sh

9 lines
200 B
Bash
Raw Normal View History

2022-11-03 12:48:12 +01:00
#!/usr/bin/env bash
2022-11-15 17:00:36 +01:00
# pygettext -o template.pot ../app.py
2022-11-03 12:48:12 +01:00
#
2022-11-15 17:00:36 +01:00
# Change to script dir
cd "$(dirname "$0")"
2022-11-03 12:48:12 +01:00
for locale in */LC_MESSAGES/template.pot; do
/usr/bin/msgfmt -o ${locale%.*}.mo $locale
done