Print Page | Close Window

Localization Help Required

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=3141
Printed Date: 06 October 2024 at 12:30am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Localization Help Required
Posted By: SBK2K
Subject: Localization Help Required
Date Posted: 02 November 2005 at 6:59pm

Hi guys,

I'm still trying to work out whether to use the Xtreme products in my apps... I'm really happy with them except for one thing - localizing seems to be difficult. I'm using XML files that has my toolbar/menu items localized in a users language that contains the Control ID, a tooltip, a description and text.

My app reads these in and then applies to the CommandBars by using the following code:

control = cmdBar.FindControl(null, tool.ID, null, true);

This finds all instances of the control in the CommandBars _except_ for the items not on the object, such as those in the categories. Therefore once a user customizes the items on their toolbar they may have items in their language (say, French) and the development language (English).

I'm aware that the strings can be localized using satellite resource libraries but I don't want to do this. My users appreciate being able to change the application strings and it also makes our work easier for us.

So - how can we progmatically change resource strings that applies to all controls in the commandbar?




Replies:
Posted By: SuperMario
Date Posted: 03 November 2005 at 7:19am
I think the problem is you want to change "Designer" controls as well (the ones that appear in customization window).  To do that you can use:

control = cmdBar.DesignerControls.FindControl(null, tool.ID, null, true);

So you will have to do 2 searches.



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