RadWizard Localization

10 posts, 2 answers
  1. ronny
    ronny avatar
    15 posts
    Member since:
    Mar 2011

    Posted 04 Apr 2011 Link to this post

    How i can implement the RadWizard Localization? I doesn`t found any information about it.

    Regard, Ronny.
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 06 Apr 2011 Link to this post

    Hello Ronny,

    As far as I'm aware, there is no localization provider for the RadWizard because there is nothing to localize that you can't change already. For exmaple, you can change the next button text in the following way
    this.radWizard1.NextButton.Text = "Proxima";

    Hope this helps, but if you need further information, please let me know
    Regards,
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. ronny
    ronny avatar
    15 posts
    Member since:
    Mar 2011

    Posted 06 Apr 2011 Link to this post

    Ok, that works. Thank you.

    But i think that it makes sense, to use the same technique like the localization provider in the Wizard to translate the buttons.

    Kind regards, Ronny.
  5. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 06 Apr 2011 Link to this post

    Hello,

    Glad that helped. Please remember to mark as answer.

    In my opinion, the RadLocalizationProviders are there to provide localizaton to those areas that are not usually easy or possible to reach. Such as in the case of the RadGridView, localization provides a way to localize those areas such as the default context menus, filters and so on.

    Let me know if you have further questions
    Regards,
    Richard
  6. Ramius
    Ramius avatar
    127 posts
    Member since:
    Feb 2008

    Posted 06 Apr 2011 Link to this post

    Hello,

    it is a pitty, that no common concept for the localization for all telerik RadControls exists. 

    For every control the developper has to know if there exists a localization provider and/or which properties have to be set for the localization of the control.

    For example with the RadGridView it is not enough to translate all messages of the localization provider.

    When the Gridview uses a DateTimeColumn the developper has to know that the RadDateTimePicker of the DateTimeColumn has to be localized additonally. 

    Kind Regards,

    Ramius

     

  7. Answer
    Alexander
    Admin
    Alexander avatar
    306 posts

    Posted 07 Apr 2011 Link to this post

    Hello Ronny,

    RadWizard supports localization of its buttons' text. You can create your custom RadWizardLocalizationProvider:
    public class CustomRadWizardLocalizationProvider : RadWizardLocalizationProvider
    {
        public override string GetLocalizedString(string id)
        {
            switch (id)
            {
                case RadWizardStringId.BackButtonText: return "<   L_Back";
                case RadWizardStringId.NextButtonText: return "L_Next   >";
                case RadWizardStringId.CancelButtonText: return "L_Cancel";
                case RadWizardStringId.FinishButtonText: return "L_Finish";
                case RadWizardStringId.HelpButtonText: return "<html><u>L_Help</u></html>";
                default: return string.Empty;
            }
        }
    }

    You should replace the default localization provider with your custom one before initializing the RadWizard control:
    public Form1()
    {
        RadWizardLocalizationProvider.CurrentProvider = new CustomRadWizardLocalizationProvider();
        InitializeComponent();
    }

    The LocalizationProvider is a common approach to localize RadControls. Technically, each localizable control from the suite has its own provider. Uniting all of them could result in creating a too big and inconvenient to use provider.

    I hope it helps. Please write back if you have additional questions.

    Best regards,
    Alexander
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  8. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 07 Apr 2011 Link to this post

    Hi Alexander,

    Thanks for pointing this out. I didn't realise that the RadWizard had a localization provider. Please can this be added to the documentation? It's not there currently and was not mentioned in the demos or very obvious that this was available.

    thanks
    Richard
  9. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 07 Apr 2011 Link to this post

    @Alexander - For information - I've also added your code to my blog
    Regards,
    Richard
  10. ronny
    ronny avatar
    15 posts
    Member since:
    Mar 2011

    Posted 07 Apr 2011 Link to this post

    Hi Alexander,

    thanks for your reply. That`s what i`m looking for. And it works. Again, thank you very much and hopefully it will be added to the documentation.

    Friendly regards, Ronny
  11. Nikolay
    Admin
    Nikolay avatar
    1803 posts

    Posted 07 Apr 2011 Link to this post

    Hi Richard,

    Thank you for your feedback and for making the localization feature of RadWizard popular.

    Yes, we have plans to update our documentation. We will do so for Q1 2011 SP1 expected in the mid-April.

    Regards,
    Nikolay
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
UI for WinForms is Visual Studio 2017 Ready