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

Popup localisation in french langage

1 Answer 20 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Gora
Top achievements
Rank 1
Gora asked on 09 Aug 2016, 01:12 PM

How to localize  in french  create event popup ?

Please see attached file, i would like have title in french :

Event ==>  Evenement

None ==>  aucun

Time ==>  heure

Here is my code

@(Html.Kendo().Scheduler<TaskViewModel>()
                .Name("schedule")
                .Date(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day))
                .StartTime(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 9, 00, 00))
                .EndTime(new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 18, 00, 00))
                .HtmlAttributes(new { @class = "ra-section" })
                .Views(views =>
                {
                    views.DayView(dayView => dayView.Selected(true));
                    views.WeekView();
                    views.MonthView();
                    views.AgendaView();
                })
                .Editable(true)
                .Timezone("Etc/UTC")
                .DataSource(dataSource => dataSource
                .Model(m =>
                {
                    m.Id(f => f.TaskID);
                    m.Field(f => f.Title);
                    m.Field(f => f.Start);
                    m.Field(f => f.End);
                    m.Field(f => f.EndTimezone);
                })
                .Events(e => e.Error("error_handler"))
                .Read("ChargerTous", "TaskScheduler")
                .Create("Ajouter", "TaskScheduler")
                .Update("Modifier", "TaskScheduler")
                .Destroy("Supprimer", "TaskScheduler")
                )

 

1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 11 Aug 2016, 10:51 AM
Hi Gora,

You could change the default title text by configuring the messages.editor.editorTitle section in the Scheduler helper configuration. For your case, you will have to do the following configuration:
.Messages(m => m.Editor(e => e.EditorTitle("Evenement")))

To overwrite the None option label of the Resource drop-down, you could handle the edit event of the Scheduler:
function onEdit(e) {
    // 'OwnerID' is used below as the resource is mapped in this way:  resource.Add(m => m.OwnerID)
    var $dropdown = e.container.find('.k-edit-field[data-container-for="OwnerID"] select[data-role="dropdownlist"]').data('kendoDropDownList');
    var op = $dropdown.options;
    op.optionLabel = "Aucun";
    $dropdown.setOptions(op);
}

I am not quite sure which one is the "Time" text you would like to overwrite.

Regards,
Veselin Tsvetanov
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Scheduler
Asked by
Gora
Top achievements
Rank 1
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or