Culture & Language (buttons)

4 posts, 0 answers
  1. Daniel
    Daniel avatar
    4 posts
    Member since:
    Jun 2012

    Posted 12 Mar 2014 Link to this post

    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!
  2. Petur Subev
    Admin
    Petur Subev avatar
    1882 posts

    Posted 14 Mar 2014 Link to this post

    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!
     
  3. Daniel
    Daniel avatar
    18 posts
    Member since:
    Jan 2014

    Posted 12 May 2015 in reply to Petur Subev Link to this post

    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

  4. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2196 posts

    Posted 14 May 2015 Link to this post

    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!
     
Back to Top