From 6c69d57ffac5ef15fb0ec72f4cd9040664ed3cbb Mon Sep 17 00:00:00 2001 From: borysiasty Date: Mon, 9 Nov 2009 00:33:05 +0000 Subject: [PATCH] fix the update_ts_files.sh script to collect strings also from the utils.py file git-svn-id: http://svn.osgeo.org/qgis/trunk@12046 c8812cc2-4d05-0410-92ff-de0c093fc19c --- scripts/update_ts_files.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/scripts/update_ts_files.sh b/scripts/update_ts_files.sh index 346b8da6e5f..a59a4c51d98 100755 --- a/scripts/update_ts_files.sh +++ b/scripts/update_ts_files.sh @@ -22,7 +22,12 @@ done if [ -n "$exclude" ]; then tar --remove-files -cvf i18n/qgis_ts.tar i18n/qgis_*.ts$exclude fi -echo Updating python plugin translations +echo Updating python translations +cd python +pylupdate4 utils.py -ts python-i18n.ts +perl ../scripts/ts2cpp.pl python-i18n.ts python-i18n.cpp +rm python-i18n.ts +cd .. for i in python/plugins/*/CMakeLists.txt; do cd ${i%/*} pylupdate4 $(find . -name "*.py" -o -name "*.ui") -ts python-i18n.ts @@ -34,9 +39,9 @@ echo Creating qmake project file qmake -project -o qgis_ts.pro -nopwd src python i18n echo Updating translation files lupdate -verbose qgis_ts.pro -echo Removing temporary python plugin translation files +echo Removing temporary python translation files perl -i.bak -ne 'print unless /^\s+