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

Missing Localization (German) - MVC

4 Answers 17 Views
DateRangePicker
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Iron
Iron
Veteran
Daniel asked on 24 Apr 2020, 07:18 AM

Found a similar question here: https://www.telerik.com/forums/datarangepicker-label-localization

 

So I know, this element is new to Kendo UI and the localization files aren't completed. The difference to the post is, I'm using MVC. Is it possible to modify the missing localization values through razor? Or directly change the "Start" and "End" messages?

If not, how can I implement the solution in the other thread? Or are there other solutions?

 

Before someone is asking. The localization for other elements works properly:

<script src="https://kendo.cdn.telerik.com/2020.1.219/js/cultures/kendo.culture.de-DE.min.js"></script>
<script src="https://kendo.cdn.telerik.com/2020.1.219/js/messages/kendo.messages.de-DE.min.js"></script>

4 Answers, 1 is accepted

Sort by
0
Daniel
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 24 Apr 2020, 08:07 AM
It's about these labels.
0
Accepted
Nikolay
Telerik team
answered on 28 Apr 2020, 06:33 AM

Hi Daniel,

Thank you for the good question.

The Start and End tex for the DateRangePicker labels can be customized via the DateRangePicker Messages configuration. For example:

@(Html.Kendo().DateRangePicker()
         .Name("daterangepicker")
         .Messages(m => m.StartLabel("Starten").EndLabel("Ende"))
)

Let me know if you have any further questions.

Regards,
Nikolay
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
0
Daniel
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 28 Apr 2020, 07:23 AM

Hi Nikolay,

that seems super easy and it worked perfectly. Thank you!

0
Nikolay
Telerik team
answered on 30 Apr 2020, 06:10 AM

Hello Daniel,

I am glad to hear this is helping you move forward. 

Please let us know if anything new arises.

Regards,
Nikolay
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
DateRangePicker
Asked by
Daniel
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Daniel
Top achievements
Rank 1
Iron
Iron
Veteran
Nikolay
Telerik team
Share this question
or