File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change 22
22
if [ -n " $exclude " ]; then
23
23
tar --remove-files -cvf i18n/qgis_ts.tar i18n/qgis_* .ts$exclude
24
24
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 ..
26
31
for i in python/plugins/* /CMakeLists.txt; do
27
32
cd ${i%/* }
28
33
pylupdate4 $( find . -name " *.py" -o -name " *.ui" ) -ts python-i18n.ts
@@ -34,9 +39,9 @@ echo Creating qmake project file
34
39
qmake -project -o qgis_ts.pro -nopwd src python i18n
35
40
echo Updating translation files
36
41
lupdate -verbose qgis_ts.pro
37
- echo Removing temporary python plugin translation files
42
+ echo Removing temporary python translation files
38
43
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
40
45
echo Removing qmake project file
41
46
rm qgis_ts.pro
42
47
echo Unpacking qt_ts.tar
You can’t perform that action at this time.
0 commit comments