Howdy, The following patch orders the languages on the translation statistics page[1] by translation percentage[2], rather than English spelling. OK to commit? Matt 1. http://www.debian.org/devel/website/stats/ 2. Actually, it sorts them by the number of up-to-date translations. If this isn't sufficient, it puts the one with the *fewest* out-of-date translations first (the logic being that an out-of-date translation is worse than no translation). Index: stattrans.pl =================================================================== RCS file: /cvs/webwml/webwml/stattrans.pl,v retrieving revision 1.39 diff -u -r1.39 stattrans.pl --- stattrans.pl 2002/05/14 10:36:32 1.39 +++ stattrans.pl 2002/05/23 00:38:04 @@ -327,7 +327,12 @@ print HTML $border_head; print HTML "<table width=100% border=0 bgcolor=\"#cdc9c9\">\n"; print HTML "<tr><th>Language</th><th>Translations</th><th>Up to date</th><th>Outdated</th><th>Not translated</th></tr>\n"; -foreach $lang (@search_in) { + +sub bytranslated { + $translated{$b} <=> $translated{$a} || $outdated{$a} <=> $outdated{$b} +} + +foreach $lang (sort bytranslated @search_in) { $l = $langs{$lang}; $l = "zh-cn" if ($l eq "zh"); # kludge
Attachment:
pgpYIuoT0vQlg.pgp
Description: PGP signature