Translation only works partially with RadSchedulers

5 posts, 0 answers
  1. Alain
    Alain avatar
    13 posts
    Member since:
    Mar 2011

    Posted 02 Jul 2011 Link to this post

    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

     

  2. Ivan Todorov
    Admin
    Ivan Todorov avatar
    688 posts

    Posted 06 Jul 2011 Link to this post

    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!

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Alain
    Alain avatar
    13 posts
    Member since:
    Mar 2011

    Posted 07 Jul 2011 Link to this post

    It works great.

    Thanks.
  5. TFS
    TFS avatar
    5 posts
    Member since:
    Aug 2008

    Posted 08 Aug 2011 Link to this post

    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.
  6. Boryana
    Admin
    Boryana avatar
    330 posts

    Posted 10 Aug 2011 Link to this post

    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 >>

Back to Top
UI for WinForms is Visual Studio 2017 Ready