File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 7
7
# name is reserved for the Windows qmake project file
8
8
# update_ts_files.sh,v 1.3 2004/07/14 18:16:24 gsherman Exp
9
9
10
+ set -e
11
+
10
12
PATH=$QTDIR /bin:$PATH
11
13
12
14
# first tar the qt_xx.ts files in i18n folder such that lupdate does not
@@ -17,17 +19,18 @@ rm i18n/qt_*.ts
17
19
echo Updating python plugin translations
18
20
for i in python/plugins/* /.; do
19
21
cd $i
20
- pylupdate4 $( find . -name " *.py" ) -ts i18n.ts
21
- perl ../../../scripts/ts2cpp.pl i18n.ts i18n.cpp
22
- rm i18n.ts
22
+ pylupdate4 $( find . -name " *.py" ) -ts python- i18n.ts
23
+ perl ../../../scripts/ts2cpp.pl python- i18n.ts python- i18n.cpp
24
+ rm python- i18n.ts
23
25
cd ../../..
24
26
done
25
27
echo Creating qmake project file
26
28
qmake -project -o qgis_ts.pro -nopwd src python i18n
27
29
echo Updating translation files
28
30
lupdate -verbose qgis_ts.pro
29
31
echo Removing temporary python plugin translation files
30
- rm python/plugins/* /i18n.cpp
32
+ perl -i.bak -pe ' $_="" if /^\s+<location.*python-i18n\.cpp.*$/;' i18n/qgis_* .ts
33
+ rm python/plugins/* /python-i18n.cpp i18n/qgis_* .ts.bak
31
34
echo Removing qmake project file
32
35
rm qgis_ts.pro
33
36
echo Unpacking qt_ts.tar
You can’t perform that action at this time.
0 commit comments