We already provided multiple translations for other controls by using the ResourceCustomizer but we just cannot find the resource strings for the UltraColorPicker.
Basically, we want to have the "Click '+' or drag to add custom color." and primary colors code (RGB) strings translated.
How can it be done?
Thanks,
JP
Just to provide more details:
API version used is Infragistics 2017.1.
Thanks.
Hello JP,
Thank you for posting in our forums!
You can localize the "Click '+' or drag to add custom color." string in the ResourceCustomizer with the following key name:
UltraColorPalette_CustomPaletteArea_ViewStyleCombined_HelpText
As for localizing the RGB, are you referring to the actual hex values (e.g. #FFFF00AA) or the "R", "G", "B", and "A" labels that appear in the color picker in your screenshot?
Looking forward to hearing from you.
Sincerely,Michael H.Software DeveloperInfragistics, Inc.www.infragistics.com/support
Thanks Michael, I will try this key and let you know the result.
Actually, can you point me to the "Assembly Resource Strings Reference" for the ColorPicker/UltraColorPalette?
[Infragistics] Michael H. said:As for localizing the RGB, are you referring to the actual hex values (e.g. #FFFF00AA) or the "R", "G", "B", and "A" labels that appear in the color picker in your screenshot?
Regarding this, I'm referring to the RGB labels.
Also, is this possible to have the translated color name? In the screenshot the caption is "Red".
Thanks!
Hi Michael,
It works fine. I just had to figure out the Customizer namespace.
Any specific reason why it's not in there?
https://www.infragistics.com/help/winforms/win-resource-strings
Let me know if I can get access to the secret list!
Hi JP,
I forgot to mention earlier: that the key should be used in the Win assembly:
Infragistics.Win.Resources.Customizer.SetCustomizedString("UltraColorPalette_CustomPaletteArea_ViewStyleCombined_HelpText", "Your Localized Text");
Most Resource Strings for the Win assembly can be found in our docs here. However, we noticed we have missed some values, including the ColorPicker and Palette. In our strings.resx file, we have the following that you can use:
<data name="UltraColorPalette_CustomPaletteArea_ViewStyleCombined_HelpText" xml:space="preserve"> <value>Click '+' or drag to add a custom color.</value> </data> <data name="UltraColorPalette_CustomPaletteArea_ViewStyleGridPalette_HelpText" xml:space="preserve"> <value>Click '+' or drag to add a custom color.</value> </data> <data name="UltraColorPalette_CustomPaletteArea_ViewStyleContinuousPalette_HelpText" xml:space="preserve"> <value>Click '+' to add a custom color.</value> </data>
The RGB labels are not able to be localized. I recommend you suggest a new product idea for future versions by emailing ideas@infragistics.com.
As for changing the color names, we pull the names from the .NET framework. After some testing by changing my language and CultureInfo, Microsoft does not seem to have any localization for these.
If you need anything else, please let me know.
I have another question:
Is this the expected behavior that the localized string* will be displayed only if the base language of Windows is not English?
*For resource key name = UltraColorPalette_CustomPaletteArea_ViewStyleCombined_HelpText
We didn't encounter this behavior with other resource key names.