Skip to content
Permalink
Browse files

followup 3c95b5b

  • Loading branch information
jef-n committed Oct 5, 2014
1 parent 1346cb6 commit b2e7e6ee8a494fb7216652daf64cae4a99ea30b6
Showing with 4 additions and 3 deletions.
  1. +1 −1 i18n/CMakeLists.txt
  2. +3 −2 scripts/tsstat.pl
@@ -22,7 +22,7 @@ ENDMACRO(ADD_TRANSLATION_FILES)
# make sure the output directory exists
file(MAKE_DIRECTORY ${QGIS_OUTPUT_DIRECTORY}/i18n)

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)
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)

ADD_TRANSLATION_FILES (QM_FILES ${TS_FILES})

@@ -148,6 +148,7 @@

push @lang, {
code=>$langcode,
origcode=>$lc,
name=>$name, n=>$n,
translations=>$translations,
finished=>$finished,
@@ -217,15 +218,15 @@
my @ts;
for my $l (sort { $a->{code} cmp $b->{code} } @lang) {
next if $l->{percentage} < 35;
push @ts, $l->{code};
push @ts, $l->{origcode};
}

rename "i18n/CMakeLists.txt", "i18n/CMakeLists.txt.temp" || die "cannot rename i18n/CMakeLists.txt: $!";

open I, "i18n/CMakeLists.txt.temp";
open O, ">i18n/CMakeLists.txt";
while(<I>) {
if( /^\(SET TS_FILES / || /^FILE \(GLOB TS_FILES \*\.ts\)/ ) {
if( /^SET\(TS_FILES / || /^FILE \(GLOB TS_FILES \*\.ts\)/ ) {
print O "SET(TS_FILES " . join( " ", map { "qgis_$_\.ts"; } @ts ) . ")\n";
} else {
print O;

0 comments on commit b2e7e6e

Please sign in to comment.
You can’t perform that action at this time.