loudenvier / kendo-global

Language packs for Telerik's Kendo UI (open source and commercial version)
87 stars 65 forks source link

Version for kendo.ui.core #58

Open krisztianb opened 10 years ago

krisztianb commented 10 years ago

Hi there. Telerik has published a simpler version of their Kendo Framework called kendo.ui.core: http://demos.telerik.com/kendo-ui/web/overview/index.html

Unfortunately there are still no widget localization messages included. I tried to include the JavaScript files of this kendo-global project and noticed that they don't work with kendo.ui.core.

The reason is simple. kendo.ui.core doesn't seem to include many of the widgets the "all" release does.

The following JavaScript error message is displayed:

TypeError: kendo.ui.ColumnMenu is undefined

One needs to remove the localization of following objects to get it to work:

Would it make sense to create a kendo.ui.core version of this project or extend the JavaScript files so that they check if the corresponding kendo widget exists, before trying to add the localized messages?

krisztianb commented 10 years ago

It would make sense to restructure the JavaScript files in the manner of the es-ES translation. In that file you only need to add one line (if-statement) to fix the problem. The other translations require you to add a seperate guard for each type of widget.