Skip to content
Permalink
Browse files

translation update:

- update_ts_files.sh: add -f flag ('fast' mode; only update specified languages
  and don't run tsstat.pl)
- tsstat.pl: cut off latin1 & cyrillic suffix and use only one serbian flag
- unify flag image permission
- german translation update
  • Loading branch information
jef-n committed Jun 6, 2013
1 parent 6b0ce08 commit b005f10470ef15c579150aa223ad7e78df6f7a06
Showing with 261 additions and 555 deletions.
  1. +54 −54 doc/TRANSLATORS
  2. +168 −490 i18n/qgis_de.ts
  3. BIN images/flags/af.png
  4. BIN images/flags/ar.png
  5. BIN images/flags/bg.png
  6. BIN images/flags/bn.png
  7. BIN images/flags/cs_CZ.png
  8. BIN images/flags/da_DK.png
  9. BIN images/flags/de.png
  10. BIN images/flags/el_GR.png
  11. BIN images/flags/es.png
  12. BIN images/flags/et_EE.png
  13. BIN images/flags/fa.png
  14. BIN images/flags/fi.png
  15. BIN images/flags/fr.png
  16. BIN images/flags/gl_ES.png
  17. BIN images/flags/he.png
  18. BIN images/flags/hr_HR.png
  19. BIN images/flags/hu.png
  20. BIN images/flags/id.png
  21. BIN images/flags/is.png
  22. BIN images/flags/it.png
  23. BIN images/flags/ja.png
  24. BIN images/flags/ka_GE.png
  25. BIN images/flags/km.png
  26. BIN images/flags/ko_KR.png
  27. BIN images/flags/lo.png
  28. BIN images/flags/lt.png
  29. BIN images/flags/lv.png
  30. BIN images/flags/ml_IN.png
  31. BIN images/flags/mn.png
  32. BIN images/flags/nl.png
  33. BIN images/flags/no.png
  34. BIN images/flags/pl_PL.png
  35. BIN images/flags/pt_BR.png
  36. BIN images/flags/pt_PT.png
  37. BIN images/flags/ro.png
  38. BIN images/flags/ru.png
  39. BIN images/flags/sk.png
  40. BIN images/flags/sl_SI.png
  41. BIN images/flags/sq_AL.png
  42. BIN images/flags/{sr_Cyrl.png → sr.png}
  43. BIN images/flags/sr_Latn.png
  44. BIN images/flags/sv.png
  45. BIN images/flags/sw.png
  46. BIN images/flags/ta.png
  47. BIN images/flags/th.png
  48. BIN images/flags/tr.png
  49. BIN images/flags/uk.png
  50. BIN images/flags/vi.png
  51. BIN images/flags/xh.png
  52. BIN images/flags/zh_CN.png
  53. BIN images/flags/zh_TW.png
  54. +1 −2 images/images.qrc
  55. +30 −6 scripts/tsstat.pl
  56. +8 −3 scripts/update_ts_files.sh

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 images/flags/af.png 100755 → 100644
Empty file.
0 images/flags/ar.png 100755 → 100644
Empty file.
0 images/flags/bg.png 100755 → 100644
Empty file.
0 images/flags/bn.png 100755 → 100644
Empty file.
0 images/flags/cs_CZ.png 100755 → 100644
Empty file.
0 images/flags/da_DK.png 100755 → 100644
Empty file.
0 images/flags/de.png 100755 → 100644
Empty file.
0 images/flags/el_GR.png 100755 → 100644
Empty file.
0 images/flags/es.png 100755 → 100644
Empty file.
0 images/flags/et_EE.png 100755 → 100644
Empty file.
0 images/flags/fa.png 100755 → 100644
Empty file.
0 images/flags/fi.png 100755 → 100644
Empty file.
0 images/flags/fr.png 100755 → 100644
Empty file.
0 images/flags/gl_ES.png 100755 → 100644
Empty file.
0 images/flags/he.png 100755 → 100644
Empty file.
0 images/flags/hr_HR.png 100755 → 100644
Empty file.
0 images/flags/hu.png 100755 → 100644
Empty file.
0 images/flags/id.png 100755 → 100644
Empty file.
0 images/flags/is.png 100755 → 100644
Empty file.
0 images/flags/it.png 100755 → 100644
Empty file.
0 images/flags/ja.png 100755 → 100644
Empty file.
0 images/flags/ka_GE.png 100755 → 100644
Empty file.
0 images/flags/km.png 100755 → 100644
Empty file.
0 images/flags/ko_KR.png 100755 → 100644
Empty file.
0 images/flags/lo.png 100755 → 100644
Empty file.
0 images/flags/lt.png 100755 → 100644
Diff not rendered.
0 images/flags/lv.png 100755 → 100644
Diff not rendered.
0 images/flags/ml_IN.png 100755 → 100644
Diff not rendered.
0 images/flags/mn.png 100755 → 100644
Diff not rendered.
0 images/flags/nl.png 100755 → 100644
Diff not rendered.
0 images/flags/no.png 100755 → 100644
Diff not rendered.
0 images/flags/pl_PL.png 100755 → 100644
Diff not rendered.
0 images/flags/pt_BR.png 100755 → 100644
Diff not rendered.
0 images/flags/pt_PT.png 100755 → 100644
Diff not rendered.
0 images/flags/ro.png 100755 → 100644
Diff not rendered.
0 images/flags/ru.png 100755 → 100644
Diff not rendered.
0 images/flags/sk.png 100755 → 100644
Diff not rendered.
0 images/flags/sl_SI.png 100755 → 100644
Diff not rendered.
0 images/flags/sq_AL.png 100755 → 100644
Diff not rendered.
Diff not rendered.
BIN -423 Bytes images/flags/sr_Latn.png
Diff not rendered.
0 images/flags/sv.png 100755 → 100644
Diff not rendered.
0 images/flags/sw.png 100755 → 100644
Diff not rendered.
0 images/flags/ta.png 100755 → 100644
Diff not rendered.
0 images/flags/th.png 100755 → 100644
Diff not rendered.
0 images/flags/tr.png 100755 → 100644
Diff not rendered.
0 images/flags/uk.png 100755 → 100644
Diff not rendered.
0 images/flags/vi.png 100755 → 100644
Diff not rendered.
0 images/flags/xh.png 100755 → 100644
Diff not rendered.
0 images/flags/zh_CN.png 100755 → 100644
Diff not rendered.
0 images/flags/zh_TW.png 100755 → 100644
Diff not rendered.
@@ -41,8 +41,7 @@
<file>flags/sk.png</file>
<file>flags/sl_SI.png</file>
<file>flags/sq_AL.png</file>
<file>flags/sr_Cyrl.png</file>
<file>flags/sr_Latn.png</file>
<file>flags/sr.png</file>
<file>flags/sv.png</file>
<file>flags/sw.png</file>
<file>flags/ta.png</file>
@@ -15,6 +15,7 @@
###########################################################################

use strict;
use warnings;
use Locale::Language;
use Locale::Country;

@@ -73,8 +74,8 @@
sk => 'Lubos Balazovic, Jana Kormanikova, Ivan Mincik',
sl_SI => 'Jože Detečnik, Dejan Gregor',
sq_AL => '',
sr_Cyrl => 'Goran Ivanković',
sr_Latn => 'Goran Ivanković',
sr_Cyrl => 'Goran Ivanković',
sv => 'Lars Luthman, Magnus Homann, Victor Axbom',
sw => 'Yohana Mapala',
th => 'Man Chao',
@@ -91,6 +92,18 @@
my ($langcode) = $i =~ /i18n\/qgis_(.*).ts/;
next if $langcode eq "en";

my $translator = $translators->{$langcode} || "(orphaned)";

my $charset = "";
my $lc = $langcode;
if( $langcode =~ /(.*)_Latn/ ) {
$charset = " (latin)";
$langcode = $1;
} elsif( $langcode =~ /(.*)_Cyrl/ ) {
$charset = " (cyrillic)";
$langcode = $1;
}

my $name;
if($langcode =~ /(.*)_(.*)/) {
my $lang = code2language(lc $1);
@@ -100,10 +113,12 @@
$name = code2language(lc $langcode);
}

$name .= $charset;

open F, "lrelease $i|";

my($translations,$finished,$unfinished,$untranslated);
my($translations,$finished,$unfinished);
my $untranslated=0;

while(<F>) {
if(/Generated (\d+) translation\(s\) \((\d+) finished and (\d+) unfinished\)/) {
@@ -125,15 +140,24 @@
$maxn = $n;
}

push @lang, { code=>$langcode, name=>$name, n=>$n, translations=>$translations, finished=>$finished, unfinished=>$unfinished, untranslated=>$untranslated, };
push @lang, {
code=>$langcode,
name=>$name, n=>$n,
translations=>$translations,
finished=>$finished,
unfinished=>$unfinished,
untranslated=>$untranslated,
translator=>$translator
};
}

foreach my $l (@lang) {
$l->{diff} = $l->{n}-$maxn;
$l->{percentage} = ($l->{finished}+$l->{unfinished}/2)/$maxn*100;
}

if ($ARGV[0] eq "site") {

if ( @ARGV && $ARGV[0] eq "site") {
print "<html><body>";
print "<head>";
print "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\"/>";
@@ -157,7 +181,7 @@
$l->{diff}==0 ? $l->{n} : "$l->{n} ($l->{diff})",
$l->{finished}, $l->{unfinished}, $l->{untranslated},
$l->{percentage}, $l->{percentage},
$translators->{$l->{code}};
$l->{translator};
}
print "</table></body></html>\n";
} else {
@@ -178,7 +202,7 @@
$l->{code}, $l->{name},
$l->{finished}, $l->{unfinished}, $l->{untranslated},
$l->{percentage}, $l->{percentage},
$translators->{$l->{code}};
$l->{translator};
}
print "</table>\n";
}
@@ -70,6 +70,7 @@ fi

exclude=
opts=
fast=
while (( $# > 0 )); do
arg=$1
shift
@@ -83,6 +84,8 @@ while (( $# > 0 )); do
else
add="$add $arg"
fi
elif [ "$arg" = "-f" ]; then
fast=--remove-files
elif [ -f "i18n/qgis_$arg.ts" ]; then
exclude="$exclude --exclude i18n/qgis_$arg.ts"
else
@@ -92,7 +95,7 @@ done

if [ -n "$exclude" -o -n "$add" ]; then
echo Saving excluded translations
tar -cf i18n/qgis_ts.tar i18n/qgis_*.ts$exclude
tar $fast -cf i18n/qgis_ts.tar i18n/qgis_*.ts$exclude
fi
echo Updating python translations
cd python
@@ -127,8 +130,10 @@ fi
echo Updating translations
$LUPDATE$opts -verbose qgis_ts.pro

echo Updating TRANSLATORS File
./scripts/tsstat.pl > doc/TRANSLATORS
if [ -z "$fast" ]; then
echo Updating TRANSLATORS File
./scripts/tsstat.pl >doc/TRANSLATORS
fi

cleanup

0 comments on commit b005f10

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