Skip to content

Commit 6c69d57

Browse files
author
borysiasty
committed
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
1 parent 715b5cc commit 6c69d57

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

scripts/update_ts_files.sh

+8-3
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ done
2222
if [ -n "$exclude" ]; then
2323
tar --remove-files -cvf i18n/qgis_ts.tar i18n/qgis_*.ts$exclude
2424
fi
25-
echo Updating python plugin translations
25+
echo Updating python translations
26+
cd python
27+
pylupdate4 utils.py -ts python-i18n.ts
28+
perl ../scripts/ts2cpp.pl python-i18n.ts python-i18n.cpp
29+
rm python-i18n.ts
30+
cd ..
2631
for i in python/plugins/*/CMakeLists.txt; do
2732
cd ${i%/*}
2833
pylupdate4 $(find . -name "*.py" -o -name "*.ui") -ts python-i18n.ts
@@ -34,9 +39,9 @@ echo Creating qmake project file
3439
qmake -project -o qgis_ts.pro -nopwd src python i18n
3540
echo Updating translation files
3641
lupdate -verbose qgis_ts.pro
37-
echo Removing temporary python plugin translation files
42+
echo Removing temporary python translation files
3843
perl -i.bak -ne 'print unless /^\s+<location.*python-i18n\.cpp.*$/;' i18n/qgis_*.ts
39-
rm python/plugins/*/python-i18n.cpp i18n/qgis_*.ts.bak
44+
rm python/python-i18n.cpp python/plugins/*/python-i18n.cpp i18n/qgis_*.ts.bak
4045
echo Removing qmake project file
4146
rm qgis_ts.pro
4247
echo Unpacking qt_ts.tar

0 commit comments

Comments
 (0)