Skip to content

Commit

Permalink
followup 3c95b5b
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Oct 5, 2014
1 parent 1346cb6 commit b2e7e6e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion i18n/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand Down
5 changes: 3 additions & 2 deletions scripts/tsstat.pl
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@

push @lang, {
code=>$langcode,
origcode=>$lc,
name=>$name, n=>$n,
translations=>$translations,
finished=>$finished,
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit b2e7e6e

Please sign in to comment.