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

"no data found" localization

5 Answers 901 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
frederic
Top achievements
Rank 1
frederic asked on 28 Mar 2017, 12:42 PM

Hi team,

 

The noDataTemplate configuration option defaults to string "NO DATA FOUND."

It seems this is not localized in kendo.message.xx-XX.js

 

Please advise.

 

Best regards.

5 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 30 Mar 2017, 07:21 AM
Hello Frederic,

In general, the localisations files are community driven and they are usually updated by the Kendo UI community:

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

The messages can be added manually by using the en-US messages file which contains all of the needed messages:

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

I hope this will help to achieve the desired result.

Regards,
Stefan
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data (charts) and form elements.
0
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
answered on 20 Aug 2018, 02:44 PM

Hi frederic

did you figure this out? Looking at the language files (https://github.com/telerik/kendo-ui-core/tree/master/src/messages) I don't see a handle for "no data found".

/Morten

0
Stefan
Telerik team
answered on 21 Aug 2018, 08:27 AM
Hello, Morten,

This is where the no data template is located and what is the key for that message:

https://github.com/telerik/kendo-ui-core/blob/master/src/messages/kendo.messages.en-US.js#L371

Let me know if you need more details on this matter.

Regards,
Stefan
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.
0
Vladimir
Top achievements
Rank 1
answered on 07 Feb 2019, 11:50 AM

Hi Stefan,

Your link now contains the string: "pdf": "Export to PDF",

Can you provide a detailed example of what condition and what parameters need to be passed? For example:

if (kendo.ui.ComboBox) {
kendo.ui.Grid.prototype.options.messages =
$.extend(true, kendo.ui.Grid.prototype.options.messages,{

"noDataFound": "message" 

});

Thanks! :)

0
Alex Hajigeorgieva
Telerik team
answered on 11 Feb 2019, 11:50 AM
Hi, Vladimir,

There seems to be some misunderstanding in this thread regarding the messages.

The Kendo UI Grid has a "noRecords" property which can be localized by extending the grid messages, alternatively, if you are a native speaker in the language that is missing a translation, you can let me know the details and I can add them so they will be available thereafter:

if (kendo.ui.Grid) {
kendo.ui.Grid.prototype.options.messages =
$.extend(true, kendo.ui.Grid.prototype.options.messages,{
  "commands": {
    "cancel": "Cancel changes",
    "canceledit": "Cancel",
    "create": "Add new record",
    "destroy": "Delete",
    "edit": "Edit",
    "excel": "Export to Excel",
    "pdf": "Export to PDF",
    "save": "Save changes",
    "select": "Select",
    "update": "Update"
  },
  "editable": {
    "cancelDelete": "Cancel",
    "confirmation": "Are you sure you want to delete this record?",
    "confirmDelete": "Delete"
  },
  "noRecords": "No records available.",
  "expandCollapseColumnHeader": "",
  "groupHeader": "Press ctrl + space to group",
  "ungroupHeader": "Press ctrl + space to ungroup"
});
}

In case this is about the Kendo UI ComboBox - the widget does not use messages at the moment, but you may change the noDataTemplate as needed:

https://docs.telerik.com/kendo-ui/api/javascript/ui/combobox/configuration/nodatatemplate

Finally, I would imagine that in the case of multiple localizations, this may be a great feature to have - the ability to localize the dropdowns via messages. If you like, I can create a feature request on your behalf and allow others to vote for it.

Let me know what you think.

Kind Regards,
Alex Hajigeorgieva
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
frederic
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Morten
Top achievements
Rank 2
Iron
Iron
Veteran
Vladimir
Top achievements
Rank 1
Alex Hajigeorgieva
Telerik team
Share this question
or