mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-29 09:33:54 +01:00
46977d6442
This also replaces some of the existing tweaks, which avoided strings getting parsed by makemessages.
16 lines
441 B
Bash
Executable File
16 lines
441 B
Bash
Executable File
# Delete old translation sources
|
|
find ../wagtail -iname *.po -iwholename */en/* -delete
|
|
|
|
# Run makemessages on each app
|
|
for d in $(find ../wagtail -iwholename */locale/* | sed 's|\(.*\)/locale.*|\1|' | sort -u);
|
|
do
|
|
pushd $d
|
|
django-admin makemessages --locale=en --ignore=test/* --ignore=tests/* --ignore=tests.py
|
|
popd
|
|
done
|
|
|
|
# Extract translatable strings from JavaScript
|
|
pushd ../client
|
|
node extract-translatable-strings.js
|
|
popd
|