![]() |
change language on built-in Toolkit messages? |
Post Reply ![]() |
Author | |
unknow ![]() Groupie ![]() ![]() Joined: 14 January 2009 Location: Belgium Status: Offline Points: 62 |
![]() ![]() ![]() ![]() ![]() Posted: 10 September 2009 at 6:56pm |
Hi; I'd like to make my application multi-language and I know there is a sample about that, so I'll look more into it
![]() But, I would like to know how to change dynamically and also at build time the language for built-in Toolkit messages;
For example, the ReportControl group header displays "Drag a column header here to group by that column"
How can I change this message into German, Spanish or French, dynamically and also a build time with VisualStudio?
Thankx!
|
|
![]() |
|
unknow ![]() Groupie ![]() ![]() Joined: 14 January 2009 Location: Belgium Status: Offline Points: 62 |
![]() ![]() ![]() ![]() ![]() |
Hi; any news regarding this help advice request ?
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
There will be problem to change some messages dynamically :( See constructor of CXTPReportPaintManager - this message loaded in constructor and never changed. So to refresh it you have manually set new paint manager for all reports:
wndReport.SetPaintManager(new CXTPReportPaintManager ());
to load dynamically build langauge dlls (Workspace\Resource) and load with XTPResourceManager()->SetResourceFile(Path);
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
unknow ![]() Groupie ![]() ![]() Joined: 14 January 2009 Location: Belgium Status: Offline Points: 62 |
![]() ![]() ![]() ![]() ![]() |
Thanks for your reply, I don't mind a static behavior as I will probably link a version of my application for each language with ressources in different languages ID;
For example, if I would like to change the report control messages in the ReportControl sample, where would it be done?
Thankx!
|
|
![]() |
|
Oleg ![]() Admin Group ![]() Joined: 21 May 2003 Location: United States Status: Offline Points: 11234 |
![]() ![]() ![]() ![]() ![]() |
Hi,
I'm not sure now what you need . You need code or resource file where you want change string ?
See translations in Source\ReportControl\res folder.
|
|
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS |
|
![]() |
|
unknow ![]() Groupie ![]() ![]() Joined: 14 January 2009 Location: Belgium Status: Offline Points: 62 |
![]() ![]() ![]() ![]() ![]() |
I would like to be able to change the default Toolkit messages which are displayed in english, for example the reportcontrol header text : "Drag a column header here to group by column" I don't mind to do it within the code since I will compile an executable for each language... so I do it either in my code or my Application ressources.
But I don't want to have to edit the Toolkit code and having to recompile it, I want to keep it 100% standard.
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |