2015-08-26 13:25:29 +00:00
|
|
|
# Delete old translation sources
|
2023-01-20 13:07:21 +00:00
|
|
|
find ./wagtail -iname *.po -iwholename */en/* -delete
|
2015-08-26 13:25:29 +00:00
|
|
|
|
|
|
|
# Run makemessages on each app
|
2023-01-20 13:07:21 +00:00
|
|
|
for d in $(find ./wagtail -iwholename "*/locale/*" | sed 's|\(.*\)/locale.*|\1|' | sort -u);
|
2015-08-26 13:25:29 +00:00
|
|
|
do
|
|
|
|
pushd $d
|
2022-05-13 09:06:55 +00:00
|
|
|
django-admin makemessages --locale=en --ignore=test/* --ignore=tests/* --ignore=tests.py
|
2015-08-26 13:25:29 +00:00
|
|
|
popd
|
|
|
|
done
|
2022-02-10 17:20:59 +00:00
|
|
|
|
|
|
|
# Extract translatable strings from JavaScript
|
2023-01-20 13:07:21 +00:00
|
|
|
pushd ./client
|
2022-02-10 17:20:59 +00:00
|
|
|
node extract-translatable-strings.js
|
|
|
|
popd
|