Added util to translation generation script

This commit is contained in:
Frisk 2021-05-15 12:58:46 +02:00
parent 662c7368e3
commit 6fc912d3d4
No known key found for this signature in database
GPG key ID: 213F7C15068AF8AC

View file

@ -4,7 +4,7 @@ for file in ${StringArray[@]}; do
xgettext -L Python --package-name=RcGcDw -o "locale/templates/$file.pot" src/$file.py xgettext -L Python --package-name=RcGcDw -o "locale/templates/$file.pot" src/$file.py
done done
# Get all translatable files for formatters # Get all translatable files for formatters
find extensions/ -name '*.py' -print | xargs xgettext -L Python --package-name=RcGcDw -o "locale/templates/formatters.pot" find extensions/ -name '*.py' -print | xargs xgettext -L Python --package-name=RcGcDw -o "locale/templates/formatters.pot" src/api/util.py
for language in de fr lol pl pt-br ru uk zh-hans zh-hant hi for language in de fr lol pl pt-br ru uk zh-hans zh-hant hi
do do
for file in ${StringArray[@]}; do for file in ${StringArray[@]}; do