Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
250
Internationalization/Localization
posted

 I've been preparing my app for internationalization, where controls read their localized text from the form resource files.  The toolbar adds tools in initializeComponent like this:

 Infragistics.Win.UltraWinToolbars.ButtonTool buttonTool22 = new Infragistics.Win.UltraWinToolbars.ButtonTool("FileExit");

appearance34.Image = ((object)(resources.GetObject("appearance34.Image")));
buttonTool122.SharedProps.AppearancesSmall.Appearance = appearance34;
buttonTool122.SharedProps.Caption = resources.GetString("resource.Caption43");
buttonTool122.SharedProps.Category = resources.GetString("resource.Category42");
buttonTool122.SharedProps.ToolTipText = resources.GetString("resource.ToolTipText30");

 The problem is that when tools are rearranged/added/removed within the toolbar, the resource file and InitializeComponent seem to get out of sync and the wrong captions and tooltips are applied to each tool.

Is there some way around this, or some standard method of internationalization I am missing.?

Thanks,

Erik