stopi2/locales/gen_mo.sh

11 lines
382 B
Bash
Raw Normal View History

2024-09-06 19:53:58 +02:00
#!/usr/bin/env bash
# /usr/lib/python3.11/Tools/i18n/pygettext.py -o template.pot ../app.py
#
# /usr/lib/python3.12/Tools/i18n/pygettext.py -o template.pot ../frame_opencv.py
# msgmerge -N template.pot fr/LC_MESSAGES/template.pot -o new.pot
2024-09-06 19:53:58 +02:00
# Change to script dir
cd "$(dirname "$0")"
for locale in */LC_MESSAGES/template.pot; do
/usr/bin/msgfmt -o ${locale%.*}.mo $locale
done