From 1b2db4e058eec073a4f3ba57353afc70be7b283e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 10 Mar 2020 14:06:18 -0700 Subject: translation tooling: fix script to not include Kirigami strings Not sure when it started doing that - we don't want those in our translations, I believe. Also, we appear to suddenly get problems with too many numerus lines unless the existing translation is deleted, first. Very strange. Signed-off-by: Dirk Hohndel --- scripts/updatetranslationsource.sh | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/updatetranslationsource.sh') diff --git a/scripts/updatetranslationsource.sh b/scripts/updatetranslationsource.sh index a2cb0aa1b..71d3f974d 100755 --- a/scripts/updatetranslationsource.sh +++ b/scripts/updatetranslationsource.sh @@ -19,6 +19,10 @@ pushd $SRC git status | grep "Changes not staged for commit" 2>/dev/null && echo "tree not clean" && exit 1 git status | grep "Changes to be committed" 2>/dev/null && echo "tree not clean" && exit 1 +# now remove the translations and remove access to the kirigami sources +chmod 000 mobile-widgets/qml/kirigami +rm translations/subsurface_source.ts + # enable creating the translation strings sed -i.bak 's/# qt5_create_translation/ qt5_create_translation/ ; s/# add_custom_target(translations_update/ add_custom_target(translations_update/' translations/CMakeLists.txt @@ -45,6 +49,9 @@ git add translations/subsurface_source.ts git commit -s -m "Update translation source strings" git reset --hard +# now enable access to kirigami again +chmod 755 mobile-widgets/qml/kirigami + # this really depends on my filesystem layout # push sources to Transifex if [[ "$NOPUSH" != "1" ]] ; then -- cgit v1.2.3-70-g09d2