Package: www.debian.org Severity: wishlist Tags: patch Hi, it would be easier to read and compare number of pages by column if they where aligned. the attached patch looks like this with lynx: ===== Debian web site translation statistics Translated web pages There are 2211 pages to translate. Language Translations Up to date Outdated Not translated [1]Arabic (ar) 8 (0%) 7 (88%) 1 (12%) 2203 (100%) [2]Bulgarian (bg) 23 (1%) 16 (70%) 7 (30%) 2188 (99%) [3]Catalan (ca) 147 (7%) 138 (94%) 9 (6%) 2064 (93%) [4]Chinese (zh-cn) 189 (9%) 163 (86%) 26 (14%) 4220 (91%) [5]Chinese (zh-tw) 189 (9%) 163 (86%) 26 (14%) 4220 (91%) [6]Croatian (hr) 271 (12%) 238 (88%) 33 (12%) 1940 (88%) [7]Czech (cs) 1 (0%) 0 (0%) 1 (100%) 2210 (100%) [...] Translated templates (gettext files) There are 835 strings to translate. Language Up to date Fuzzy Not translated [61]Arabic (ar) 354 (42%) 107 (13%) 374 (45%) [62]Bulgarian (bg) 646 (77%) 25 (3%) 164 (20%) [63]Catalan (ca) 755 (90%) 12 (1%) 68 (8%) [64]Chinese (zh-cn) 326 (39%) 38 (5%) 471 (56%) [65]Chinese (zh-tw) 326 (39%) 38 (5%) 471 (56%) [66]Croatian (hr) 605 (72%) 19 (2%) 211 (25%) [67]Czech (cs) 145 (17%) 2 (0%) 688 (82%) [...] ===== Regards Nicolas Bertolissio -- System Information: Debian Release: testing/unstable APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Kernel: Linux 2.6.6 Locale: LANG=fr_FR@euro, LC_CTYPE=fr_FR@euro --
--- stattrans.pl 2004-05-08 17:56:10.000000000 +0200 +++ stattrans.0.pl 2004-06-29 19:52:19.000000000 +0200 @@ -447,7 +447,7 @@ 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"; +print HTML "<tr><th>Language</th><th colspan=\"2\">Translations</th><th colspan=\"2\">Up to date</th><th colspan=\"2\">Outdated</th><th colspan=\"2\">Not translated</th></tr>\n"; foreach $lang (@search_in) { my @processed_langs = ($langs{$lang}); @processed_langs = ("zh-cn", "zh-tw") if $langs{$lang} eq "zh"; @@ -459,11 +459,11 @@ print HTML "<tr>"; printf HTML "<td><a href=\"%s.html\">%s</a> (%s)</td>", $l, ucfirst $lang, $l; - printf HTML "<td bgcolor=\"%s\" align=right>%d (%d%%)</td>", $color_a, $wml{$lang}, $percent_a{$lang}; - printf HTML "<td bgcolor=\"%s\" align=right>%d (%d%%)</td>", $color_t, $translated{$lang}, $percent_t{$lang}; - printf HTML "<td bgcolor=\"%s\" align=right>%d (%d%%)</td>", $color_o, $outdated{$lang}, $percent_o{$lang}; - printf HTML "<td bgcolor=\"%s\" align=right>%d (%d%%)</td>", $color_u, $untranslated{$lang}, $percent_u{$lang}; - print HTML "</tr>\n", + printf HTML "<td bgcolor=\"%s\" align=right>%d</td><td>(%d%%)</td>", $color_a, $wml{$lang}, $percent_a{$lang}; + printf HTML "<td bgcolor=\"%s\" align=right>%d</td><td>(%d%%)</td>", $color_t, $translated{$lang}, $percent_t{$lang}; + printf HTML "<td bgcolor=\"%s\" align=right>%d</td><td>(%d%%)</td>", $color_o, $outdated{$lang}, $percent_o{$lang}; + printf HTML "<td bgcolor=\"%s\" align=right>%d</td><td>(%d%%)</td>", $color_u, $untranslated{$lang}, $percent_u{$lang}; + print HTML "</tr>\n"; } } print HTML "</table>\n"; @@ -473,7 +473,7 @@ printf HTML "<p>There are %d strings to translate.</p>\n",$po_total{'total'}; print HTML $border_head; print HTML "<table width=\"100%\" border=0 bgcolor=\"#cdc9c9\">\n"; -print HTML "<tr><th>Language</th><th>Up to date</th><th>Fuzzy</th><th>Not translated</th></tr>\n"; +print HTML "<tr><th>Language</th><th colspan=\"2\">Up to date</th><th colspan=\"2\">Fuzzy</th><th colspan=\"2\">Not translated</th></tr>\n"; foreach $lang (@search_in) { next if $lang eq 'english'; my @processed_langs = ($langs{$lang}); @@ -484,9 +484,9 @@ $color_t = get_color ($percent_po_t{'total'}{$lang}); $color_f = get_color (100 - $percent_po_f{'total'}{$lang}); $color_u = get_color (100 - $percent_po_u{'total'}{$lang}); - printf HTML "<td bgcolor=\"%s\" align=right>%d (%d%%)</td>", $color_t, $po_translated{'total'}{$lang}, $percent_po_t{'total'}{$lang}; - printf HTML "<td bgcolor=\"%s\" align=right>%d (%d%%)</td>", $color_f, $po_fuzzy{'total'}{$lang}, $percent_po_f{'total'}{$lang}; - printf HTML "<td bgcolor=\"%s\" align=right>%d (%d%%)</td>", $color_u, $po_untranslated{'total'}{$lang}, $percent_po_u{'total'}{$lang}; + printf HTML "<td bgcolor=\"%s\" align=right>%d</td><td>(%d%%)</td>", $color_t, $po_translated{'total'}{$lang}, $percent_po_t{'total'}{$lang}; + printf HTML "<td bgcolor=\"%s\" align=right>%d</td><td>(%d%%)</td>", $color_f, $po_fuzzy{'total'}{$lang}, $percent_po_f{'total'}{$lang}; + printf HTML "<td bgcolor=\"%s\" align=right>%d</td><td>(%d%%)</td>", $color_u, $po_untranslated{'total'}{$lang}, $percent_po_u{'total'}{$lang}; print HTML "</tr>\n"; } }
Attachment:
signature.asc
Description: Digital signature