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

Translation only works partially with RadSchedulers

4 Answers 93 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Alain
Top achievements
Rank 1
Alain asked on 02 Jul 2011, 10:57 AM
Dear Telerik Team,

I'm current using Q1 2011 SP with VS2008. When applying the  example in the help file for the RadScheduler to translate the RadScheduler strings and in example:

RadSchedulerLocalizationProvider.CurrentProvider =

New CustomSchedulerLocalizationProvider

Everything appears translated in the local language except the days of the week in RadScheduler's header columns which are still in English:
Monday, Tuesday, Wednesday...
Is it possible to programmatically change the text of these header columns?

Best regards,
Alain

 

4 Answers, 1 is accepted

Sort by
0
Ivan Todorov
Telerik team
answered on 06 Jul 2011, 11:56 AM
Hi Alain,

Thank you for your question.

You can't manipulate the text of these cells, but you can change their format or culture. You need to set the HeaderFormat and the Culture  properties of RadScheduler, for example:
this.radScheduler1.HeaderFormat = "dddd MM yyyy";
this.radScheduler1.Culture = System.Globalization.CultureInfo.CreateSpecificCulture("de-DE");

The header format string is a standard formatting string which is used to format dates in the .NET framework.

Hope this helps. Feel free to ask if you have any additional questions.

Regards,
Ivan Todorov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Alain
Top achievements
Rank 1
answered on 07 Jul 2011, 07:11 PM
It works great.

Thanks.
0
TFS
Top achievements
Rank 1
answered on 08 Aug 2011, 09:57 AM
I got the same problem as the author. Days of week and months are translated. However scheduler modes (Day, Week,...) are not. "Open recurring item" dialog is also not translated.

This is how I tried to make this working:

public CustomCalendar()
        {
            InitializeComponent();

            LocalizationManager.DefaultCulture = new CultureInfo("pl");
            this.scheduler.Culture = System.Globalization.CultureInfo.CreateSpecificCulture("pl-PL");
            this.ResetTemplate();
        }

        private void ResetTemplate()
        {
            ControlTemplate template = this.scheduler.Template;
            this.scheduler.Template = null;
            this.scheduler.Template = template;
        }

I am using Q3 2010.
0
Boryana
Telerik team
answered on 10 Aug 2011, 04:03 PM
Hello Tomasz Kubik,

Thank you for writing.

The dialog windows in RadScheduler are not affected by the applied culture. In case you would like to change them, you should create a custom class that derives from RadSchedulerLocalizationProvider and override the GetLocalizedString() method. Here is a documentation article that contains code sample.

I assume that by scheduler modes (Day, Week, ...) you mean the text of RadSchedulerNavigator. If this is so, please refer to this help article. In case this is not helpful, please provide more details about the issue.

I hope you find my answer useful. Let me know if I can assist you further.

Regards,
Boryana
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

Tags
Scheduler and Reminder
Asked by
Alain
Top achievements
Rank 1
Answers by
Ivan Todorov
Telerik team
Alain
Top achievements
Rank 1
TFS
Top achievements
Rank 1
Boryana
Telerik team
Share this question
or