mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-21 09:59:02 +01:00
Update rebuild-translation-sources to run from project root
This commit is contained in:
parent
cbbf4668de
commit
8e938ea115
@ -1,8 +1,8 @@
|
||||
# Delete old translation sources
|
||||
find ../wagtail -iname *.po -iwholename */en/* -delete
|
||||
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);
|
||||
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
|
||||
@ -10,6 +10,6 @@ do
|
||||
done
|
||||
|
||||
# Extract translatable strings from JavaScript
|
||||
pushd ../client
|
||||
pushd ./client
|
||||
node extract-translatable-strings.js
|
||||
popd
|
||||
|
Loading…
Reference in New Issue
Block a user