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

Navigator localization

4 Answers 102 Views
Scheduler and Reminder
This is a migrated thread and some comments may be shown as answers.
Ulrich Witschaß
Top achievements
Rank 1
Ulrich Witschaß asked on 06 Dec 2010, 06:01 PM
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

4 Answers, 1 is accepted

Sort by
0
Accepted
Richard Slade
Top achievements
Rank 2
answered on 06 Dec 2010, 06:10 PM
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
0
Richard Slade
Top achievements
Rank 2
answered on 07 Dec 2010, 11:46 PM
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
0
Ulrich Witschaß
Top achievements
Rank 1
answered on 08 Dec 2010, 12:50 PM
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
0
Dobry Zranchev
Telerik team
answered on 11 Dec 2010, 02:40 PM
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.
Tags
Scheduler and Reminder
Asked by
Ulrich Witschaß
Top achievements
Rank 1
Answers by
Richard Slade
Top achievements
Rank 2
Ulrich Witschaß
Top achievements
Rank 1
Dobry Zranchev
Telerik team
Share this question
or