Show the scheduler in Danish

7 posts, 2 answers
  1. Peter
    Peter avatar
    5 posts
    Member since:
    Mar 2015

    Posted 19 Mar 2015 Link to this post

    I would like to force the scheduler to be shown in Danish, I have managed to get the Months, day names shown in Dansih (Javascript), but the other texts (Today, Show buisness hours, and others) on the site is still shown in English.
    I have included the Kendo.Mvc.resources.dll for da-DK.

    Thanks very much in advance :-)
  2. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 20 Mar 2015 Link to this post

    Hi Peter,

    Currently the Danish resource file contains the original English Scheduler messages as there are no native Danish speakers on our side. For more information about how to modify the build-in resource files you can check the following help article:

    Another option is to use the "Messages" option of the Scheduler as demonstrated below:

    @(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.TaskViewModel>()
        .Name("scheduler")
        .Messages(messages => messages.AllDay("hele dagen"))

    Also it would be great if you send us back the updated resource file - we will include it in next official release of UI for ASP.NET MVC.

    Regards,
    Vladimir Iliev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET MVC is VS 2017 Ready
  4. Peter
    Peter avatar
    5 posts
    Member since:
    Mar 2015

    Posted 20 Mar 2015 in reply to Vladimir Iliev Link to this post

    Hi Vladimir

    Thanks very much for you answer :-)

    Is it possible to translate "day, Work Week, week, ..."  with "messages" or something simular?

    Thanks very much in advance.
  5. Answer
    Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 23 Mar 2015 Link to this post

    Hi Peter,

    If you need to change the titles of the views you can use the Scheduler Views builders as follows:

    @(Html.Kendo().Scheduler<Kendo.Mvc.Examples.Models.Scheduler.TaskViewModel>()
        .Name("scheduler")
        .Views(views =>
        {
            views.DayView(day => day.Title("TEXT SIMMILAR TO DAY"));
            views.WorkWeekView(workWeekView => {
                workWeekView.Selected(true);
                workWeekView.Title("TEXT SIMMILAR TO WORK WEEK");

    Regards,
    Vladimir Iliev
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Peter
    Peter avatar
    5 posts
    Member since:
    Mar 2015

    Posted 24 Mar 2015 in reply to Vladimir Iliev Link to this post

    Hi Vladimir

    Thanks very much for your help!

    /Peter
  7. Peter
    Peter avatar
    5 posts
    Member since:
    Mar 2015

    Posted 29 Mar 2015 Link to this post

    Hi Vladimir

    I can't fin the content for the delete confirm box. I have found the title for the delete confirm box, but not the content. Isn't it possible to translate the content?

    Thanks very much in advance.

    /Peter
  8. Answer
    Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 30 Mar 2015 Link to this post

    Hello Peter,

    Please check the example below of how to translate the desired messages:

    @(Html.Kendo().Scheduler<MeetingViewModel>()
        .Name("scheduler")
        .Messages(m => m
            .DeleteWindowTitle("DELETE WINDOW TITLE")
            .Destroy("CUSTOM DESTROY")
            .Cancel("CUSTOM CANCEL"))
        .Editable(editable => {
            editable
                .Confirmation("CUSTOM CONFITMATION MESSAGE");
        })

    Regards,
    Vladimir Iliev
    Telerik
     

    See What's Next in App Development. Register for TelerikNEXT.

     
Back to Top
UI for ASP.NET MVC is VS 2017 Ready