RcGcDw/scripts/generate-translations.sh

17 lines
680 B
Bash
Raw Normal View History

2020-08-08 01:23:01 +00:00
cd ..
2020-11-18 09:05:40 +00:00
declare -a StringArray=("discussion_formatters" "rc_formatters" "rcgcdw" "rc" "misc")
for file in ${StringArray[@]}; do
xgettext -L Python --package-name=RcGcDw -o "locale/templates/$file.pot" src/$file.py
done
2020-12-21 14:32:58 +00:00
for language in de fr lol pl pt-br ru uk zh-hans zh-hant hi
do
for file in ${StringArray[@]}; do
msgmerge -U locale/$language/LC_MESSAGES/$file.po locale/templates/$file.pot
done
done
2020-11-18 09:05:40 +00:00
# Exceptions
xgettext -L Python --package-name=RcGcDw -o "locale/templates/redaction.pot" src/discord/redaction.py
2020-12-21 14:32:58 +00:00
for language in de fr lol pl pt-br ru uk zh-hans zh-hant hi
2020-11-18 09:05:40 +00:00
do
msgmerge -U locale/$language/LC_MESSAGES/redaction.po locale/templates/redaction.pot
done