talons

Fork of Claws Mail https://www.claws-mail
Log | Files | Refs | README | LICENSE

commit 4c5ab0a81c5fd956237df4507c24985e8cb09207
parent a6b1fb2b5f1cfee02703fae9fa06d2a3a6eba8dd
Author: Paul Mangan <paul@claws-mail.org>
Date:   Sun, 18 Oct 2009 09:52:04 +0000

2009-10-18 [paul]	3.7.3cvs2

	* tools/claws.i18n.status.pl
		increase the value of $transolddays since we're relasing less
		often now.
		rework the en_GB.po hack so that en_GB is always 100% translated
		and recently updated

Diffstat:
MChangeLog | 8++++++++
MPATCHSETS | 1+
Mconfigure.ac | 2+-
Mtools/claws.i18n.status.pl | 16+++++++++++-----
4 files changed, 21 insertions(+), 6 deletions(-)

diff --git a/ChangeLog b/ChangeLog @@ -1,3 +1,11 @@ +2009-10-18 [paul] 3.7.3cvs2 + + * tools/claws.i18n.status.pl + increase the value of $transolddays since we're relasing less + often now. + rework the en_GB.po hack so that en_GB is always 100% translated + and recently updated + 2009-10-17 [paul] 3.7.3cvs1 * src/prefs_account.c diff --git a/PATCHSETS b/PATCHSETS @@ -3875,3 +3875,4 @@ ( cvs diff -u -r 1.5.10.29 -r 1.5.10.30 src/addrgather.c; cvs diff -u -r 1.204.2.192 -r 1.204.2.193 src/prefs_common.c; cvs diff -u -r 1.103.2.125 -r 1.103.2.126 src/prefs_common.h; ) > 3.7.2cvs48.patchset ( cvs diff -u -r 1.207.2.214 -r 1.207.2.215 src/folderview.c; cvs diff -u -r 1.20.2.25 -r 1.20.2.26 src/folderview.h; cvs diff -u -r 1.274.2.302 -r 1.274.2.303 src/mainwindow.c; ) > 3.7.2cvs49.patchset ( cvs diff -u -r 1.105.2.155 -r 1.105.2.156 src/prefs_account.c; cvs diff -u -r 1.1.2.28 -r 1.1.2.29 src/prefs_compose_writing.c; cvs diff -u -r 1.16.2.39 -r 1.16.2.40 src/prefs_customheader.c; cvs diff -u -r 1.1.2.26 -r 1.1.2.27 src/prefs_receive.c; cvs diff -u -r 1.1.2.62 -r 1.1.2.63 src/prefs_summaries.c; cvs diff -u -r 1.1.2.20 -r 1.1.2.21 src/prefs_wrapping.c; ) > 3.7.3cvs1.patchset +( cvs diff -u -r 1.1.2.21 -r 1.1.2.22 tools/claws.i18n.status.pl; ) > 3.7.3cvs2.patchset diff --git a/configure.ac b/configure.ac @@ -12,7 +12,7 @@ MINOR_VERSION=7 MICRO_VERSION=3 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=1 +EXTRA_VERSION=2 EXTRA_RELEASE= EXTRA_GTK2_VERSION= diff --git a/tools/claws.i18n.status.pl b/tools/claws.i18n.status.pl @@ -75,7 +75,7 @@ $barwidth = 500; # pixels $barheight = 12; # pixels -$transolddays = 90; # days to consider a translation is old, so probably unmaintained. +$transolddays = 120; # days to consider a translation is old, so probably unmaintained. $transoldmonths = $transolddays / 30; $transneedthresold = 0.75; # percent/100 @@ -135,7 +135,6 @@ sub print_lang { $barlen3 = $barwidth - $barlen2 - $barlen; print "<td style='width:$barlen3", "px' bgcolor=\"$$barcolor{default}\"></td>\n"; print "</tr>\n</table>\n</td>\n\n<td style='text-align: right'>", int(($trans / $total) * 10000) / 100, "%</td>\n"; - if (($lang eq $langname{'en_GB.po'}) or ($lang eq $averagestr)) { $trans = $total; } # hack for en_GB and average results $transtatus = (($trans / $total) < $transneedthresold)? '<font size="+1" color="red"> * </font>': ''; print "<td>$transtatus</td>\n</tr>\n"; } @@ -202,9 +201,16 @@ foreach $pofile (@sorted_pofiles) { $atran += $tran; $afuzz += $fuzz; $auntr += $untr; - $_ = `grep 'PO-Revision-Date:' $pofile | cut -f2 -d:`; - if (/\s+(\d+)\-(\d+)\-(\d+)/) { - $transage = get_trans_age($1,$2,$3); + if ($pofile eq "en_GB.po") { + $tran = $tran+$fuzz; + $untr = "0"; + $fuzz = "0"; + $transage = $cage; + } else { + $_ = `grep 'PO-Revision-Date:' $pofile | cut -f2 -d:`; + if (/\s+(\d+)\-(\d+)\-(\d+)/) { + $transage = get_trans_age($1,$2,$3); + } } print_lang($langname{$pofile},$lasttranslator{$pofile},$tran,$fuzz,$untr,$transage, $oddeven); if ($oddeven == 1) { $oddeven = 0 } else { $oddeven++; }