Localization

14 posts, 1 answers
  1. OfficeHeart
    OfficeHeart avatar
    99 posts
    Member since:
    Aug 2008

    Posted 19 Jul 2013 Link to this post

    Hello,

    How can I localize the Scheduler?

    Thanks,
    Koen
  2. Answer
    Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 23 Jul 2013 Link to this post

    Hi Martin,

     
    Basically you can localize the scheduler by setting the kendo culture and use the messages object to translate all scheduler messages - for convenience I created small example of localizing KendoUI scheduler:


    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!
  3. Kendo UI is VS 2017 Ready
  4. Sven Hammesfahr
    Sven Hammesfahr avatar
    1 posts
    Member since:
    Oct 2009

    Posted 01 Aug 2013 Link to this post

    Hi Vladimir ,
    thanks for this example.
    I do have a problem with the Month-view - The day-Headings are not correct when using German (de-DE) as in your example. The headings are one day "earlier" - e.g. the heading for  Thursdays is Mittwoch (=Wednesday). In all other views this is not a problem.

    I also encountered a problem when saving recurring events that use weekdays (like every Thursday, ..).
    I changed the entries in WEEK_DAYS_IDX to  { "SO": 0,  "MO": 1,  "DI": 2,  "MI": 3,   "DO": 4,   "FR": 5,    "SA": 6  }
    , but it would be better if that worked automatically.

    Kind regards,

    sven
  5. Georgi Krustev
    Admin
    Georgi Krustev avatar
    3706 posts

    Posted 02 Aug 2013 Link to this post

    Hello Sven,

     
    Thank you for reporting the problem related to the displaced week days in Month view. We will address it for the next official release of Kendo UI. I updated your Telerik points because of the find.

    As to your second question, the problem is related to the Recurring widget itself - you should not modify WEEK_DAYS_IDX field. The bug is fixed in the latest internal build.

    Regards,
    Georgi Krustev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. Andrea
    Andrea avatar
    12 posts
    Member since:
    Jan 2014

    Posted 07 Mar 2014 in reply to Vladimir Iliev Link to this post

    @Vladimir:
    I looked at the 'Scheduler localization demo' you posted here, but in the Agenda View, when you have an all day event, the phrase 'All day' is NOT localized. I have the same problem in my app, and before opening a new ticket, maybe you find quickly a solution.
    There's no need to add anything, you have only to switch to Agenda View, and scroll down...
    Thanks.
    Andrea Bioli
  7. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 11 Mar 2014 Link to this post

    Hi Anrea,

    Thank you for bringing this issue to our attention. I have informed our dev team about it and it will be fixed in next internal builds.

    As a small sign of our appreciation I have updated your Telerik points.

    Regards,
    Vladimir Iliev
    Telerik
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  8. Vincent
    Vincent avatar
    2 posts
    Member since:
    Apr 2014

    Posted 12 Apr 2014 Link to this post

    Hello, I have a same problem with localization, 'All day event' is not localized and in addition for fr-FR culture 'Repeat' is not localized too and you put unappropriate text translation. So I can help you to have good localized text for fr-FR culture :-)  :
    Replace 'Commencer' by 'Début'
    Replace 'Finir' by 'Fin'
    Replace 'All day event' by 'Toute la journée'
    Replace 'Repeat' by 'Répéter'
    Replace 'Sur' by 'Jusqu'au'
    Replace 'Delete Recurring Item' by 'Suppression d'un élément récurrent'
    Replace 'Do you want to delete only this event occurrence or the whole series?' by 'Voulez-vous supprimer seulement cet événement ou toute la série?'
    Replace 'Delete current occurence' by 'Suppression de l'élément courant'
    Replace 'Delete the series' by 'Suppression de toute la série'
    Replace 'Show business hours' by 'Montrer les heures ouvrables'
    Replace 'Show full day' by 'Montrer toute la journée'
    Replace 'Delete event' by 'Suppression de l'élément'
    Replace 'Are you sure you want to delete this event?' by 'Etes-vous sûr de vouloir supprimer cet élément?'
  9. Andrea
    Andrea avatar
    12 posts
    Member since:
    Jan 2014

    Posted 12 Apr 2014 in reply to Vincent Link to this post

    Thank you very much, Vincent, even if I only needed italian translations: my app will be used only here! :-)
    Thanks anyway...
    Andrea
  10. Vincent
    Vincent avatar
    2 posts
    Member since:
    Apr 2014

    Posted 12 Apr 2014 Link to this post

    I found a part to update text and to resolve my culture issue (MVC Razor) but I always have English messages into edit modal form  :
    @(Html.Kendo().Scheduler<RdvPerso.Web.Models.BookingModel>()
        .Name("scheduler")
        .Date(DateTime.Now.Date)
        .StartTime(DateTime.Now.Date.AddHours(8))
        .Height(600)
        .Editable(d => d.Confirmation("Etes-vous sûr de vouloir supprimer cet élément?"))
        .Messages(d => d.DeleteWindowTitle("Suppression").ShowFullDay("Montrer toute la journée").ShowWorkDay("Montrer les heures ouvrables"))
  11. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 15 Apr 2014 Link to this post

    Hi Vincent,

    Thank you for the provided "fr-FR" culture message translations - we already update them on our end and they will be available with next internal builds of Telerik UI for ASP.NET MVC.

    Also please note that if you are using different culture than the default one you should update the needed messages directly in the resource file - for more information you can check the following help article:
    Regards,
    Vladimir Iliev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  12. Simon
    Simon avatar
    2 posts
    Member since:
    May 2015

    Posted 15 Jun 2015 Link to this post

    There is another bug in the german localizations (de, de-CH, maybe the others as well).

    The date headers in the day, week and workweek are in the English format. E.g.: Mo 6/03 while it should be Mo, 3.6.

     

    Regards,

    Simon

  13. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 17 Jun 2015 Link to this post

    Hi Simon,

    Please note that the Scheduler views by default use the following template for date headers which is not fully localizable:

    <span class='k-link k-nav-day'>#=kendo.toString(date, 'ddd M/dd')#</span>

    In case you need to modify the above template you can define custom "dateHeaderTemplate" as demonstrated in the following demo:

    Regards,
    Vladimir Iliev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  14. Simon
    Simon avatar
    2 posts
    Member since:
    May 2015

    Posted 17 Jun 2015 in reply to Vladimir Iliev Link to this post

    Hi Vladimir,

    That's what I did. The problem now is that the format should be localizable as well since the website is german and english. 

    Is there a way to pass the date format string dynamically to the template engine?

  15. Vladimir Iliev
    Admin
    Vladimir Iliev avatar
    2172 posts

    Posted 18 Jun 2015 Link to this post

    Hello Simon,

    You can conditionally load the format by calling an external function from the template:

    dateHeaderTemplate: kendo.template("<span class='k-link k-nav-day'>#=kendo.toString(date, getCultureFormat())#</span>"),

    function getCultureFormat() {
      if (kendo.culture().name == "en-US") {
        return 'D';
      } else {
        return 'ddd M/dd';
      }
    }

    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
Kendo UI is VS 2017 Ready