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

Localized Exceptions.resx

1 Answer 112 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Heiko
Top achievements
Rank 1
Iron
Veteran
Heiko asked on 05 Sep 2019, 03:36 PM

I noticed in one of my forms that suddenly a validation message appears for a dropdownlist. The message could not be found in kendo.messages.xx-XX.js nor was it a validation message from ASP.NET Core (I use my own, localized form of "Required" etc.attribute messages). I found the message inside the file "Exceptions.resx" in the source of Kendo MVC:

<data name="ValueNotValidForProperty" xml:space="preserve">
  <value>The value '{0}' is invalid.</value>
</data>

How can I translate this into another language?

Regards
Heiko

1 Answer, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 10 Sep 2019, 01:59 PM
Hello Heiko,

To change the provided localization messages, a custom version of Kendo.Mvc.dll must be built. This is required because Kendo.Mvc.dll is a strongly named assembly and its private key is not shipped as part of the Telerik UI for ASP.NET MVC distribution. Please follow the steps you will find at the link below to change the provided localization messages. For your custom implementation the changes will be applied to "Exceptions.resx".
Please disregard that the above article describes the process for Kendo UI projects for ASP.NET MVC. Kendo UI for ASP.NET Core adopts the same process and so both are identical. 

Hope this helps and please contact us back in case of further assistance.

Regards,
Nikolay
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Heiko
Top achievements
Rank 1
Iron
Veteran
Answers by
Nikolay
Telerik team
Share this question
or