开发者

locale specific download links

开发者 https://www.devze.com 2023-03-18 16:06 出处:网络
i\'m trying to provide download links of browsers in my application which is available in many european languages.

i'm trying to provide download links of browsers in my application which is available in many european languages.

How can I direct a user to their own countries download page.

For eg: for fire开发者_运维问答fox, if an italian logs in he should be directed to the italian page. Same for all browsers.

I use tomcat 6 as the application server


I'd parse the Accept-Language header … but only use it to decide which version the big link at the top of the page should link to, a table of alternative versions below, or a link to other versions avoids problems with making wrong assumptions about a user's preferences.

For example:

locale specific download links

  • A big link that tells you what you will get (including platform and language)
  • A link to a page showing all the other versions which links to

locale specific download links

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号