mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-24 10:25:51 +03:00
increment_version.sh: Update translation before
Change-Id: I74953d63d3a944640a62923ba0f1bd6ff02ef859
This commit is contained in:
parent
dc34334e3c
commit
ce03789c1a
1 changed files with 16 additions and 0 deletions
|
@ -28,6 +28,17 @@ fi
|
||||||
|
|
||||||
pushd "$mydir" > /dev/null
|
pushd "$mydir" > /dev/null
|
||||||
|
|
||||||
|
do_translation_pull=0
|
||||||
|
|
||||||
|
if git remote get-url weblate > /dev/null; then
|
||||||
|
echo "Pulling translations..."
|
||||||
|
translation commit && do_translation_pull=1 || echo "translation tool not found, skipping forced commit"
|
||||||
|
git fetch weblate
|
||||||
|
git merge weblate/sc --no-edit
|
||||||
|
else
|
||||||
|
echo "WARN: remote weblate not found, not updating translations"
|
||||||
|
fi
|
||||||
|
|
||||||
last_tag=`downstream_latest_tag`
|
last_tag=`downstream_latest_tag`
|
||||||
|
|
||||||
build_gradle="vector/build.gradle"
|
build_gradle="vector/build.gradle"
|
||||||
|
@ -186,4 +197,9 @@ else
|
||||||
git tag "$new_tag"
|
git tag "$new_tag"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if ((do_translation_pull)); then
|
||||||
|
echo "Updating weblate repo..."
|
||||||
|
translation pull
|
||||||
|
fi
|
||||||
|
|
||||||
popd > /dev/null
|
popd > /dev/null
|
||||||
|
|
Loading…
Reference in a new issue