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

Parameter-Type DateTime in other language

5 Answers 256 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Simon
Top achievements
Rank 1
Simon asked on 25 Jan 2019, 01:27 PM

Hello,

is there a possibility to change the language for the parameter area on the webpage?

By default all settings are in english language.

But I want to set them in german language.

Is there a language file to load im my project or give it an easy way to change the language?

As you can see in the attached file the Datetime component is by default in english,

the names of the month and the names of the days.

 

 

5 Answers, 1 is accepted

Sort by
0
Veronika
Telerik team
answered on 30 Jan 2019, 09:18 AM
Hi Simon,

Telerik Report Viewer uses Kendo UI widgets for its templates` components. To localize the widget itself you need to follow the steps from Kendo UI documentation: Localization Overview.
If you have any additional question related to the localization or the Telerik Report Viewer, do not hesitate to contact us.


Best Regards,
Veronika
Progress Telerik
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
0
Simon
Top achievements
Rank 1
answered on 05 Feb 2019, 08:42 AM

Hi,

I want to change the language of the reportparameter Type Datetime(Datetimepicker or what else)  from standard(english) to german.

I have copy and paste that code snippet from the mentioned page.

<%--Reporting Fehlermeldungen , umgestellt auf deutsch--%>
<script src="kendo.messages.de-DE.js"></script>

 

But when I make a reload the report does not appear as usual.

I get a bar with symbols on the left side of my page, shown in the attached file.

What is going wrong?

It must give an easy way to change all the names of months and days from datetimepicker to another language.

I have change the culture property, but it has no influence to the language of the datetimepicker.

 

 

0
Veronika
Telerik team
answered on 07 Feb 2019, 04:23 PM
Hello,

From your attachment, it seems to me that the kendo theme css files are missing in your project.
 
Please review your project and see if they are missing. For more information refer to our documentation article for Manual Setup

If the css files are added, check for any errors in the project and in the browser console too.

Also, I noticed that you are using a local file resource for localization.
<script src="kendo.messages.de-DE.js"></script>
Is this the kendo localization file which you have saved in the project file system or it is yours?

If you could not find the root of the issue, please provide us more information about your project - css themes that you are using, scripts, libraries. Everything that will be in help. If you could send a demo project it will be better.

Best Regards,
Veronika
Progress Telerik
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
0
Simon
Top achievements
Rank 1
answered on 08 Feb 2019, 10:37 AM

Hello Veronika,

the explanations are on this page:

https://docs.telerik.com/kendo-ui/framework/localization/overview

I have this file kendo.messages.de-DE.js from this page:

https://github.com/telerik/kendo-ui-core/tree/master/src/messages

But I think this file is not completed, so I implemented my code in this file in line 660 and 671.

It doesnt work.

The Datetimepicker doesn't change the language.

Or what is the <Widget-name>?

if (kendo.ui.dateTimePicker) {
        kendo.ui.dateTimePicker.prototype.options.messages =
            $.extend(true, kendo.ui.dateTimePicker.prototype.options.messages, {
            "december": "Dezember",
            "january": "Januar",
            "wednesday": "Mittwoch",
            "monday": "Montag",
 
            });
    }
 
    /* StartTime */
    if (kendo.ui.DateTimePicker) {
        kendo.ui.DateTimePicker.prototype.options.messages =
            $.extend(true, kendo.ui.DateTimePicker.prototype.options.messages, {
            "December": "Dezember",
            "January": "Januar",
            "February": "Februar",
            "March": "März",
            "Monday": "Montag",
            "Tuesday": "Dienstag",
            "Wednesday": "Mittwoch",
            "Thursday": "Donnerstag",
            "Friday": "Freitag",
            "Saturday": "Samstag",
            "Sunday": "Sonntag",
            });
    }


0
Veronika
Telerik team
answered on 11 Feb 2019, 02:28 PM
Hi Simon,

I played a little bit with the widget, tried a lot of things but with no luck. I consulted with kendo team for further advice. It seems that the kendoDatePicker sets its month, day names not from localization messages, but from its culture. It is not very clear in their localization article, so I asked them to update it.

I made a demo for you, where the widget is localized. I hope it will help you.

Best Regards,
Veronika
Progress Telerik
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
General Discussions
Asked by
Simon
Top achievements
Rank 1
Answers by
Veronika
Telerik team
Simon
Top achievements
Rank 1
Share this question
or