Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 b005f10
Show file tree
Hide file tree
Showing 56 changed files with 261 additions and 555 deletions.
108 changes: 54 additions & 54 deletions doc/TRANSLATORS

Large diffs are not rendered by default.

658 changes: 168 additions & 490 deletions i18n/qgis_de.ts

Large diffs are not rendered by default.

Empty file modified images/flags/af.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/ar.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/bg.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/bn.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/cs_CZ.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/da_DK.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/de.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/el_GR.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/es.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/et_EE.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/fa.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/fi.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/fr.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/gl_ES.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/he.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/hr_HR.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/hu.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/id.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/is.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/it.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/ja.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/ka_GE.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/km.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/ko_KR.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/lo.png 100755 → 100644
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file modified images/flags/lt.png 100755 → 100644
Empty file modified images/flags/lv.png 100755 → 100644
Empty file modified images/flags/ml_IN.png 100755 → 100644
Empty file modified images/flags/mn.png 100755 → 100644
Empty file modified images/flags/nl.png 100755 → 100644
Empty file modified images/flags/no.png 100755 → 100644
Empty file modified images/flags/pl_PL.png 100755 → 100644
Empty file modified images/flags/pt_BR.png 100755 → 100644
Empty file modified images/flags/pt_PT.png 100755 → 100644
Empty file modified images/flags/ro.png 100755 → 100644
Empty file modified images/flags/ru.png 100755 → 100644
Empty file modified images/flags/sk.png 100755 → 100644
Empty file modified images/flags/sl_SI.png 100755 → 100644
Empty file modified images/flags/sq_AL.png 100755 → 100644
File renamed without changes
Binary file removed images/flags/sr_Latn.png
Diff not rendered.
Empty file modified images/flags/sv.png 100755 → 100644
Empty file modified images/flags/sw.png 100755 → 100644
Empty file modified images/flags/ta.png 100755 → 100644
Empty file modified images/flags/th.png 100755 → 100644
Empty file modified images/flags/tr.png 100755 → 100644
Empty file modified images/flags/uk.png 100755 → 100644
Empty file modified images/flags/vi.png 100755 → 100644
Empty file modified images/flags/xh.png 100755 → 100644
Empty file modified images/flags/zh_CN.png 100755 → 100644
Empty file modified images/flags/zh_TW.png 100755 → 100644
3 changes: 1 addition & 2 deletions images/images.qrc
Expand Up @@ -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>
Expand Down
36 changes: 30 additions & 6 deletions scripts/tsstat.pl
Expand Up @@ -15,6 +15,7 @@
###########################################################################

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

Expand Down Expand Up @@ -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',
Expand All @@ -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);
Expand All @@ -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\)/) {
Expand All @@ -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\"/>";
Expand All @@ -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 {
Expand All @@ -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";
}
11 changes: 8 additions & 3 deletions scripts/update_ts_files.sh
Expand Up @@ -70,6 +70,7 @@ fi

exclude=
opts=
fast=
while (( $# > 0 )); do
arg=$1
shift
Expand All @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit b005f10

Please sign in to comment.