previously we displayed always something like: "mon,tue,wed"
now we use the full name of the day and the correct translation
making it (eg in german):
"Montag, Dienstag, Mittwoch"
i did not to choose the first 3 letters, because we cannot be
sure they are unique for all workdays in every language
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
header: gettext('Day of week'),
width: 200,
sortable: false,
- dataIndex: 'dow'
+ dataIndex: 'dow',
+ renderer: function(val) {
+ var dows = ['sun', 'mon', 'tue', 'wed', 'thu', 'fri', 'sat'];
+ var selected = [];
+ val.split(',').forEach(function(day){
+ selected.push(Ext.Date.dayNames[dows.indexOf(day)]);
+ });
+ return selected.join(', ');
+ }
},
{
header: gettext('Start Time'),