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. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

131759 Jul 26,2017 06:04 AM UTC May 16,2018 01:05 PM UTC WinForms 3
loading
Tags: GroupBar
MARCIN KUROWSKI
Asked On July 26, 2017 06:04 AM UTC

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?

Mallika Kannan [Syncfusion]
Replied On 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  



MARCIN KUROWSKI
Replied On 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.

Mallika Kannan [Syncfusion]
Replied On 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 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;