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

Localization

13 Answers 559 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
OfficeHeart
Top achievements
Rank 1
OfficeHeart asked on 19 Jul 2013, 11:29 AM
Hello,

How can I localize the Scheduler?

Thanks,
Koen

13 Answers, 1 is accepted

Sort by
0
Accepted
Vladimir Iliev
Telerik team
answered on 23 Jul 2013, 09:10 AM
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!
0
Sven Hammesfahr
Top achievements
Rank 1
answered on 01 Aug 2013, 03:34 PM
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
0
Georgi Krustev
Telerik team
answered on 02 Aug 2013, 07:51 AM
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!
0
Andrea
Top achievements
Rank 1
answered on 07 Mar 2014, 11:03 PM
@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
0
Vladimir Iliev
Telerik team
answered on 11 Mar 2014, 11:09 AM
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!
0
Vincent
Top achievements
Rank 1
answered on 12 Apr 2014, 10:22 AM
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?'
0
Andrea
Top achievements
Rank 1
answered on 12 Apr 2014, 10:28 AM
Thank you very much, Vincent, even if I only needed italian translations: my app will be used only here! :-)
Thanks anyway...
Andrea
0
Vincent
Top achievements
Rank 1
answered on 12 Apr 2014, 11:26 AM
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"))
0
Vladimir Iliev
Telerik team
answered on 15 Apr 2014, 02:05 PM
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!
 
0
Simon
Top achievements
Rank 1
answered on 15 Jun 2015, 10:07 AM

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

0
Vladimir Iliev
Telerik team
answered on 17 Jun 2015, 09:04 AM
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!
 
0
Simon
Top achievements
Rank 1
answered on 17 Jun 2015, 09:13 AM

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?

0
Vladimir Iliev
Telerik team
answered on 18 Jun 2015, 09:15 AM
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!
 
Tags
Scheduler
Asked by
OfficeHeart
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Sven Hammesfahr
Top achievements
Rank 1
Georgi Krustev
Telerik team
Andrea
Top achievements
Rank 1
Vincent
Top achievements
Rank 1
Simon
Top achievements
Rank 1
Share this question
or