Print Page | Close Window

Localization Sample

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Command Bars
Forum Description: Topics Related to Codejock Command Bars
URL: http://forum.codejock.com/forum_posts.asp?TID=4811
Printed Date: 04 March 2025 at 11:26am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Localization Sample
Posted By: tyousef
Subject: Localization Sample
Date Posted: 16 August 2006 at 3:27am
I'm trying to localize my application similar to the scribble sample but I found that this sample depends on directly including the .rc files for the languages it supports. It doesn't use the languages dll or xml files at all!!!
How can I do this using the xml language files??
 
Thanks



Replies:
Posted By: Oleg
Date Posted: 16 August 2006 at 11:36am
Hello,
Just add line
 
XTPResourceManager()->SetResourceFile(path_to_xml_file);


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


Posted By: tyousef
Date Posted: 17 August 2006 at 7:24am

It doesn't work. I expect the standard items in the menu to be swtiched to the new language automatically but it doesn't!!

Even in the multi-language sample, the menu items are not updated and only the langauges names and descriptions are updated manually inside the code.
 
What exactly should the effect be after using this function and reseting all the command bars??
 
Thanks


Posted By: Oleg
Date Posted: 17 August 2006 at 7:47am
Hi,
Yes it only set resources for _our resources_ like Customize dialog and messageboxes from toolkit.
Obviously you must manually translate your menus. in Scribble sample you can find that menus translating for Russian language was moved to xml file also.


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



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