diff options
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 |