mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-03-16 22:10:28 +00:00
Added script for rebuilding translation sources
This commit is contained in:
parent
d5400c9690
commit
140441feb6
1 changed files with 10 additions and 0 deletions
10
scripts/rebuild-translation-sources.sh
Executable file
10
scripts/rebuild-translation-sources.sh
Executable file
|
|
@ -0,0 +1,10 @@
|
|||
# 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
|
||||
Loading…
Reference in a new issue