stopi/locales/gen_mo.sh

9 lines
234 B
Bash
Executable File

#!/usr/bin/env bash
# /usr/lib/python3.11/Tools/i18n/pygettext.py -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