diff options
author | Weblate <noreply@weblate.org> | 2016-09-20 13:23:23 +0000 |
---|---|---|
committer | Weblate <noreply@weblate.org> | 2016-09-20 13:23:23 +0000 |
commit | 061b6a2ead9f3885887e2b7da40c1fb1348141fe (patch) | |
tree | 9d330c0f47aed069a8f3fc06f02c3fd8d4b24a4b /src-qt5/update_i18n.sh | |
parent | Translated using Weblate (lumina_CONFIG@zh_cn (generated)) (diff) | |
parent | Merge branch 'master' of github.com:trueos/lumina (diff) | |
download | lumina-061b6a2ead9f3885887e2b7da40c1fb1348141fe.tar.gz lumina-061b6a2ead9f3885887e2b7da40c1fb1348141fe.tar.bz2 lumina-061b6a2ead9f3885887e2b7da40c1fb1348141fe.zip |
Merge branch 'master' of https://github.com/trueos/lumina
Diffstat (limited to 'src-qt5/update_i18n.sh')
-rwxr-xr-x | src-qt5/update_i18n.sh | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src-qt5/update_i18n.sh b/src-qt5/update_i18n.sh new file mode 100755 index 00000000..1cfbf520 --- /dev/null +++ b/src-qt5/update_i18n.sh @@ -0,0 +1,19 @@ +#!/bin/sh +#========================== +#This is just a simple script to go through the source tree and ensure that all the +# project translation files are up-to-date prior to committing to Git +#========================== +# NOTE: This does NOT need to be run prior to building Lumina - this is a developer tool only +#========================== +LUPDATE="/usr/local/lib/qt5/bin/lupdate" + +for i in `find . | grep 'pro'` +do + echo "Checking pro file: ${i}" + if [ -z `basename ${i} | grep "lumina-"` ] ; then continue; fi #Not a top-level project file + echo "Updating translations:" `basename ${i}` + ${LUPDATE} -no-obsolete ${i} + if [ $? -ne 0 ] ; then + echo " -- EXPERIENCED ERROR" + fi +done |