Re: More statictics problems...



On 4 Dec 2001, Carlos [ISO-8859-1] Perelló Marín wrote:

> > 1. yelp is in unstable page, but the file
> >    http://developer.gnome.org/projects/gtp/status/unstable/po/yelp.pot
> >    doesn't exist.
>
> The POTFILE.in was wrong. Fixed.

Thanks.

> > 2. Seems the scripts generating GTP pages can't handle 8-bit chars in
> >    msgid. Gtranslator was shown to contain 359 entries in various
> >    invididual language pages, but in fact it has 39x entries... the
> >    questionable entry has 8bit char in msgid.
>
> I don't know anything about this bug. Could you please tell us the
> locales you have tested?
>
> Spanish locale (es) uses 8bit chars and it's ok (I think).

Sorry for the fuzz. When I look closer into zh_TW.po, it turns out that
the translator has modified msgid as well as msgstr. Corrected the
corresponding po file, so I'll wait and see if everything goes well
after status page is updated.


> > 3. http://developer.gnome.org/projects/gtp/status/stable/po/gimp-perl.pot
> >    Is generated at Sep 1999 !?
>
> I think that is the method they use for update this .pot file (gimp has
> its own scripts).

Yes, but when the script generating gimp-perl.pot is called, it sets
POT-Creation-Time to localtime(). Is the pot file in d.g.o hand-generated?


> P.S.: The status pages are beeing updated now, please check it again in
> about 2 or 3 hours and tell me if we have new problems


Thanks for the great work.

As a side note, is it a possible idea to have META tag added to various
individual status pages, so that charset for different locales are
set correctly? Attached a patch again genhtml.pl, but it is untested.

Abel
--- /home/maddog/cvs/CVS.GNOME.ORG/gnome-i18n/status/genhtml.pl	Wed Dec  5 02:34:17 2001
+++ ./genhtml.pl	Wed Dec  5 03:06:45 2001
@@ -54,6 +54,26 @@
 
 # used => for readability.
 
+my %charset = (
+    "da" => "iso-8859-1",
+    "de" => "iso-8859-1",
+    "el" => "iso-8859-7",
+    "es" => "iso-8859-1",
+    "fr" => "iso-8859-1",
+    "gl" => "iso-8859-1",
+    "ja" => "euc-jp",
+    "hu" => "iso-8859-2",
+    "nn" => "iso-8859-1",
+    "no" => "iso-8859-1",
+    "pt" => "iso-8859-1",
+    "ro" => "iso-8859-2",
+    "ru" => "koi8-r",
+    "sv" => "iso-8859-1",
+    "tr" => "iso-8859-9",
+    "uk" => "koi8-u",
+    "wa" => "iso-8859-1"
+)
+
 my %modulenames = (
     "da" => "Modul",
     "de" => "Paket",
@@ -490,8 +510,12 @@
     $link = "$details_" . substr($lang, 0, 5) . ".shtml";
     open  TABLE2, ">$htmldir/$link" or die "can't open $htmldir/$link";
     $detail = $details{$lang} || $details{"C"} . $lang;
+    $charset = $charset{$lang} || "US-ASCII";
     print TABLE2 <<"EOF";
-<html><head><title>$detail</title></head><body>
+<html><head>
+<title>$detail</title>
+<meta http-equiv="Content-Type" content="text/html; charset=$charset">
+</head><body>
 <a name=\"$lang\"><b>$detail</b></a><br>
 <table cellpadding=1 cellspacing=1 border=1 >
 EOF


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]