We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Localization of "Add or Remove Buttons" text from DropDown Menu

Hello,

Is there a way to localize this text?

I can localize "Show More Buttons" and "Show Fewer Buttons" by deriving class from GroupBar and overriding InitializeNavigationButtonMenu method, so it uses different texts for those two items. But "Add or Remove Buttons" is added later and string with that text seems to be private. Is there a way to modify that text?

3 Replies

MK Mallika Kannan Syncfusion Team July 27, 2017 12:59 PM UTC

  
Hi Marcin 
  
Thank you for contacting Syncfusion Support.  
  
We have confirmed that the reported issue “Need to provide localization support for Add or Remove buttons in Navigation Pane” is a defect. We have fixed the reported issue and it will be included our  Volume 3, 2017 SP1 release. It will be available on end of August. Kindly please upgrade that version. 
  
Regards,  
Mallika  




MK MARCIN KUROWSKI May 15, 2018 03:28 PM UTC

Hello,

I have updated version to 16.1.0.37, but I don't see how to transate this text. Can you provide me with some information on how it is supposed to be done?

Thank you in advance.


MK Mallika Kannan Syncfusion Team May 16, 2018 01:05 PM UTC

Hi Marcin  
 
Thanks for your update. 
 
We have implemented the “Localization support for Add or Remove buttons in Navigation Pane in GroupBar“ from15.3.0.29 version. You can localized the “NavigationPane Button”  text in GroupBar Control using the ILocalizationProvider Interface. We have also prepared the sample for the same. In this sample, we have localized the NavigationPane button text in Spanish language.Please make use of the below Code Example. 
 
Code Example: [C#]  
//Codes in Form1.cs 
LocalizationProvider.Provider = new Localizer(); 
 
//For Spanish Language 
CultureInfo Spanish; 
Spanish = new CultureInfo("es-ES"); 
LocalizationProvider.Provider = new Localizer(Spanish); 
 
class Localizer : ILocalizationProvider 
{ 
 
CultureInfo CustomCulture; 
 
#region ILocalizationProvider Members 
 
public Localizer() 
{ 
 
} 
 
public Localizer( CultureInfo choosenCulture ) 
{ 
CustomCulture = choosenCulture; 
} 
 
public string GetLocalizedString(System.Globalization.CultureInfo culture, string name,object obj) 
{ 
//For Spanish Language 
 
if (this.CustomCulture != null && this.CustomCulture.Name == "es-ES") 
{ 
switch (name) 
{ 
//set your required text 
#region Menu Package 
case ToolsResourceIdentifiers.MoreButtonsItemsText: 
return "Mostrar más botones"; 
case ToolsResourceIdentifiers.FewerButtonsItemsText: 
return "Mostrar menos botones"; 
case ResourceIdentifiers.GroupBarAddRemoveButton: 
return "Agregar o quitar botones"; 
#endregion 
 
default: 
return string.Empty; 
} 
} 
} 
} 
 
Screenshot 
 
 
Please refer the below documentation for further reference. 
 
Please try this above solution and let us know if it is helpful. 
 
Regards,  
Mallika 


Loader.
Live Chat Icon For mobile
Up arrow icon