0
0
mirror of https://github.com/wagtail/wagtail.git synced 2024-11-21 18:09:02 +01:00

Update fetch-translations script to run from project root

This commit is contained in:
Matt Westcott 2023-01-20 12:35:45 +00:00
parent 204ae40209
commit c54ae11fd1

View File

@ -1,5 +1,5 @@
# Delete old translation files (except "en" which is the source translation)
find ../wagtail -iname *.po ! -iwholename */en/* -delete
find ./wagtail -iname *.po ! -iwholename */en/* -delete
# Fetch new translations from transifex
tx pull -a --minimum-perc=1
@ -9,10 +9,10 @@ tx pull -a --minimum-perc=1
# - Blank, fuzzy and obsolete translations
# - The line numbers above each translation
# These things are only needed by translators (which they won't be seen by) and make the translation updates difficult to check
find ../wagtail -iname *.po ! -iwholename */en/* -exec msgattrib --translated --no-fuzzy --no-obsolete --no-location -o {} {} \;
find ./wagtail -iname *.po ! -iwholename */en/* -exec msgattrib --translated --no-fuzzy --no-obsolete --no-location -o {} {} \;
# Run compilemessages on each app
for d in $(find ../wagtail -iname *.po | sed 's|\(.*\)/locale.*|\1|' | sort -u);
for d in $(find ./wagtail -iname *.po | sed 's|\(.*\)/locale.*|\1|' | sort -u);
do
pushd $d
django-admin compilemessages