Professional UI Solutions
Site Map   /  Register
 
 

Forum

Please Log In to post a new message or reply to an existing one. If you are not registered, please register.

NOTE: Some forums may be read-only if you are not currently subscribed to our technical support services.

Forums » Elegant Ribbon Tech Support » ColorDialog localize Collapse All
Subject Author Date
Pavel Murashov Mar 21, 2011 - 8:25 AM


We need to localize ColorDialog into Russian language.


 


 


We have found your example (Elegant.Ui.Resources.sln) of localization


into German language.


 


 


But loading this project we got an error that the file Elegant.snk


cannot be found in the solution. We excluded this file from both


Elegant.Ui.Common and Elegant.Ui.Ribbon projects and compiled an


assembly with ru-RU resources (Elegant.Ui.Common.resources.dll and


Elegant.Ui.Ribbon.resources.dll).


 


 


We have put these files into the output directory of our project


and then ran the program (the owner form has been set "Localizable"


property to "true"). Yet localization doesn’t work.


 


 


What could you recommend to make localization of ColorDialog?


Technical Support Mar 27, 2011 - 11:34 PM

Please download the updated version of the resource assembly. Regarding the locale change during runtime: do you keep the same instance of ColorDialog all the time? If so, and you want your application to change the UI language dynamically, you need to recreate the ColorDialog each time you change the UI language.

Elegant.Ui.Common.resources.zip

Pavel Murashov Mar 28, 2011 - 12:03 AM

Thanks, this advice and new resources has helped.

Technical Support Mar 24, 2011 - 6:40 AM

The Russian locale is supported out of the box. Did you try to use assemblies from the folder Bin\Core\ru-RU?

Pavel Murashov Mar 24, 2011 - 8:39 AM

It’s work. Thanks.


You have errors in ColorDialog ru-RU localization:


1. ComboBox item "Hue, Saturation, Lightness" not localize.


2. "Add to custom colors" button: need to fix "Добавить в набоТ" > "Добавить в набоР".


And I have one question... How to change the language of the ColorDialog during runtime?


This code...


System.Globalization.CultureInfo ci_en = new System.Globalization.CultureInfo("...");
System.Threading.Thread.CurrentThread.CurrentCulture = ci_en;
System.Threading.Thread.CurrentThread.CurrentUICulture = ci_en;

..don’t work for ColorDialog, but works for other elements (Ribbon etc.).


 

Technical Support Mar 25, 2011 - 3:33 AM

Could you specify which version of Elegant UI you are using?

Pavel Murashov Mar 25, 2011 - 3:55 AM

Elegant.UI 4.1

Pavel Murashov Mar 24, 2011 - 7:39 AM

Oh! Sorry for the trouble! I was not attentive...