Parameter-Type DateTime in other language

6 posts, 0 answers
  1. Simon
    Simon avatar
    52 posts
    Member since:
    Sep 2018

    Posted 25 Jan Link to this post

    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.

     

     

  2. Veronika
    Admin
    Veronika avatar
    10 posts

    Posted 30 Jan Link to this post

    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
  3. Simon
    Simon avatar
    52 posts
    Member since:
    Sep 2018

    Posted 05 Feb Link to this post

    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.

     

     

  4. Veronika
    Admin
    Veronika avatar
    10 posts

    Posted 07 Feb Link to this post

    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
  5. Simon
    Simon avatar
    52 posts
    Member since:
    Sep 2018

    Posted 08 Feb in reply to Veronika Link to this post

    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",
                });
        }


  6. Veronika
    Admin
    Veronika avatar
    10 posts

    Posted 11 Feb Link to this post

    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
Back to Top