Solved

Intraweb - User Language

Posted on 2010-11-17
6
872 Views
Last Modified: 2013-11-23
Currently using this to get user's browser info...

GetEnumName(TypeInfo(TIWBrowser),Ord(WebApplication.Browser)

Is there a way to retrieve the OS language or the browser's language ?
0
Comment
Question by:controlr
  • 3
  • 2
6 Comments
 
LVL 7

Accepted Solution

by:
ebob42 earned 500 total points
ID: 34157971
You can check the Request.UserAgent as far as I remember.
0
 
LVL 7

Expert Comment

by:ebob42
ID: 34158139
That's   WebApplication.Request.UserAgent by the way.
0
 

Author Comment

by:controlr
ID: 34158259
user agent returns almost everyting and the kitchen sink! .. but no LANG :(

Eg..
Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.2; Trident/4.0; .NET CLR 1.1.4322; InfoPath.3)

The closest I can get is making a call to an IP-lookup service - but no guarantee of user lang.. its the lang of the country of the IP...
0
 

Author Comment

by:controlr
ID: 34343464
NOTE for others (from question author) !
The useragent does indeed return country + language.. most of the time :)
After weeks of testing, it seems that it only registers about 80% of .
Some OS builds (mostly Windows) seem to have an issue returning the Country/Locale
From our testing, one of the suspected issues is when users have multiple languages installed , but again, no guarantees!.
eBob gets the points althuogh it was a no brainer ;)
0
 

Author Closing Comment

by:controlr
ID: 34343490
see my comment at end of thread :)
Still love that shopping reset joke on the other thread !
Cheers!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question