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

Usage of strings from kendo/messages directory

3 Answers 105 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Grzegorz
Top achievements
Rank 1
Grzegorz asked on 16 Sep 2014, 10:41 AM
Hi,

I'm trying to use localized strings from kendo.messages.pl-PL.min.js in my kendo grid, but attaching that JS file to my view and executing kendo.culture("pl-PL") doesn't make any changes in grid pager - "No items to display" remains English, not Polish.
How can I use localizations from kendo.messages.pl-PL.min.js? Is there any special way to make it work? Unfortunately, all tutorials mention cultures file only.

Thanks in advance,
GJ

3 Answers, 1 is accepted

Sort by
0
Rosen
Telerik team
answered on 18 Sep 2014, 07:19 AM
Hi Grzegorz,

Including the messages file before the widget initialization should be sufficient in order localization to take effect. Information on applying localization can be found in this help article. Also you can review this online demo

Regards,
Rosen
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Paweł
Top achievements
Rank 1
answered on 23 Nov 2018, 08:42 PM

Hi Rosen,

I found this post because i got a similar problem. I included kendo.messages.pl-PL.min.js with kendo.culture.pl-PL.min.js, i set kendo.culture('pl-PL'); and still i've got some messages shown in english, ex. DateInput shows format "day.month.year".

I opened kendo.messages.pl-PL.min.js file and figured out that some messages hadn't been translated yet.

Do you plan to translate messages thoroughly?

Kind regards, 

Paul

0
Viktor Tachev
Telerik team
answered on 27 Nov 2018, 12:24 PM
Hi Paul,

Most of the localization messages are provided by the community. Thus, the localization files may be incomplete and there can be missing messages for some of the widgets. The DateInput is such example as the messages for it are not defined in the pl-PL localization file. If you would like to have the messages applied globally in your application I would suggest including the messages for the DateInput to the localization file.

It would be great if you send us the updated version so we can add it to the components. This will be really beneficial for other users that are using localization.


Regards,
Viktor Tachev
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
Grid
Asked by
Grzegorz
Top achievements
Rank 1
Answers by
Rosen
Telerik team
Paweł
Top achievements
Rank 1
Viktor Tachev
Telerik team
Share this question
or