]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
fix translation of Ext.Date.dayNames
authorDietmar Maurer <dietmar@proxmox.com>
Mon, 21 Jul 2014 05:08:43 +0000 (07:08 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 21 Jul 2014 05:14:30 +0000 (07:14 +0200)
We need to call htmlDecode() to remove html entities.

www/manager/form/DayOfWeekSelector.js

index a187821b35cb4d31c0291d7ab5efa8dcdbd4ea79..c03c430a1f29d1ed361d74beff5abdab320e2b39 100644 (file)
@@ -6,13 +6,13 @@ Ext.define('PVE.form.DayOfWeekSelector', {
        var me = this;
 
        me.data = [
-           ['sun', Ext.Date.dayNames[0]],
-           ['mon', Ext.Date.dayNames[1]],
-           ['tue', Ext.Date.dayNames[2]],
-           ['wed', Ext.Date.dayNames[3]],
-           ['thu', Ext.Date.dayNames[4]],
-           ['fri', Ext.Date.dayNames[5]],
-           ['sat', Ext.Date.dayNames[6]]
+           ['sun', Ext.util.Format.htmlDecode(Ext.Date.dayNames[0])],
+           ['mon', Ext.util.Format.htmlDecode(Ext.Date.dayNames[1])],
+           ['tue', Ext.util.Format.htmlDecode(Ext.Date.dayNames[2])],
+           ['wed', Ext.util.Format.htmlDecode(Ext.Date.dayNames[3])],
+           ['thu', Ext.util.Format.htmlDecode(Ext.Date.dayNames[4])],
+           ['fri', Ext.util.Format.htmlDecode(Ext.Date.dayNames[5])],
+           ['sat', Ext.util.Format.htmlDecode(Ext.Date.dayNames[6])]
        ];
 
        me.callParent();