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
|
|
|
|
#
|
2024-11-01 09:22:54 +01:00
|
|
|
# /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
|