This is a migrated thread and some comments may be shown as answers.

RadWizard Localization

9 Answers 231 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
ronny
Top achievements
Rank 1
ronny asked on 04 Apr 2011, 03:45 PM
How i can implement the RadWizard Localization? I doesn`t found any information about it.

Regard, Ronny.

9 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 06 Apr 2011, 10:28 AM
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
0
ronny
Top achievements
Rank 1
answered on 06 Apr 2011, 10:42 AM
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.
0
Richard Slade
Top achievements
Rank 2
answered on 06 Apr 2011, 10:52 AM
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
0
Ramius
Top achievements
Rank 1
answered on 06 Apr 2011, 03:29 PM

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

 

0
Accepted
Alexander
Telerik team
answered on 07 Apr 2011, 09:40 AM
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
0
Richard Slade
Top achievements
Rank 2
answered on 07 Apr 2011, 09:45 AM
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
0
Richard Slade
Top achievements
Rank 2
answered on 07 Apr 2011, 09:54 AM
@Alexander - For information - I've also added your code to my blog
Regards,
Richard
0
ronny
Top achievements
Rank 1
answered on 07 Apr 2011, 10:11 AM
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
0
Nikolay
Telerik team
answered on 07 Apr 2011, 10:13 AM
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
Tags
Wizard
Asked by
ronny
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
ronny
Top achievements
Rank 1
Ramius
Top achievements
Rank 1
Alexander
Telerik team
Nikolay
Telerik team
Share this question
or