File tree 2 files changed +11
-3
lines changed
2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 27
27
$message -> {source }-> [0] =~ s / "/ \\ "/ g ;
28
28
$message -> {source }-> [0] =~ s /\n / \\ n/ g ;
29
29
30
- print F " translate( \" $context ->{name}->[0]\" , \" $message ->{source}->[0]\" );\n " ;
30
+ print F " translate( \" $context ->{name}->[0]\" , \" $message ->{source}->[0]\" " ;
31
+
32
+ if ( exists $message -> {comment } && $message -> {comment }-> [0] ne " " ) {
33
+ $message -> {comment }-> [0] =~ s / "/ \\ "/ g ;
34
+ $message -> {comment }-> [0] =~ s /\n / \\ n/ g ;
35
+
36
+ print F " ,\" $context ->{comment}->[0]\" " ;
37
+ }
38
+
39
+ print F " );\n " ;
31
40
}
32
41
}
33
42
Original file line number Diff line number Diff line change @@ -15,11 +15,10 @@ echo Creating qt_ts.tar
15
15
tar -cvf i18n/qt_ts.tar i18n/qt_* .ts
16
16
rm i18n/qt_* .ts
17
17
echo Updating python plugin translations
18
- P=$PWD
19
18
for i in python/plugins/* /.; do
20
19
cd $i
21
20
pylupdate4 $( find . -name " *.py" ) -ts i18n.ts
22
- perl $P /scripts/ts2cpp.pl i18n.ts i18n.cpp
21
+ perl ../../.. /scripts/ts2cpp.pl i18n.ts i18n.cpp
23
22
rm i18n.ts
24
23
cd ../../..
25
24
done
You can’t perform that action at this time.
0 commit comments