[QGIS Commit] r12046 - trunk/qgis/scripts

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Nov 8 19:33:06 EST 2009


Author: borysiasty
Date: 2009-11-08 19:33:05 -0500 (Sun, 08 Nov 2009)
New Revision: 12046

Modified:
   trunk/qgis/scripts/update_ts_files.sh
Log:
fix the update_ts_files.sh script to collect strings also from the utils.py file

Modified: trunk/qgis/scripts/update_ts_files.sh
===================================================================
--- trunk/qgis/scripts/update_ts_files.sh	2009-11-09 00:28:12 UTC (rev 12045)
+++ trunk/qgis/scripts/update_ts_files.sh	2009-11-09 00:33:05 UTC (rev 12046)
@@ -22,7 +22,12 @@
 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 @@
 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+<location.*python-i18n\.cpp.*$/;' i18n/qgis_*.ts
-rm python/plugins/*/python-i18n.cpp i18n/qgis_*.ts.bak
+rm python/python-i18n.cpp python/plugins/*/python-i18n.cpp i18n/qgis_*.ts.bak
 echo Removing qmake project file
 rm qgis_ts.pro
 echo Unpacking qt_ts.tar



More information about the QGIS-commit mailing list