"File type not allowed" - no localization

4 posts, 1 answers
  1. Heiko
    Heiko avatar
    153 posts
    Member since:
    Oct 2012

    Posted 30 Nov 2017 Link to this post

    When using the validation configuration of Upload component and the user chooses a file that is not in the "AllowedExtensions" array, a short error message appears inside the upload component. While everything else is translated into German, this message is still in English. How can I provide a German translation to this?

     

     

  2. Answer
    Ivan Danchev
    Admin
    Ivan Danchev avatar
    1712 posts

    Posted 04 Dec 2017 Link to this post

    Hello Heiko,

    This message can be customized through the localization.invalidFileExtension configuration option. For the Upload's MVC wrapper it can be set like this:
    .Messages(m => m.InvalidFileExtension("My Custom Invalid File Extension Message"))


    Regards,
    Ivan Danchev
    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. Heiko
    Heiko avatar
    153 posts
    Member since:
    Oct 2012

    Posted 07 Dec 2017 in reply to Ivan Danchev Link to this post

    Hello Ivan,

    that helped. But maybe you can explain why this message is not localized while many others are.

    Regards
    Heiko

  4. Ivan Danchev
    Admin
    Ivan Danchev avatar
    1712 posts

    Posted 11 Dec 2017 Link to this post

    Hello Heiko,

    Only messages in English are officially supported. As mentioned in the documentation the localization of the Kendo UI widgets messages is community driven: "Currently, translations are not available for every language and some of the localization files may be incomplete. For more information on where to find the full list of available translations, refer to the section on contributing."

    Regards,
    Ivan Danchev
    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