//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; } } } } |