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

MVC Grid general localization.

1 Answer 220 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Winnie
Top achievements
Rank 1
Winnie asked on 31 May 2013, 11:20 AM
Hi
I am using kendo grid with mvc.
It is working very well but I have an issue with localization.
I would to translate all grid messages to Danish.
I can make is work by using
.Pageable(....)
But since I have a lot of grid to translate I would like to be able to do it from a central place.
I have tried with the globalization file for Denmark by inserting:
name: "da-DK",
pageable: {
messages: {
display: "{0} - {1} af {2} rækker"
}
},
...
But is it not applied.
Is there some way I can make this configuration a central place ?
Best Regards
Nicolai

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 04 Jun 2013, 08:44 AM
Hi Winnie,

 
From the provided information it's not clear for us if you are using KendoUI for Web or KendoUI for ASP.NET MVC server wrappers, however for convenience I included more information about how to localize the Grid messages for both cases:

  • MVC wrappers - you can check this help article about how to use satellite assemblies to change the messages from central place
  • KendoUI for Web - you can check the Grid localization article for more information about how to achieve the desired behavior. Also you can extend this by placing variables for each message and set the values of this variables from external JS file.

Also please note that setting the current culture (globalization) changes only the date, number and currency formats for current culture as pointed this article.

Kind Regards,
Vladimir Iliev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Grid
Asked by
Winnie
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or