#!/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 # Change to script dir cd "$(dirname "$0")" for locale in */LC_MESSAGES/template.pot; do /usr/bin/msgfmt -o ${locale%.*}.mo $locale done