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

Culture & Language (buttons)

3 Answers 633 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Daniel
Top achievements
Rank 1
Daniel asked on 12 Mar 2014, 06:55 PM
Hi!

I would like to have the scheduler's buttons in another language, so I've tried to set up the culture using:

<script src="@Url.Content("~/js/cultures/kendo.culture.es-UY.min.js")" type="text/javascript"></script>

and then in the document ready: kendo.culture("es-UY");

This is working just for some of the texts, but It's not working for any of the buttons inside the scheduler, for example for the buttons, "Today", "Show full day" and so on.

Is there an easy way to translate all this? Is there any workaround?

Thanks in advance!

3 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 14 Mar 2014, 11:53 AM
Hello Daniel,

If using the MVC wrappers then the localization is handled through a satellite assemblies which are generated when you create different resource files from the source project. You can create your own or modify the built in like explained here:

http://docs.telerik.com/kendo-ui/getting-started/using-kendo-with/aspnet-mvc/globalization#localized-user-interface

If you have installed the ASP.NET MVC KendoUI extensions and the local demos then you should have a demo which demonstrates these localizations and how to change them through a DropDownList. The current resource files that generate localization messages for the scheduler are "en-US", "de-DE", "bg-BG", "it-IT"

The demo which you can run is called globalization.cshtml and it can be found under the Scheduler offline demos for Asp.NET MVC.

Kind Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Daniel
Top achievements
Rank 1
answered on 12 May 2015, 08:30 AM

Hi,

my current project has to be shipped in several languages.

Why you don't provide a neutral culture satellite assembly (as a fallback). E.g. "de".
To show all your controls in german I have to use "de-DE":

System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(SalesFunnel.Web.Helpers.CultureHelper.GetImplementedCulture("de-DE"));
 

This code doesn't translate any of your controls:

System.Threading.Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo(SalesFunnel.Web.Helpers.CultureHelper.GetImplementedCulture("de"));

 

I'm using Kendo ASP.NET MVC.

 

Regards,
Daniel

0
Vladimir Iliev
Telerik team
answered on 14 May 2015, 09:30 AM
Hello Daniel,

Please check the attached project which shows how to dynamically change the project culture.

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
Scheduler
Asked by
Daniel
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Daniel
Top achievements
Rank 1
Vladimir Iliev
Telerik team
Share this question
or