summaryrefslogtreecommitdiff
path: root/addLanguage.sh
Side-by-side diff
Diffstat (limited to 'addLanguage.sh') (more/less context) (ignore whitespace changes)
-rwxr-xr-xaddLanguage.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/addLanguage.sh b/addLanguage.sh
index 7d8a296..e321804 100755
--- a/addLanguage.sh
+++ b/addLanguage.sh
@@ -27,9 +27,7 @@ for i in `find . -name "*.pro"` ; do
else
echo "$i: Adding $LANG"
- perl -p -i.bak -e 's/^(TRANSLATIONS\s+)(([^+])?=)(.+?i18n\/)(.+?)(\/.+?)$/$1$2$4$5$6\n$1+=$4'$LANG'$6/' $i
+ perl -p -i.bak -e 's/^(TRANSLATIONS\s*\+?=\s*)(.+?i18n\/)(.+?)(\/.+?\.ts)(.*)$/$1$2$3$4 \\\n\t $2'$LANG'$4$5/' $i
fi
fi
done
-
-