W3C home > Mailing lists > Public > public-html@w3.org > October 2009

Re: what's the language of a document ?

From: Martin Kliehm <martin.kliehm@namics.com>
Date: Sun, 25 Oct 2009 10:17:55 +0100
Message-Id: <ACB3D2E1-D29B-48FA-A109-A6BB3C416CB8@namics.com>
To: Divya Manian <divya.manian@gmail.com>
Cc: "<public-html@w3.org>" <public-html@w3.org>, "www-international@w3.org" <www-international@w3.org>
On 25.10.2009, at 09:38, Divya Manian <divya.manian@gmail.com> wrote:

> Internationalization best practices [1] states:
> “Where a document contains content aimed at speakers of more than o 
> ne
> language, use Content-Language with a comma-separated list of  
> language tags.”
> The HTML 5 specs [2] state:
> “…there is a document-wide default language set, then that is the  
> language of the node.
> If there is no document-wide default language, then language  
> information
> from a higher-level protocol (such as HTTP), if any, must be used as  
> the
> final fallback language. In the absence of any language information,  
> the default value is unknown (the empty string).”
> What is not clear is, what happens if a HTML document has a HTTP  
> header Content-Language has a comma-separated list of language tags  
> and no other language declarations? I found on a thread [3] that  
> states such a document will be declared to use "unknown" language in  
> this case. It would be good to
> have this case explicitly stated.

Also in XHTML notation empty strings are disallowed, so the default  
valuefor "unknown" would be in that case "und". [4]


[4] http://www.w3.org/International/questions/qa-no-language
Received on Sunday, 25 October 2009 09:18:14 UTC

This archive was generated by hypermail 2.4.0 : Saturday, 9 October 2021 18:45:01 UTC