When a translation is submitted after the version has been tagged, a new
tag is added with the language as a suffix. It must be accepted by the
packaging script.
fi
# is the git tag set?
-GitVersion=$(git describe)
-if [[ "$GitVersion" != "$Version" ]] ; then
+# a valid tag can be v2.3.3 or v2.3.3_da to indicate version 2.3.3 with the Danish translation
+GitVersion=$(git describe | sed -e 's/^\(v[0-9][0-9.]*\)_.*/\1/')
+if [[ "$GitVersion" != "v$Version" ]] ; then
echo "Git tag not set for version $Version. Use command:"
- echo "git tag -a \"$Version\" -m \"$Version\""
+ echo "git tag -a \"v$Version\" -m \"v$Version\""
exit 1
fi