DXL for changing the GUI language?

Hello,

As the DOORS version 9.2 supports multi-language GUI resources and the default Locale is taken from the OS system Locale so I am looking for something which can change the DOORS GUI according to my choice. I have seen that there is a function "getLocale()" but is there any setter function which will set the Locale for DOORS environment?

Or, any idea- how to change the DOORS (V9.2.0.4) GUI language without changing the OS Locale?

Thanks,
Rony
R@ny - Thu Jul 22 15:31:48 EDT 2010

Re: DXL for changing the GUI language?
llandale - Fri Jul 23 16:03:02 EDT 2010

Don't know. But here's a script that dumps some information, and I presume this will work

Run the code below, find the Locale you want.
Locale loc = locale(id of the one you picked)
string    ErrMess = setSystemLocale(loc)

 

/*        some Locale command I found in the doors.exe
Locale    locale(int)                   LocaleFromID
int     id(Locale)                      GetLocaleID
string  name(Locale)                    GetLocaleName
string  language(Locale)                GetLanguageName

Locale  userLocale()                    is this the current locale?
Locale  getSystemLocale()               Current Local?
Locale  getLegacyLocale()               GetLegacyLocale
string  setLegacyLocale(Locale)         etLegacyLocale

for Locale in supportedLocales do
for Locale in installedLocales do
string  setSystemLocale(Locale l)       setSystemLocale
string  setLegacyLocale(Locale)         SetLegacyLocale
*/
 
/*       This didn't work
int i
for (i=1; i<400; i++)
{  loc = locale(i)
   //if (null loc) break
   if (null loc) print i "  null\n"
   else print i "\t" name(loc) "\t" language(loc) "\n"
}
*/
Locale loc
print "Supported...\n"
for loc in supportedLocales do
{     print id(loc) "\t" name(loc) "\t" language(loc) "\n"
}
 
print "Installed...\n"
for loc in installedLocales do
{     print id(loc) "\t" name(loc) "\t" language(loc) "\n"
}



If you make it work, let us know how.



 

 

 

 

  • Louie