diff options
author | Weblate <noreply@weblate.org> | 2016-09-20 13:23:15 +0000 |
---|---|---|
committer | Weblate <noreply@weblate.org> | 2016-09-20 13:23:15 +0000 |
commit | 9f26fdc64823d7ddb303909a4afe78532e02258d (patch) | |
tree | e1f2b2ee2d8e6587dab34463d146dcc2300e5270 /src-qt5/update_i18n.sh | |
parent | Translated using Weblate (lumina_WM@lt (generated)) (diff) | |
parent | Merge branch 'master' of github.com:trueos/lumina (diff) | |
download | lumina-9f26fdc64823d7ddb303909a4afe78532e02258d.tar.gz lumina-9f26fdc64823d7ddb303909a4afe78532e02258d.tar.bz2 lumina-9f26fdc64823d7ddb303909a4afe78532e02258d.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 |