Print Page | Close Window

Multi - Language issues...

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=7923
Printed Date: 13 November 2025 at 11:56am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multi - Language issues...
Posted By: venkyhyd
Subject: Multi - Language issues...
Date Posted: 03 September 2007 at 4:39am
Hello Oleg,
 
With Multilanguage we are having various issues...We have reource DLL's specific to each language. And we are changing languages by selecting a lang from Language menu item as done in your Scribble and MultiLang examples.
 
1. We are creating Dialog box objects at the start of the application and we are either calling DoModal / Create and Show (modless Dlgs) as required on the Fly. We see that from your Scribble sample in the consturctor of Dialog we should be calling "InitModalIndirect" but the problem here is if we call this in Constructor of each Dlg Class then if we try to change the Language at RuntIme then the Objects created for the Dlgs will hold the Old Resource (lang). Now how do we reset the Lang by calling InitModalIndirect for each Dlg object whenever we change the Lang by clicking on Language Menu Item
 
2.Now we are creating a xtpControlSplitButtonPopup which holds Theme Menu Items and created on a toolbar. Now when we change the Language, how do we make sure that xtpControlSplitButtonPopup (menu items) also reflect the lang changes.
 
3. How do we change the language for the Customize Dialog box
 
4. How do we change the language for the Dynamic Menu's & Popup Menu's Created on the Fly.
 
Please suggest on this....
 
thanks



Replies:
Posted By: Oleg
Date Posted: 03 September 2007 at 7:51am
Hi,
 
1. You can manually change  m_hDialogTemplate memeber of CDialog.
 
2, 4. I very recommend you use actions - see Samples\CommandBars\ActionsSample sample. using this way you don't need reload menus, but only need load actions.
Last version of Scribble  sample use actions too
 
3. You can add toolkits resources to your dlls.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: venkyhyd
Date Posted: 04 September 2007 at 4:34am
Hi
 
I am sorry to say but I think you didnot understand the requirement here.
 
1. The Theme's menu is not in the Menu bar but its created as a splitbutton and attached to the Toolbar. So on change of the Lang the menu items of Theme's Menu should changed accordingly I am able to see the changes in the Tooltip but not on the captions of the Themes Menu item.
 
2. And About the Dyanmic Menus whcih are created by the application on the fly. how can we change the lang for the Dynamic Menus.
 
Thanks


Posted By: Oleg
Date Posted: 04 September 2007 at 8:29am
Hello,
 
Create small prototype of application with the way you use translation and attach it in issue track. I will change it to show how you can translate menu items.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: venkyhyd
Date Posted: 05 September 2007 at 4:15am
Hi
 
Please refer IssueTrak Issue# 14662.
 
Thanks



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net