File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ ENDMACRO(ADD_TRANSLATION_FILES)
22
22
# make sure the output directory exists
23
23
file (MAKE_DIRECTORY ${QGIS_OUTPUT_DIRECTORY} /i18n )
24
24
25
- SET (TS_FILES qgis_de .ts qgis_it .ts qgis_nl .ts qgis_pt_PT .ts qgis_pt_BR .ts qgis_gl .ts qgis_fr .ts qgis_fi .ts qgis_nb .ts qgis_eu .ts qgis_ko .ts qgis_sv .ts qgis_ja .ts qgis_da .ts qgis_es .ts qgis_pl .ts qgis_ru .ts qgis_hu .ts qgis_id .ts qgis_bs .ts qgis_cs .ts qgis_zh_CN .ts qgis_lt .ts qgis_sl .ts qgis_ar .ts qgis_lv .ts qgis_ro.ts qgis_et .ts qgis_sk.ts qgis_tr .ts qgis_zh_TW .ts qgis_hr .ts qgis_sr .ts qgis_sr .ts qgis_el .ts qgis_uk.ts qgis_km .ts qgis_th .ts )
25
+ SET (TS_FILES qgis_ar .ts qgis_bs .ts qgis_cs .ts qgis_da .ts qgis_de .ts qgis_el .ts qgis_es .ts qgis_et .ts qgis_eu .ts qgis_fi .ts qgis_fr .ts qgis_gl .ts qgis_hr .ts qgis_hu .ts qgis_id .ts qgis_it .ts qgis_ja .ts qgis_km .ts qgis_ko .ts qgis_lt .ts qgis_lv .ts qgis_nb .ts qgis_nl .ts qgis_pl .ts qgis_pt_BR .ts qgis_pt_PT .ts qgis_ro.ts qgis_ru .ts qgis_sk.ts qgis_sl .ts qgis_sr_Cyrl .ts qgis_sr_Latn .ts qgis_sv .ts qgis_th .ts qgis_tr .ts qgis_uk.ts qgis_zh_CN .ts qgis_zh_TW .ts )
26
26
27
27
ADD_TRANSLATION_FILES (QM_FILES ${TS_FILES} )
28
28
Original file line number Diff line number Diff line change 148
148
149
149
push @lang , {
150
150
code => $langcode ,
151
+ origcode => $lc ,
151
152
name => $name , n => $n ,
152
153
translations => $translations ,
153
154
finished => $finished ,
217
218
my @ts ;
218
219
for my $l (sort { $a -> {code } cmp $b -> {code } } @lang ) {
219
220
next if $l -> {percentage } < 35;
220
- push @ts , $l -> {code };
221
+ push @ts , $l -> {origcode };
221
222
}
222
223
223
224
rename " i18n/CMakeLists.txt" , " i18n/CMakeLists.txt.temp" || die " cannot rename i18n/CMakeLists.txt: $! " ;
224
225
225
226
open I, " i18n/CMakeLists.txt.temp" ;
226
227
open O, " >i18n/CMakeLists.txt" ;
227
228
while (<I>) {
228
- if ( / ^\( SET TS_FILES / || / ^FILE \( GLOB TS_FILES \*\. ts\) / ) {
229
+ if ( / ^SET \( TS_FILES / || / ^FILE \( GLOB TS_FILES \*\. ts\) / ) {
229
230
print O " SET(TS_FILES " . join ( " " , map { " qgis_$_ \. ts" ; } @ts ) . " )\n " ;
230
231
} else {
231
232
print O;
You can’t perform that action at this time.
0 commit comments