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

Concensus On Localization

5 Answers 47 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jacques
Top achievements
Rank 1
Jacques asked on 07 Aug 2014, 07:37 PM
What is concensus on localization (not globalization as seemingly already supported.) regarding Kendo UI widgets.
Is it fully implemented or not. I know it is for some widget, but is there a global solution?

If it's not, can someone point out possible solutions?

5 Answers, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 08 Aug 2014, 10:05 AM
Hello Jacques,

I think the information from this documentation topic can help you implement global localization on per-widget level.

Best regards,
Sebastian
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Jacques
Top achievements
Rank 1
answered on 08 Aug 2014, 05:53 PM
Hi Sebastian,

I understand now that localization is possible by including the proper messages JS file.

Does this implies a page post-back (where server re-renders with right JS reference) /page navigation to language-specific pages for every language change or there's a real-time language change feature implemented?

Thanks
0
Jacques
Top achievements
Rank 1
answered on 08 Aug 2014, 07:47 PM
Hi Sebastian,

Referring to the link you sent, can you confirm the messages files are available only in Kendo UI Core source.
We have Pro version and the "messages" folder isn't included with the provided NuGet package.

Thanks
0
Alexander Valchev
Telerik team
answered on 12 Aug 2014, 08:40 AM
Hi Jacques,

Localization files change the string messages directly in the widget's prototype object. That means that the localization files have to be included before widgets are initialized. If you would like to change the language on the fly (without reloading the page) you will have to re-initialize all Kendo widgets on the page. The approach is demonstrated in this demo page: http://demos.telerik.com/kendo-ui/grid/localization

Please pay attention to the following code:
function changeLanguage() {
    kendo.ui.progress($("#grid"), true);
    $.getScript("../content/shared/messages/kendo.messages." + this.value() + ".js", function() {
        kendo.ui.progress($("#grid"), false);
        createGrid();
    });
}

It will load the newly selected messages JS file and re-create the Grid widget.

Currently the messages files are not included in the professional distribution which is a bug on our end. We will fix this for the next service pack release. Meanwhile please download the localization file(s) that are required for your project from Kendo UI Core repository and include them manually in the project.

Regards,
Alexander Valchev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Jacques
Top achievements
Rank 1
answered on 12 Aug 2014, 01:23 PM
Thanks, I'll try that. This is very helpful / a time saver.
Tags
General Discussions
Asked by
Jacques
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Jacques
Top achievements
Rank 1
Alexander Valchev
Telerik team
Share this question
or