Navigator localization

5 posts, 1 answers
  1. Ulrich Witschaß
    Ulrich Witschaß avatar
    15 posts
    Member since:
    Mar 2010

    Posted 06 Dec 2010 Link to this post

    Hi Telerik,

    I am searching for an option to localize the schedule navigator, but haven't found any solution.

    What is the best practise to localize the schedule navigator?

    best regards

    Ulrik
  2. Answer
    Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 06 Dec 2010 Link to this post

    Hello,

    to localize the SchedulerNavigator, add a new class as per the following exmaple:
    Public Class CustomSchedulerNavigatorLocalizationProvider
        Inherits SchedulerNavigatorLocalizationProvider
        Public Overrides Function GetLocalizedString(ByVal id As String) As String
            Select Case id
                Case SchedulerNavigatorStringId.DayViewButtonCaption
                    Return "Day View Local"
                Case SchedulerNavigatorStringId.WeekViewButtonCaption
                    Return "Week View Local"
                Case SchedulerNavigatorStringId.MonthViewButtonCaption
                    Return "Month View Local"
                Case SchedulerNavigatorStringId.TimelineViewButtonCaption
                    Return "Timeline View Local"
                Case SchedulerNavigatorStringId.ShowWeekendCheckboxCaption
                    Return "Show Weekend Local"
                Case SchedulerNavigatorStringId.TodayButtonCaptionToday
                    Return "Today Local"
                Case SchedulerNavigatorStringId.TodayButtonCaptionThisWeek
                    Return "This week Local"
                Case SchedulerNavigatorStringId.TodayButtonCaptionThisMonth
                    Return "This month Local"
            End Select
      
            Return String.Empty
        End Function
    End Class

    and in your form load for exmaple: set the localization
    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        SchedulerNavigatorLocalizationProvider.CurrentProvider = New CustomSchedulerNavigatorLocalizationProvider
    End Sub

    Full documentation regarding localization of the SchedulerNavigator is available here

    hope that helps but let me know if you have further questions
    Richard
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Richard Slade
    Richard Slade avatar
    3000 posts
    Member since:
    May 2009

    Posted 07 Dec 2010 Link to this post

    Hello,

    How did this go? If this helped, please remember to mark as answer so others can find the solution too. If you need more help, just let me know.
    thanks
    Richard
  5. Ulrich Witschaß
    Ulrich Witschaß avatar
    15 posts
    Member since:
    Mar 2010

    Posted 08 Dec 2010 Link to this post

    It worked fine.

    I didn't find the needed class to override as the other classes actually start with "Rad" and I searched with this prefix.

    best regards

    Ulrik
  6. Dobry Zranchev
    Admin
    Dobry Zranchev avatar
    348 posts

    Posted 11 Dec 2010 Link to this post

    Hi Ulrich Witschaß,

    Thank you for writing back.

    We have some differences in the naming convention and we will consider updating the names of the classes making them consistent.

    In case that you have other questions, do not hesitate to contact us.

    Kind regards,
    Dobry Zranchev
    the Telerik team
    Get started with RadControls for WinForms with numerous videos and detailed documentation.
Back to Top
UI for WinForms is Visual Studio 2017 Ready