Skip to content

Commit

Permalink
Merge pull request #574 from CTPUG/feature/tweak-i18n-update-script
Browse files Browse the repository at this point in the history
Don't hard-code the list of languages
  • Loading branch information
drnlm committed Nov 13, 2020
2 parents 227e55c + 236d895 commit 07d1dbd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions utils/update_i18n_files.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#!/bin/bash
# Update the langauge files and main django.pot file
LANGS="pt_BR ru"

base=$(dirname $0)
cd $base/..

for lang in $LANGS; do
for cand in wafer/locale/*; do
if [ ! -d $cand ]; then
continue
fi
lang=$(basename $cand)
./manage.py makemessages -l $lang
done
./manage.py makemessages --keep-pot
Expand Down

0 comments on commit 07d1dbd

Please sign in to comment.