Commit 86dc1dce authored by Dietmar Maurer's avatar Dietmar Maurer

reduce gettext strings by using format_storage_type() everywhere

parent d3e96362
...@@ -102,7 +102,7 @@ Ext.define('PVE.dc.StorageView', { ...@@ -102,7 +102,7 @@ Ext.define('PVE.dc.StorageView', {
menu: new Ext.menu.Menu({ menu: new Ext.menu.Menu({
items: [ items: [
{ {
text: gettext('Directory'), text: PVE.Utils.format_storage_type('dir'),
iconCls: 'pve-itype-icon-itype', iconCls: 'pve-itype-icon-itype',
handler: function() { handler: function() {
var win = Ext.create('PVE.storage.DirEdit', {}); var win = Ext.create('PVE.storage.DirEdit', {});
...@@ -112,7 +112,7 @@ Ext.define('PVE.dc.StorageView', { ...@@ -112,7 +112,7 @@ Ext.define('PVE.dc.StorageView', {
}, },
{ {
text: gettext('LVM group'), text: PVE.Utils.format_storage_type('lvm'),
handler: function() { handler: function() {
var win = Ext.create('PVE.storage.LVMEdit', {}); var win = Ext.create('PVE.storage.LVMEdit', {});
win.on('destroy', reload); win.on('destroy', reload);
...@@ -120,7 +120,7 @@ Ext.define('PVE.dc.StorageView', { ...@@ -120,7 +120,7 @@ Ext.define('PVE.dc.StorageView', {
} }
}, },
{ {
text: gettext('NFS share'), text: PVE.Utils.format_storage_type('nfs'),
iconCls: 'pve-itype-icon-node', iconCls: 'pve-itype-icon-node',
handler: function() { handler: function() {
var win = Ext.create('PVE.storage.NFSEdit', {}); var win = Ext.create('PVE.storage.NFSEdit', {});
...@@ -129,7 +129,7 @@ Ext.define('PVE.dc.StorageView', { ...@@ -129,7 +129,7 @@ Ext.define('PVE.dc.StorageView', {
} }
}, },
{ {
text: gettext('iSCSI target'), text: PVE.Utils.format_storage_type('iscsi'),
iconCls: 'pve-itype-icon-node', iconCls: 'pve-itype-icon-node',
handler: function() { handler: function() {
var win = Ext.create('PVE.storage.IScsiEdit', {}); var win = Ext.create('PVE.storage.IScsiEdit', {});
...@@ -138,7 +138,7 @@ Ext.define('PVE.dc.StorageView', { ...@@ -138,7 +138,7 @@ Ext.define('PVE.dc.StorageView', {
} }
}, },
{ {
text: gettext('GlusterFS volume'), text: PVE.Utils.format_storage_type('glusterfs'),
iconCls: 'pve-itype-icon-node', iconCls: 'pve-itype-icon-node',
handler: function() { handler: function() {
var win = Ext.create('PVE.storage.GlusterFsEdit', {}); var win = Ext.create('PVE.storage.GlusterFsEdit', {});
...@@ -147,7 +147,7 @@ Ext.define('PVE.dc.StorageView', { ...@@ -147,7 +147,7 @@ Ext.define('PVE.dc.StorageView', {
} }
}, },
{ {
text: 'RBD', text: PVE.Utils.format_storage_type('rbd'),
iconCls: 'pve-itype-icon-node', iconCls: 'pve-itype-icon-node',
handler: function() { handler: function() {
var win = Ext.create('PVE.storage.RBDEdit', {}); var win = Ext.create('PVE.storage.RBDEdit', {});
...@@ -158,7 +158,7 @@ Ext.define('PVE.dc.StorageView', { ...@@ -158,7 +158,7 @@ Ext.define('PVE.dc.StorageView', {
/* the following type are conidered unstable /* the following type are conidered unstable
* so we do not enable that on the GUI for now * so we do not enable that on the GUI for now
{ {
text: 'Sheepdog', text: PVE.Utils.format_storage_type('sheepdog'),
iconCls: 'pve-itype-icon-node', iconCls: 'pve-itype-icon-node',
handler: function() { handler: function() {
var win = Ext.create('PVE.storage.SheepdogEdit', {}); var win = Ext.create('PVE.storage.SheepdogEdit', {});
...@@ -167,7 +167,7 @@ Ext.define('PVE.dc.StorageView', { ...@@ -167,7 +167,7 @@ Ext.define('PVE.dc.StorageView', {
} }
}, },
{ {
text: 'Nexenta', text: PVE.Utils.format_storage_type('nexenta'),
iconCls: 'pve-itype-icon-node', iconCls: 'pve-itype-icon-node',
handler: function() { handler: function() {
var win = Ext.create('PVE.storage.NexentaEdit', {}); var win = Ext.create('PVE.storage.NexentaEdit', {});
......
...@@ -111,7 +111,7 @@ Ext.define('PVE.storage.DirEdit', { ...@@ -111,7 +111,7 @@ Ext.define('PVE.storage.DirEdit', {
}); });
Ext.apply(me, { Ext.apply(me, {
subject: 'Directory', subject: PVE.Utils.format_storage_type('dir'),
isAdd: true, isAdd: true,
items: [ ipanel ] items: [ ipanel ]
}); });
......
...@@ -184,7 +184,7 @@ Ext.define('PVE.storage.GlusterFsEdit', { ...@@ -184,7 +184,7 @@ Ext.define('PVE.storage.GlusterFsEdit', {
}); });
Ext.apply(me, { Ext.apply(me, {
subject: 'GlusterFS Volume', subject: PVE.Utils.format_storage_type('glusterfs'),
isAdd: true, isAdd: true,
items: [ ipanel ] items: [ ipanel ]
}); });
......
...@@ -176,7 +176,7 @@ Ext.define('PVE.storage.IScsiEdit', { ...@@ -176,7 +176,7 @@ Ext.define('PVE.storage.IScsiEdit', {
}); });
Ext.apply(me, { Ext.apply(me, {
subject: 'iSCSI target', subject: PVE.Utils.format_storage_type('iscsi'),
isAdd: true, isAdd: true,
items: [ ipanel ] items: [ ipanel ]
}); });
......
...@@ -236,7 +236,7 @@ Ext.define('PVE.storage.LVMEdit', { ...@@ -236,7 +236,7 @@ Ext.define('PVE.storage.LVMEdit', {
}); });
Ext.apply(me, { Ext.apply(me, {
subject: gettext('LVM group'), subject: PVE.Utils.format_storage_type('lvm'),
isAdd: true, isAdd: true,
items: [ ipanel ] items: [ ipanel ]
}); });
......
...@@ -187,7 +187,7 @@ Ext.define('PVE.storage.NFSEdit', { ...@@ -187,7 +187,7 @@ Ext.define('PVE.storage.NFSEdit', {
}); });
Ext.apply(me, { Ext.apply(me, {
subject: gettext('NFS share'), subject: 'NFS',
isAdd: true, isAdd: true,
items: [ ipanel ] items: [ ipanel ]
}); });
......
...@@ -140,7 +140,7 @@ Ext.define('PVE.storage.NexentaEdit', { ...@@ -140,7 +140,7 @@ Ext.define('PVE.storage.NexentaEdit', {
}); });
Ext.apply(me, { Ext.apply(me, {
subject: gettext('Nexenta Storage'), subject: PVE.Utils.format_storage_type('nexenta'),
isAdd: true, isAdd: true,
items: [ ipanel ] items: [ ipanel ]
}); });
......
...@@ -106,7 +106,7 @@ Ext.define('PVE.storage.RBDEdit', { ...@@ -106,7 +106,7 @@ Ext.define('PVE.storage.RBDEdit', {
}); });
Ext.apply(me, { Ext.apply(me, {
subject: gettext('RBD Storage'), subject: PVE.Utils.format_storage_type('rbd'),
isAdd: true, isAdd: true,
items: [ ipanel ] items: [ ipanel ]
}); });
......
...@@ -90,7 +90,7 @@ Ext.define('PVE.storage.SheepdogEdit', { ...@@ -90,7 +90,7 @@ Ext.define('PVE.storage.SheepdogEdit', {
}); });
Ext.apply(me, { Ext.apply(me, {
subject: gettext('Sheepdog Storage'), subject: PVE.Utils.format_storage_type('sheepdog'),
isAdd: true, isAdd: true,
items: [ ipanel ] items: [ ipanel ]
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment