Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - change language on built-in Toolkit messages?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

change language on built-in Toolkit messages?

 Post Reply Post Reply
Author
Message
unknow View Drop Down
Groupie
Groupie
Avatar

Joined: 14 January 2009
Location: Belgium
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote unknow Quote  Post ReplyReply Direct Link To This Post Topic: change language on built-in Toolkit messages?
    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!
Back to Top
unknow View Drop Down
Groupie
Groupie
Avatar

Joined: 14 January 2009
Location: Belgium
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote unknow Quote  Post ReplyReply Direct Link To This Post Posted: 21 September 2009 at 5:27pm
Hi; any news regarding this help advice request ?
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 22 September 2009 at 3:43am
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
Back to Top
unknow View Drop Down
Groupie
Groupie
Avatar

Joined: 14 January 2009
Location: Belgium
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote unknow Quote  Post ReplyReply Direct Link To This Post Posted: 22 September 2009 at 6:40pm
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!
Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2009 at 3:30am
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
Back to Top
unknow View Drop Down
Groupie
Groupie
Avatar

Joined: 14 January 2009
Location: Belgium
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote unknow Quote  Post ReplyReply Direct Link To This Post Posted: 23 September 2009 at 4:06pm

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.
 
 
 
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.047 seconds.