Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Command Bars
  New Posts New Posts RSS Feed - Localization Help Required
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Localization Help Required

 Post Reply Post Reply
Author
Message
SBK2K View Drop Down
Newbie
Newbie


Joined: 04 October 2005
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote SBK2K Quote  Post ReplyReply Direct Link To This Post Topic: Localization Help Required
    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?

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.
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.140 seconds.