Re: More statictics problems...
- From: Carlos Perelló Marín <carlos gnome-db org>
- To: "R.I.P. Deaddog" <maddog linuxhall org>
- Cc: GNOME i18n list <gnome-i18n gnome org>
- Subject: Re: More statictics problems...
- Date: 04 Dec 2001 21:11:32 +0100
El mar, 04-12-2001 a las 20:14, R.I.P. Deaddog escribió:
> On Wed, 5 Dec 2001, R.I.P. Deaddog wrote:
>
> > 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.
>
> Sorry, the previous patch is obviously wrong, forgot to escape the
> double quotes. Here's a corrected one.
>
The change is now at cvs.gnome.org. I have fixed small errors ;-)
You could see now the
http://developer.gnome.org/projects/gtp/status/stable/status.shtml pages
with this patch.
Bye && Thanks.
P.S.: I don't know if use of US-ASCII default is correct. Mozilla shows
you the page with the correct charset without this patch and now I don't
know if it will show you other pages without a charset set.
> 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
--
Carlos Perelló Marín
mailto:carlos@gnome-db.org
mailto:carlos.perello@hispalinux.es
http://www.gnome-db.org
http://www.Hispalinux.es
Valencia - Spain
PGP signature
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]