loudenvier/kendo-global — pull request #19 by marklagendijk (2013-06-13 13:35:19+00:00)
Title: Dutch translations

@loudenvier, thanks for creating kendo-global, it helped me with creating a solution to localize the Kendo controls in my AngularJS app.
Here are the Dutch (nl-NL) translations.

My app loads a JSON file with all the resources, and sets the labels for the KendoUI controls with it:

``` js
function initKendoLabels(){
function extendKendoMessages(component, optionNames){
for(var i = 0; i < optionNames.length; i++){
var optionName = optionNames[i];
kendo.ui[component].prototype.options[optionName] =
$.extend(kendo.ui[component].prototype.options[optionName],
Localize.labels.Controls[component][optionName]);
}
}

extendKendoMessages("ColumnMenu", ["messages"]);
extendKendoMessages("Groupable", ["messages"]);
extendKendoMessages("FilterMenu", ["messages", "operators"]);
extendKendoMessages("Pager", ["messages"]);
extendKendoMessages("Validator", ["messages"]);
extendKendoMessages("ImageBrowser", ["messages"]);
extendKendoMessages("Editor", ["messages"]);
}
```

I think it might be a good idea to change the format of the localization files to something like this (1 object containing all the labels, + a simple function to set the labels from this object into Kendo).

I will open an issue about this idea where I will explain it further.