![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've wondered if there's a best practice on defining the URL structure of a multi-language site. |
#3
| |||
| |||
|
|
On Sun, 25 May 2008, Stanimir Stamenkov wrote: I've wondered if there's a best practice on defining the URL structure of a multi-language site. That depends on: - whether you translate *all* pages in *all* available languages so that you have never the situation that you have to serve a page in a language the user understands but does not prefer [...] If the answer to the first question is "yes", I would separate the languages at the root level ("http://yoursite.com/en/..."), otherwise at the leaf level ("http://yoursite.com/info/products/some_product_en"). |
#4
| |||||
| |||||
|
|
I've wondered if there's a best practice on defining the URL structure of a multi-language site. |
|
https://addons.mozilla.org/ redirects me to: https://addons.mozilla.org/en-US/seamonkey/ I suppose the preferred language is initially determined from the 'Accept-Language' request header. |
|
Next, wherever I navigate in the site all URLs start with: https://addons.mozilla.org/en-US/ |
|
https://addons.mozilla.org/en-US/seamonkey/addon/433 When I pass that URL to a person which has different language preferences he will still be served the English variant which I rather don't want. |
|
Providing URLs serving specific language variants (e.g. by supplying 'alternate' LINKs in the HEAD of HTML document) is o.k. but using "default" URLs serving a language variant depending on the current visitor preferences is more practical in my opinion. |
#5
| |||
| |||
|
|
The 'Accept-Language' browser setting is often pre-configured depending on the OS regional setting so it is very likely it will indicate an actual user preference. |
#6
| |||
| |||
|
|
No, it is very likely that it is bogus, such as "en-US" or "en" independently of the user's actual first language. Regional settings cannot be relied on, and browsers need not (and often do not) consult them. |
#7
| |||
| |||
|
|
Does anyone know of a real-life Website that has more than one regional version of the same language, |
#8
| |||
| |||
|
|
"fixed" language URLs - what do you think is better, having: http://www.example.net/article serving the language variant as the current user preference is, or having it always redirect to: http://www.example.net/en-US/article |
![]() |
| Thread Tools | |
| Display Modes | |
| |