Link to home
Start Free TrialLog in
Avatar of controlr
controlrFlag for Israel

asked on

Intraweb - User Language

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 ?
ASKER CERTIFIED SOLUTION
Avatar of ebob42
ebob42
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That's   WebApplication.Request.UserAgent by the way.
Avatar of controlr

ASKER

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...
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 ;)
see my comment at end of thread :)
Still love that shopping reset joke on the other thread !
Cheers!