michaelsanford
Translator, Web Developer
http://developer.apple.com/internet/safari_faq.html
Now it seems that some sites (such as the MSN Messenger emoticon help page) correctly detect my system language as fr-ca, and display the page in French, even though Safari is set to 'en' (since there's no preference for that yet )
I'd like to make an page for my web site that automatically sniffs for the system language and redirects to an appropriate version.
What's the best way to sniff: exploding the user-agent string and looking for the language there, or using the browser language setting?
Code:
And the Language is: [b]en[/b]
And your user-agent string is:
Mozilla/5.0 (Macintosh; U; PPC Mac OS X; [b]fr-ca[/b]) AppleWebKit/60 (like Gecko) Safari/60
Now it seems that some sites (such as the MSN Messenger emoticon help page) correctly detect my system language as fr-ca, and display the page in French, even though Safari is set to 'en' (since there's no preference for that yet )
I'd like to make an page for my web site that automatically sniffs for the system language and redirects to an appropriate version.
What's the best way to sniff: exploding the user-agent string and looking for the language there, or using the browser language setting?