W3C home > Mailing lists > Public > public-i18n-ws@w3.org > June 2004

Re: Issue with language codes and locale codes

From: Mark Davis <mark.davis@jtcsv.com>
Date: Fri, 11 Jun 2004 10:24:29 -0700
Message-ID: <01ba01c44fd8$f41b0c00$6401a8c0@DAVIS1>
To: <public-i18n-ws@w3.org>, "Martin Duerst" <duerst@w3.org>

I'm confused. In that section, I see:

>A language-range matches a language-tag if it exactly equals the tag, or if it
exactly equals a prefix of the tag such that the first tag character following
the prefix is "-".

Mark
__________________________________
http://www.macchiato.com
► शिष्यादिच्छेत्पराजयम् ◄

----- Original Message ----- 
From: "Martin Duerst" <duerst@w3.org>
To: <public-i18n-ws@w3.org>
Sent: Fri, 2004 Jun 11 02:27
Subject: Issue with language codes and locale codes


>
> I have found the following issue with regards to using HTTP
> Accept-Language: for determining the locale of a user:
>
> The way HTTP matches language ranges and language tags is
> described in Section 14.4 of RFC 2616
> (http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4):
>
> Accept-Language: en     matches          Content-Language: en-us
> but
> Accept-Language: en-us  does no match    Content-Language: en
>
> This means that browsers should send general things such as 'en'
> rather than the more specific labels such as 'en-us', or both.
> But for using this to determine a locale, the more specific,
> the better.
>
>
> Regards,    Martin.
>
>
>
>
>
Received on Friday, 11 June 2004 13:24:32 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:02:39 UTC