Missing translation(?)

5 posts, 0 answers
  1. Tayger
    Tayger avatar
    130 posts
    Member since:
    Jan 2015

    Posted 17 Oct Link to this post

    Hello 

    I experienced some missing(?) translation using kendoDateTimePicker.

    I have set these options:

    <input id="datetimepicker" />
    <script>
    $("#datetimepicker").kendoDateTimePicker({
        culture: "de-DE",
        dateInput: true,
    });
    </script>

     

    The option dateInput shows date/time/.... as text (help) inside the input field if it's empty, what is nice. Setting the culture to any German language country (probably a problem in all other non English countries too) the help text still appears in English. See attachment as it looks like with the sample code above. Inside the calendar datepicker window the translation (in that case German) is set and correct.

    It's not a big issue and I don't know if that is wanted or just overseen doing the translations.

    Regards

     

     

     

  2. Stefan
    Admin
    Stefan avatar
    1394 posts

    Posted 19 Oct Link to this post

    Hello, Farai,

    I can assume that the issue occurs as these messages are coming from the DateInput which is a new widget and all of the translations are not added.

    The messages files are community driven. Please check the following article demonstrating how they can be modified:

    http://docs.telerik.com/kendo-ui/framework/localization/overview#contribution

    I can suggest the following article demonstrating how the messages can be changed or extended:

    http://docs.telerik.com/aspnet-mvc/getting-started/localization#localization

    Also, I can suggest submitting a feature request, which will allow setting the messages, similar to the DateInput widget:

    https://docs.telerik.com/kendo-ui/api/javascript/ui/dateinput#configuration-messages

    http://kendoui-feedback.telerik.com/forums/127393-kendo-ui-feedback/category/170289-date-time-editors

    I hope this will help to add the missing messages.

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Tayger
    Tayger avatar
    130 posts
    Member since:
    Jan 2015

    Posted 03 Dec in reply to Stefan Link to this post

    Hello

    I tried to find out how it should work but I can't. I went through the links you offered but none explains how to proceed. On the one hand there are a lot of message files here: https://github.com/telerik/kendo-ui-core/tree/master/src/messages (not minified)

    On the other hand there are a lot of message files in .../telerik/js/messages (but all minifed). I assume they kinda same files have to be brought together (the provided link speaks about "synchronize"). Or can I just replace the ones with the others (tough one is not minifed)?

    Regards

  4. Tayger
    Tayger avatar
    130 posts
    Member since:
    Jan 2015

    Posted 03 Dec Link to this post

    Furthermore I checked some files at and would have expected there are conditions like 

    if (kendo.ui.DateInput) {...

    but there is not. The message files in ../Telerik/js/messages all have day/month/year... defintions in it. Would it not be obvious Telerik would use them for the DateInput placeholder mask? 

  5. Stefan
    Admin
    Stefan avatar
    1394 posts

    Posted 05 Dec Link to this post

    Hello, Farai,

    Only the en-US culture have messages for all widgets.

    /* DateInput */
    if (kendo.ui.DateInput) {
      kendo.ui.DateInput.prototype.options.messages =
        $.extend(true, kendo.ui.DateInput.prototype.options.messages, {
          "year": "year",
          "month": "month",
          "day": "day",
          "weekday": "day of the week",
          "hour": "hours",
          "minute": "minutes",
          "second": "seconds",
          "dayperiod": "AM/PM"
        });
    }

    If the used culture is de-DE, then in the kendo.messages.de-DE file the following code should be added:

    /* DateInput */
    if (kendo.ui.DateInput) {
      kendo.ui.DateInput.prototype.options.messages =
        $.extend(true, kendo.ui.DateInput.prototype.options.messages, {
          "year": Message in Deutsch,
          "month": Message in Deutsch,",
          "day": Message in Deutsch,,
          "weekday": Message in Deutsch,,
          "hour": Message in Deutsch,,
          "minute": Message in Deutsch,,
          "second": Message in Deutsch,,
          "dayperiod": Message in Deutsch,
        });
    }

    The changes should be made on the non-minified version, which can be minified with external minificator.

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top