Solved

Intraweb - User Language

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
loading dll from external path 1 210
proper way to parse text with delphi 7 100
Connection between libmysql.dll and MySQL Versions 7 87
PHP preg_replace code convert to Delphi 14 32
A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
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…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

911 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

17 Experts available now in Live!

Get 1:1 Help Now