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', {
menu: new Ext.menu.Menu({
items: [
{
text: gettext('Directory'),
text: PVE.Utils.format_storage_type('dir'),
iconCls: 'pve-itype-icon-itype',
handler: function() {
var win = Ext.create('PVE.storage.DirEdit', {});
......@@ -112,7 +112,7 @@ Ext.define('PVE.dc.StorageView', {
},
{
text: gettext('LVM group'),
text: PVE.Utils.format_storage_type('lvm'),
handler: function() {
var win = Ext.create('PVE.storage.LVMEdit', {});
win.on('destroy', reload);
......@@ -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',
handler: function() {
var win = Ext.create('PVE.storage.NFSEdit', {});
......@@ -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',
handler: function() {
var win = Ext.create('PVE.storage.IScsiEdit', {});
......@@ -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',
handler: function() {
var win = Ext.create('PVE.storage.GlusterFsEdit', {});
......@@ -147,7 +147,7 @@ Ext.define('PVE.dc.StorageView', {
}
},
{
text: 'RBD',
text: PVE.Utils.format_storage_type('rbd'),
iconCls: 'pve-itype-icon-node',
handler: function() {
var win = Ext.create('PVE.storage.RBDEdit', {});
......@@ -158,7 +158,7 @@ Ext.define('PVE.dc.StorageView', {
/* the following type are conidered unstable
* 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',
handler: function() {
var win = Ext.create('PVE.storage.SheepdogEdit', {});
......@@ -167,7 +167,7 @@ Ext.define('PVE.dc.StorageView', {
}
},
{
text: 'Nexenta',
text: PVE.Utils.format_storage_type('nexenta'),
iconCls: 'pve-itype-icon-node',
handler: function() {
var win = Ext.create('PVE.storage.NexentaEdit', {});
......
......@@ -111,7 +111,7 @@ Ext.define('PVE.storage.DirEdit', {
});
Ext.apply(me, {
subject: 'Directory',
subject: PVE.Utils.format_storage_type('dir'),
isAdd: true,
items: [ ipanel ]
});
......
......@@ -184,7 +184,7 @@ Ext.define('PVE.storage.GlusterFsEdit', {
});
Ext.apply(me, {
subject: 'GlusterFS Volume',
subject: PVE.Utils.format_storage_type('glusterfs'),
isAdd: true,
items: [ ipanel ]
});
......
......@@ -176,7 +176,7 @@ Ext.define('PVE.storage.IScsiEdit', {
});
Ext.apply(me, {
subject: 'iSCSI target',
subject: PVE.Utils.format_storage_type('iscsi'),
isAdd: true,
items: [ ipanel ]
});
......
......@@ -236,7 +236,7 @@ Ext.define('PVE.storage.LVMEdit', {
});
Ext.apply(me, {
subject: gettext('LVM group'),
subject: PVE.Utils.format_storage_type('lvm'),
isAdd: true,
items: [ ipanel ]
});
......
......@@ -187,7 +187,7 @@ Ext.define('PVE.storage.NFSEdit', {
});
Ext.apply(me, {
subject: gettext('NFS share'),
subject: 'NFS',
isAdd: true,
items: [ ipanel ]
});
......
......@@ -140,7 +140,7 @@ Ext.define('PVE.storage.NexentaEdit', {
});
Ext.apply(me, {
subject: gettext('Nexenta Storage'),
subject: PVE.Utils.format_storage_type('nexenta'),
isAdd: true,
items: [ ipanel ]
});
......
......@@ -106,7 +106,7 @@ Ext.define('PVE.storage.RBDEdit', {
});
Ext.apply(me, {
subject: gettext('RBD Storage'),
subject: PVE.Utils.format_storage_type('rbd'),
isAdd: true,
items: [ ipanel ]
});
......
......@@ -90,7 +90,7 @@ Ext.define('PVE.storage.SheepdogEdit', {
});
Ext.apply(me, {
subject: gettext('Sheepdog Storage'),
subject: PVE.Utils.format_storage_type('sheepdog'),
isAdd: true,
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