Reputation
Next privilege 250 Rep.
View close votes
Badges
8
Impact
~3k people reached

  • 0 posts edited
  • 0 helpful flags
  • 5 votes cast
Apr
16
comment Filtering desktop users by user agent string
Thanks for the comment. However, since I'm trying to determine which site version to serve Javascript is not a very good approach. I need to determine the appropriate version before I serve the page. If I use Javascript, I have to load a page, then detect, then redirect. That would waste time and bandwidth, and just seems silly. The detection needs to be on the server side.
Feb
14
comment Filtering desktop users by user agent string
Thanks for the list of user agents. However, it's years old, only tangentially related, and doesn't do anything to help solve my problem. My question isn't about the numbers; they were only background. That should be clear since I introduced my question with the bolded statement, "Here's my question."
Feb
13
comment Filtering desktop users by user agent string
@elssar: Sure, my statistics come from there. However, I don't know how to convert those statistics into browser detection code.
Feb
13
comment Filtering desktop users by user agent string
Thanks. However, this is detecting mobile browsers, which is a moving target, and only 10% of my traffic. I want to detect desktop browsers. Simply negating the regex you give wouldn't work because it is presumably incomplete, or at least would be incomplete as time passes. It would result in some number of mobile browsers falsely being identified as desktop browsers.
Dec
6
comment What's the best way to determine users' preferred language?
-1, because asking the user is a rather poor way to determine the default. Certainly it should be easy to change the language, but any decent website ought to find a reasonable default without having to ask.
Dec
6
comment What's the best way to determine users' preferred language?
@xyious, Peter Taylor: There's a very real use case here: someone who travels with a laptop. Public wireless is readily available in many places around the world. When I had a layover in Dubai a couple of years ago, I was disappointed to find Facebook and Google suddenly change to Arabic, although that's a language I don't know. I was using my own laptop with an English OS and browser.
Dec
6
comment What's the best way to determine users' preferred language?
Regarding Wikipedia, see my upcoming edit. Basically, Wikipedia's approach seems to be especially poor, because it relies on the user explicitly selecting a language rather than using readily-available methods to determine their likely preference. Regarding Google, browsing to google.com in Korea results in a redirect to google.co.kr. YouTube stores this info in a short-lived cookie (so I keep having to set my prefs), and Blogger can't be changed without logging in. Google is good at many things, but l10n isn't one of them.
Dec
6
comment What's the best way to determine users' preferred language?
If users don't configure their browser's language settings, then the browser defaults to the OS language (at least in the browsers I've tested). This should theoretically be more accurate, since computers sold in a given country will likely be set to that country's default language (providing results that are nearly the same as geolocation), but people who are traveling will generally have an OS in a language they know. So, I suspect that users' configuration choices aren't a significant factor.