0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-22 11:07:57 +01:00
wagtail/scripts/rebuild-translation-sources.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
390 B
Bash
Raw Normal View History

# 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
popd
done
# Extract translatable strings from JavaScript
pushd ../client
node extract-translatable-strings.js
popd