HighTechTalks DotNet Forums  

globalization of MonthCalendar control

Dotnet Internationalization microsoft.public.dotnet.internationalization


Discuss globalization of MonthCalendar control in the Dotnet Internationalization forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
=?Utf-8?B?dG9t?=
 
Posts: n/a

Default globalization of MonthCalendar control - 07-27-2007 , 05:24 AM






Hello,

We have an application that runs in different languages. On startup, when
the user of the application has chosen his language we do for example this
for French :

System.Threading.Thread.CurrentThread.CurrentUICul ture = new
System.Globalization.CultureInfo("fr");
System.Threading.Thread.CurrentThread.CurrentCultu re =
System.Globalization.CultureInfo.CreateSpecificCul ture("fr");

All is great, application starts in French. However, the calendar controls
still displays the month names in the language specified for the user on the
OS.

Anyone any ideas on how to make sure that celendar control uses the
"application language" and not the "OS-language"?


Thanx,
Tom



Reply With Quote
  #2  
Old   
Mihai N.
 
Posts: n/a

Default Re: globalization of MonthCalendar control - 07-28-2007 , 03:43 AM






Quote:
Anyone any ideas on how to make sure that celendar control uses the
"application language" and not the "OS-language"?
Have an idea: not possible :-(

This is also the case for all kind of common controls and dialogs
(Open/Save, Print, Fonts dialogs, context menu of the standard edit
control, the buttons of MessageBox, etc.)


--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email


Reply With Quote
  #3  
Old   
Garrett McGowan [MSFT]
 
Posts: n/a

Default Re: globalization of MonthCalendar control - 07-31-2007 , 05:51 PM



Mihai is correct. I'm afraid that this is how the controls were designed to
behave, and there's no override.

--------------------
Quote:
Subject: Re: globalization of MonthCalendar control
From: "Mihai N." <nmihai_year_2000 (AT) yahoo (DOT) com
Newsgroups: microsoft.public.dotnet.internationalization
Date: Sat, 28 Jul 2007 01:43:52 -0700

Anyone any ideas on how to make sure that celendar control uses the
"application language" and not the "OS-language"?

Have an idea: not possible :-(

This is also the case for all kind of common controls and dialogs
(Open/Save, Print, Fonts dialogs, context menu of the standard edit
control, the buttons of MessageBox, etc.)

--
Mihai Nita [Microsoft MVP, Windows - SDK]
http://www.mihai-nita.net
------------------------------------------
Replace _year_ with _ to get the real email

Garrett McGowan [MSFT Developer International]

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.