Solved

Intraweb - User Language

Posted on 2010-11-17
6
860 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now