KENDO RECURRENCE EDITOR翻译周日

时间:2014-04-30 13:35:29

标签: kendo-ui editor translation recurrence

I, 我有一个kendoRecurrenceEditor控件,我想翻译它们。

我按照这个例子,但不要告诉我如何翻译天:“星期日”,“星期一”,“星期二”,“星期三”,“星期四”,“星期五”,“星期六”

http://jsbin.com/ObuFoga/1/edit

任何解决方案?

感谢Bruno F.

2 个答案:

答案 0 :(得分:0)

设置当前文化应自动更改它们。可以在globalization帮助主题中找到更多信息。

答案 1 :(得分:0)

这些日子来自kendo.culture()。calendar.days。如果需要,可以覆盖它们:

// Recurrence Editor uses the 2 character day abbreviations and can't be configured
// overwrite the 2 characters with the 3 to force what we want
var dayInfo = kendo.culture().calendar.days;
for (var i = 0; i < dayInfo.namesAbbr.length; i++) {
    dayInfo.namesShort[i] =  dayInfo.namesAbbr[i];
}
相关问题