Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / Internationalization / March 2005

Tip: Looking for answers? Try searching our database.

InstalledUICulture Property!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Saba Ahmed - 25 Mar 2005 09:21 GMT
Hi All,

I am new to this group and have just started researching about globalization. I  need to convert my application so that atleast the UI parts can be customized for different languages Platfrom. By different language platform I mean I need to run it on Windows 2000 German etc..

Uptil now what I have done to test if i can convert succesfully or not is created a windows application form tunred on the localizable property to true, dropped a label gave it a value then ran the application which created the resource file for english then I changed the language to German changed the label text and its postion and ran it. The resource file for germany was created.
I can load both the assemblies through the following line

System.Threading.Thread.CurrentThread.CurrentUICulture = New System.Globalization.CultureInfo("de-DE")

But I dont want to change this line for each platform, So I found another property InstalledUICulutre that returns the locale of the current operating System but somehow the following line is not working. I am trying to load the locale of the operating system that the application is running on i tested this by changing my regional settings to German (Germany) thourgh control panel but the InstalledUICulture property is returning english all the time. Can anybody please help me how i will solve this problem.

System.Threading.Thread.CurrentThread.CurrentUICulture = System.Globalization.CultureInfo.InstalledUICulture

Thanks in advance.

Regards,

Saba
Michael (michka) Kaplan [MS] - 25 Mar 2005 15:25 GMT
The InstalledUICulture is the initially installed one -- which for an MUI
system is usually English.

But the already set CurrentUICulture i based on the OS localization that is
currently in use. In what scenario is it insuffiicient?

Signature

MichKa [Microsoft]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure, Fonts, and Tools
Blog: http://blogs.msdn.com/michkap

This posting is provided "AS IS" with
no warranties, and confers no rights.

Hi All,

I am new to this group and have just started researching about
globalization. I  need to convert my application so that atleast the UI
parts can be customized for different languages Platfrom. By different
language platform I mean I need to run it on Windows 2000 German etc..

Uptil now what I have done to test if i can convert succesfully or not is
created a windows application form tunred on the localizable property to
true, dropped a label gave it a value then ran the application which created
the resource file for english then I changed the language to German changed
the label text and its postion and ran it. The resource file for germany was
created.
I can load both the assemblies through the following line

System.Threading.Thread.CurrentThread.CurrentUICulture = New
System.Globalization.CultureInfo("de-DE")

But I dont want to change this line for each platform, So I found another
property InstalledUICulutre that returns the locale of the current operating
System but somehow the following line is not working. I am trying to load
the locale of the operating system that the application is running on i
tested this by changing my regional settings to German (Germany) thourgh
control panel but the InstalledUICulture property is returning english all
the time. Can anybody please help me how i will solve this problem.

System.Threading.Thread.CurrentThread.CurrentUICulture =
System.Globalization.CultureInfo.InstalledUICulture

Thanks in advance.

Regards,

Saba
Michael (michka) Kaplan [MS] - 25 Mar 2005 22:48 GMT
I just posted a clarifying bit on the InstalledUICulture property:

http://blogs.msdn.com/michkap/archive/2005/03/25/402313.aspx

HTH! :-)

MichKa

> The InstalledUICulture is the initially installed one -- which for an MUI
> system is usually English.
[quoted text clipped - 36 lines]
>
> Saba
Saba Ahmed - 31 Mar 2005 06:13 GMT
Thanks for the help. I read the article and it seems like the property is
not advised to be used. So can anybody give me an idea how I can set the
CurrentUICulture property for each platforms. I dont want to create separate
exes for each platforms that the application is to run on. Can anybody give
me any idea how I can set the CurrentUICulture property based on the
underlying platform. That is if the application is running on German Palform
it should use the German resource file that is created for it.

Thanks in advance.

Regards,

Saba

> I just posted a clarifying bit on the InstalledUICulture property:
>
[quoted text clipped - 49 lines]
> >
> > Saba
Michael (michka) Kaplan [MS] - 31 Mar 2005 06:56 GMT
You almost never need to set it -- the dfault that is there matches the UI
language of Windows itself, out of the box.

Signature

MichKa [Microsoft]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure, Fonts, and Tools
Blog: http://blogs.msdn.com/michkap

This posting is provided "AS IS" with
no warranties, and confers no rights.

> Thanks for the help. I read the article and it seems like the property is
> not advised to be used. So can anybody give me an idea how I can set the
[quoted text clipped - 68 lines]
> > >
> > > Saba
Saba Ahmed - 31 Mar 2005 08:49 GMT
Great!. But how do I test this thing. Can I test it by changing the Locale
from control panel > Regional Settings or this can only be tested on a
German Operating System.

Thanks a lot for your help.

Regards,

Saba

> You almost never need to set it -- the dfault that is there matches the UI
> language of Windows itself, out of the box.
[quoted text clipped - 80 lines]
> > > >
> > > > Saba
Michael (michka) Kaplan [MS] - 31 Mar 2005 18:02 GMT
You cannot test it by changing the user locale. You must have either a
localized OS or an MUI system that lets you change the UI language.

More info on different locales here:

http://blogs.msdn.com/michkap/archive/2005/02/01/364707.aspx

Signature

MichKa [Microsoft]
NLS Collation/Locale/Keyboard Technical Lead
Globalization Infrastructure, Fonts, and Tools
Blog: http://blogs.msdn.com/michkap

This posting is provided "AS IS" with
no warranties, and confers no rights.

> Great!. But how do I test this thing. Can I test it by changing the Locale
> from control panel > Regional Settings or this can only be tested on a
[quoted text clipped - 98 lines]
> > > > >
> > > > > Saba

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.