Spanish RadWizard Localization ( Español )

2 posts, 0 answers
  1. dalexsoto
    dalexsoto avatar
    7 posts
    Member since:
    Jul 2009

    Posted 17 May 2011 Link to this post

    Spanish RadWizard Localization ( Español )

    Just create a new class ie. RadWizardLocalizationProviderEsp.cs and paste the following code:

    Solo crea una nueva clase por ejemplo RadWizardLocalizationProviderEsp.cs y pega el siguiente codigo:

    using Telerik.WinControls.UI;
     
    class RadWizardLocalizationProviderEsp : RadWizardLocalizationProvider
    {
        public override string GetLocalizedString(string id)
        {
            switch (id)
            {
                case RadWizardStringId.BackButtonText: return "<   Atras";
                case RadWizardStringId.NextButtonText: return "Adelante   >";
                case RadWizardStringId.CancelButtonText: return "Cancelar";
                case RadWizardStringId.FinishButtonText: return "Finalizar";
                case RadWizardStringId.HelpButtonText: return "<html><u>Ayuda</u></html>";
                default: return string.Empty;
            }
        }
    }

    Now you need to tell RadWizardLocalizationProvider which language provider to use, I do this on main load event, make sure you have this using Telerik.WinControls.UI on top of your class

    Ahora necesitas decirle al RadWizardLocalizationProvider que proveedor de lenguage debe usar, esto yo lo hago en el evento load principal, asegurate de tener esto using Telerik.WinControls.UI; en la parte superior de tu clase

    RadWizardLocalizationProvider.CurrentProvider = new RadWizardLocalizationProviderEsp();

    And now you should be able to see spanish language. Cheers =)

    Y ahora debes de tener tu control en español. Saludos =)

    Alex Soto
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 20 May 2011 Link to this post

    Hello dalexsoto,

    Thank you for sharing this localization provider with the community. Your Telerik points have been updated accordingly.
     
    Kind regards,
    Stefan
    the Telerik team
    Q1’11 SP1 of RadControls for WinForms is available for download; also available is the Q2'11 Roadmap for Telerik Windows Forms controls.
Back to Top