[FIX] web_calendar: calendar title and column according to l10n
This commit is contained in:
parent
e9a4603cb4
commit
a4ab44ac96
|
@ -21,6 +21,7 @@ openerp.web_calendar = function(instance) {
|
|||
|
||||
function get_fc_defaultOptions() {
|
||||
shortTimeformat = Date.CultureInfo.formatPatterns.shortTime;
|
||||
var dateFormat = Date.normalizeFormat(instance.web.strip_raw_chars(_t.database.parameters.date_format));
|
||||
return {
|
||||
weekNumberTitle: _t("W"),
|
||||
allDayText: _t("All day"),
|
||||
|
@ -43,6 +44,16 @@ openerp.web_calendar = function(instance) {
|
|||
// for all other views
|
||||
'': shortTimeformat.replace(/:mm/,'(:mm)') // 7pm
|
||||
},
|
||||
titleFormat: {
|
||||
month: 'MMMM yyyy',
|
||||
week: dateFormat + "{ '—'"+ dateFormat,
|
||||
day: dateFormat,
|
||||
},
|
||||
columnFormat: {
|
||||
month: 'ddd',
|
||||
week: 'ddd ' + dateFormat,
|
||||
day: 'dddd ' + dateFormat,
|
||||
},
|
||||
weekMode : 'liquid',
|
||||
aspectRatio: 1.8,
|
||||
snapMinutes: 15,
|
||||
|
|
Loading…
Reference in New Issue