W3C home > Mailing lists > Public > www-html@w3.org > February 2006

Re: hreflang

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Mon, 06 Feb 2006 12:51:39 +0100
Message-ID: <43E7384B.6010207@cwi.nl>
To: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Cc: www-html@w3.org

Lachlan Hunt wrote:
> Steven Pemberton wrote:
>> but if you want to supply an explicit link to a language version, you 
>> can include the attribute:
>>     <a href="report" hreflang="nl">The report in Dutch</a>
>> I would call this the best of both worlds. It means, for instance, 
>> that someone whose preferred language is not Dutch, but who can 
>> nevertheless speak Dutch, can get to the Dutch version (for instance 
>> to check the translation).
> Is this not better handled by having the langauge as part of the URI, 
> such as "report.nl" or "/nl/report"?

That is an option, but may lock you into a particular server's choice of 
naming conventions, making it hard to change server.

> With the hreflang method, if a user (who's browser preferences don't 
> include nl as a preferred language) bookmarks the page or copies and 
> pastes the URI and then tries to return to the page later, they may not 
> receive the the nl version.

Yes, this is one of the deficiencies of URLs: although there may be 
several representations of a resource at a URL, there is no standardised 
way of identifying any particular one.

Best wishes,

Steven Pemberton
Received on Monday, 6 February 2006 11:51:46 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:12 UTC