Hi:
Ok, can I obtain the 3 letre code of the language (enu) for English us for 
example.
Thanks both, This sounds the sorts of things I'm looking for.
Cheers
Sean.

From: Aaron Smith [mailto:aa...@gwmicro.com]
Sent: 25 February 2012 15:56
To: gw-scripting@gwmicro.com
Subject: Re: Obtaining the langauge window-eyes is running in

Another alternative would be CurrentLocaleID, also an Application property. The 
advantage of CurrentLocaleID over CurrentLanguage is that you get the real 
language identifier that everyone knows rather than the internal Window-Eyes 
language identifier which only Window-Eyes knows. In other words, assuming 
Window-Eyes is running in English, CurrentLanguage will give you back the 
langEnglish enum, whereas CurrentLocaleID would give you back 1033. You can use 
the CurrentLocaleID in conjunction with the Utilities.LocaleInfo method, to do 
things like (using Immed as an example):

print Utilities.LocaleInfo(CurrentLocaleID).LanguageName
English

print Utilities.LocaleInfo(CurrentLocaleID).LocaleName
English (United States)

print Utilities.LocaleInfo(CurrentLocaleID).RegionName
United States

You can also use CurrentLocaleID with the Utilities.ConvertLanguageIDToString 
method:

print Utilities.ConvertLanguageIDToString(CurrentLocaleID)
en-us

If your CurrentLocaleID was 1062:

print Utilities.LocaleInfo(1062).LanguageName
latviešu

print Utilities.LocaleInfo(1062).LocaleName
Latvian (Latvia)

print Utilities.LocaleInfo(1062).RegionName
Latvija

print Utilities.ConvertLanguageIDToString(1062)
lv

Of course, if you're only concerned with the language of the Window-Eyes UI, 
then Doug's example is much simpler. But this gives you an idea of some of the 
things you can do with languages identifiers in Window-Eyes.

Aaron

On 2/25/2012 10:08 AM, Doug Geoffray wrote:
Sean,

I knew it was there but couldn't remember exactly where or what it was called.  
I went into the App Developer Reference manual and did a search for "language". 
 It was about the 17th entry down.  Just look at:

CurrentLanguage

This is a property of Application and returns a Language enum which will tell 
you what language the Window-Eyes UI is being displayed as.

For example,

If CurrentLanguage = langDutch Then
    Speak "The Window-Eyes ui is in Dutch"
End If

Doug

On 2/25/2012 5:06 AM, Sean Farrow wrote:
Hi:
Is there a way through scripting to obtain the language window-eyes is 
displaying it's user interface in?
I've looked in the reference and carn't seem to find anything.
Cheers
Sean.



--

Aaron Smith

Web Development * App Development * Product Support Specialist

GW Micro, Inc. * 725 Airport North Office Park, Fort Wayne, IN 46825

260-489-3671 * gwmicro.com



To insure that you receive proper support, please include all past

correspondence (where applicable), and any relevant information

pertinent to your situation when submitting a problem report to the GW

Micro Technical Support Team.

Reply via email to