Multilanguage calendar for MFC
-
Hi world... I want to change the CMonthCalCtrl language. Is this possible? Is there another calendar control where I could do that? I don't use dotNET framework but MFC (I know...) Thanks for any advice!
Hello World!!! :) from Raphaël
-
Hi world... I want to change the CMonthCalCtrl language. Is this possible? Is there another calendar control where I could do that? I don't use dotNET framework but MFC (I know...) Thanks for any advice!
Hello World!!! :) from Raphaël
Raphaël Kindt wrote:
change the CMonthCalCtrl language
Subclassing the Control is one way to do this.
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
-
Raphaël Kindt wrote:
change the CMonthCalCtrl language
Subclassing the Control is one way to do this.
Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_
Could you give me more informations? After subclassing, what must I do to translate the text inside the calendar? Thanks for the reply.
Hello World!!! :) from Raphaël
-
Hi world... I want to change the CMonthCalCtrl language. Is this possible? Is there another calendar control where I could do that? I don't use dotNET framework but MFC (I know...) Thanks for any advice!
Hello World!!! :) from Raphaël
I think that the language of the control changes when you change the local settings of the computer (so if you are running on a french windows, it will be displayed in french). So, this is done automatically. It is like the Ok and cancel texts that appears on the message boxes.
Cédric Moonen Software developer
Charting control -
Hi world... I want to change the CMonthCalCtrl language. Is this possible? Is there another calendar control where I could do that? I don't use dotNET framework but MFC (I know...) Thanks for any advice!
Hello World!!! :) from Raphaël
The ways the dates are used and the way they are displayed are based on the Regional Settings of the Control Panel. There is a "silent way" to programmatically change those settings. You can use Rundll32.exe to call the
Regional and Language Options Control Panel
with an answer file that specifies the appropriate settings. The syntax for calling Rundll32.exe from the command line is as follows:Rundll32 shell32,Control_RunDLL intl.cpl,,/f:"Some_Path\Your_File.txt"
That file must contain a
[RegionalSettings]
section that specifies the appropriate settings. You will have to work on the line containing the following information:Language="locale ID"LanguageGroup="language group ID","language group ID
SkyWalker
-
I think that the language of the control changes when you change the local settings of the computer (so if you are running on a french windows, it will be displayed in french). So, this is done automatically. It is like the Ok and cancel texts that appears on the message boxes.
Cédric Moonen Software developer
Charting controlI know that. But the user must be able to change the language directly from the menu. At this time I'm writing new string ressource (DLL project) for each new language. When the user change the language I dynamically load the good ressource (inside DLL) for this language.
Hello World!!! :) from Raphaël
-
The ways the dates are used and the way they are displayed are based on the Regional Settings of the Control Panel. There is a "silent way" to programmatically change those settings. You can use Rundll32.exe to call the
Regional and Language Options Control Panel
with an answer file that specifies the appropriate settings. The syntax for calling Rundll32.exe from the command line is as follows:Rundll32 shell32,Control_RunDLL intl.cpl,,/f:"Some_Path\Your_File.txt"
That file must contain a
[RegionalSettings]
section that specifies the appropriate settings. You will have to work on the line containing the following information:Language="locale ID"LanguageGroup="language group ID","language group ID
SkyWalker
That seems interesting... But only the application language must be change. Not all the Windows language. Could I use this method to only change my application language? Thanks for your reply.
Hello World!!! :) from Raphaël
-
That seems interesting... But only the application language must be change. Not all the Windows language. Could I use this method to only change my application language? Thanks for your reply.
Hello World!!! :) from Raphaël
No! In your case, you could derive a class for the base one and override the methods dealing with displaying text, where you could use some string resources you must create (which will contain the texts you write as translation texts).
SkyWalker
-
No! In your case, you could derive a class for the base one and override the methods dealing with displaying text, where you could use some string resources you must create (which will contain the texts you write as translation texts).
SkyWalker
Thanks a lot for yout reply. I have another question. which is the method's name to override? I'm looking for this method... But there is too much methods...
Hello World!!! :) from Raphaël