[html4all] Linguistic variants in a single document ?
Gez Lemon
gez.lemon at gmail.com
Tue Sep 25 06:16:31 PDT 2007
Hi Phil,
On 25/09/2007, Philip TAYLOR
<Philip-and-LeKhanh at royal-tunbridge-wells.org> wrote:
> As a native British speaker, I would prefer
> to read web pages in <Br.E> (as opposed to <Am.E>),
> so I wonder :
>
> (How) can one mark up, in HTML, a single
> document in such a way that the user's language
> preferences (as specified in the browser's
> configuration, or as inherited from the
> operating system configuration) can be used to
> select from a set of possible linguistics variants ?
You can examine the user agent's preferred accept language, and
deliver content based on that. It's usually done to deliver the whole
document in different languages, but you could use it to replace
sections of content using a server-side scripting language, such as
PHP or ASP.
I sometimes trip up on American English, but I can't recall ever
reading anything that has totally thrown me. I imagine it's much more
difficult for speakers of other languages. I think if we're going to
do anything, we should consider content negotiation for the whole
document, as I think it's more important to get translations into
different languages, rather than anomalies in variations of the same
language. We could then still have the en-us and en-gb versions.
Cheers,
Gez
--
_____________________________
Supplement your vitamins
http://juicystudio.com
More information about the List_HTML4all.org
mailing list