From 8e938ea11590844ffa948ec52cda455b835e5429 Mon Sep 17 00:00:00 2001 From: Matt Westcott Date: Fri, 20 Jan 2023 13:07:21 +0000 Subject: [PATCH] Update rebuild-translation-sources to run from project root --- scripts/rebuild-translation-sources.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/rebuild-translation-sources.sh b/scripts/rebuild-translation-sources.sh index 9e0561b931..69c7356761 100755 --- a/scripts/rebuild-translation-sources.sh +++ b/scripts/rebuild-translation-sources.sh @@ -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