
How can I localize the Scheduler?
Thanks,
Koen
13 Answers, 1 is accepted
Basically you can localize the scheduler by setting the kendo culture and use the messages object to translate all scheduler messages - for convenience I created small example of localizing KendoUI scheduler:
Vladimir Iliev
Telerik

thanks for this example.
I do have a problem with the Month-view - The day-Headings are not correct when using German (de-DE) as in your example. The headings are one day "earlier" - e.g. the heading for Thursdays is Mittwoch (=Wednesday). In all other views this is not a problem.
I also encountered a problem when saving recurring events that use weekdays (like every Thursday, ..).
I changed the entries in WEEK_DAYS_IDX to { "SO": 0, "MO": 1, "DI": 2, "MI": 3, "DO": 4, "FR": 5, "SA": 6 }
, but it would be better if that worked automatically.
Kind regards,
sven
Thank you for reporting the problem related to the displaced week days in Month view. We will address it for the next official release of Kendo UI. I updated your Telerik points because of the find.
As to your second question, the problem is related to the Recurring widget itself - you should not modify WEEK_DAYS_IDX field. The bug is fixed in the latest internal build.
Georgi Krustev
Telerik

I looked at the 'Scheduler localization demo' you posted here, but in the Agenda View, when you have an all day event, the phrase 'All day' is NOT localized. I have the same problem in my app, and before opening a new ticket, maybe you find quickly a solution.
There's no need to add anything, you have only to switch to Agenda View, and scroll down...
Thanks.
Andrea Bioli
Thank you for bringing this issue to our attention. I have informed our dev team about it and it will be fixed in next internal builds.
As a small sign of our appreciation I have updated your Telerik points.
Regards,
Vladimir Iliev
Telerik

Replace 'Commencer' by 'Début'
Replace 'Finir' by 'Fin'
Replace 'All day event' by 'Toute la journée'
Replace 'Repeat' by 'Répéter'
Replace 'Sur' by 'Jusqu'au'
Replace 'Delete Recurring Item' by 'Suppression d'un élément récurrent'
Replace 'Do you want to delete only this event occurrence or the whole series?' by 'Voulez-vous supprimer seulement cet événement ou toute la série?'
Replace 'Delete current occurence' by 'Suppression de l'élément courant'
Replace 'Delete the series' by 'Suppression de toute la série'
Replace 'Show business hours' by 'Montrer les heures ouvrables'
Replace 'Show full day' by 'Montrer toute la journée'
Replace 'Delete event' by 'Suppression de l'élément'
Replace 'Are you sure you want to delete this event?' by 'Etes-vous sûr de vouloir supprimer cet élément?'

Thanks anyway...
Andrea

@(Html.Kendo().Scheduler<
RdvPerso.Web.Models.BookingModel
>()
.Name("scheduler")
.Date(DateTime.Now.Date)
.StartTime(DateTime.Now.Date.AddHours(8))
.Height(600)
.Editable(d => d.Confirmation("Etes-vous sûr de vouloir supprimer cet élément?"))
.Messages(d => d.DeleteWindowTitle("Suppression").ShowFullDay("Montrer toute la journée").ShowWorkDay("Montrer les heures ouvrables"))
Thank you for the provided "fr-FR" culture message translations - we already update them on our end and they will be available with next internal builds of Telerik UI for ASP.NET MVC.
Also please note that if you are using different culture than the default one you should update the needed messages directly in the resource file - for more information you can check the following help article:
Regards,
Vladimir Iliev
Telerik

There is another bug in the german localizations (de, de-CH, maybe the others as well).
The date headers in the day, week and workweek are in the English format. E.g.: Mo 6/03 while it should be Mo, 3.6.
Regards,
Simon
Please note that the Scheduler views by default use the following template for date headers which is not fully localizable:
<span class=
'k-link k-nav-day'
>
#=kendo.toString(date, 'ddd M/dd')#</span>
In case you need to modify the above template you can define custom "dateHeaderTemplate" as demonstrated in the following demo:
Regards,
Vladimir Iliev
Telerik

Hi Vladimir,
That's what I did. The problem now is that the format should be localizable as well since the website is german and english.
Is there a way to pass the date format string dynamically to the template engine?
You can conditionally load the format by calling an external function from the template:
dateHeaderTemplate: kendo.template(
"<span class='k-link k-nav-day'>#=kendo.toString(date, getCultureFormat())#</span>"
),
function
getCultureFormat() {
if
(kendo.culture().name ==
"en-US"
) {
return
'D'
;
}
else
{
return
'ddd M/dd'
;
}
}
Regards,
Vladimir Iliev
Telerik