tuxbot-bot/generate_locales.sh

17 lines
361 B
Bash
Raw Normal View History

#!/bin/bash
BASEDIR=$(pwd)
2020-01-12 21:43:05 +01:00
cd "$BASEDIR/utils/locales/en/LC_MESSAGES"
for i in *.po ; do
[[ -f "$i" ]] || continue
/usr/lib/python3.8/Tools/i18n/msgfmt.py -o "${i%.po}.mo" "${i%.po}"
done
2020-01-12 21:43:05 +01:00
cd "$BASEDIR/utils/locales/fr/LC_MESSAGES"
for i in *.po ; do
[[ -f "$i" ]] || continue
/usr/lib/python3.8/Tools/i18n/msgfmt.py -o "${i%.po}.mo" "${i%.po}"
done