name: 'storage',
height: 22, // hack: set same height as text fields
value: me.storageId || '',
- fieldLabel: 'Storage ID',
+ fieldLabel: 'ID',
vtype: 'StorageId',
allowBlank: false
},
{
xtype: 'PVE.form.NodeSelector',
name: 'nodes',
- fieldLabel: 'Nodes',
- emptyText: 'All (no restrictions)',
+ fieldLabel: gettext('Nodes'),
+ emptyText: gettext('All') + ' (' +
+ gettext('No restrictions') +')',
multiSelect: true,
autoSelect: false
},
name: 'enable',
checked: true,
uncheckedValue: 0,
- fieldLabel: 'Enable'
+ fieldLabel: gettext('Enable')
},
{
xtype: 'checkbox',
name: 'luns',
checked: true,
- fieldLabel: 'Use LUNs directly'
+ fieldLabel: gettext('Use LUNs directly')
}
];
storageId: me.storageId
});
- Ext.apply(me, {
- title: me.create ? "Create iSCSI storage" :
- "Edit iSCSI storage '" + me.storageId + "'",
- items: [ ipanel ]
- });
+ me.items = [ ipanel ];
+
+ if (me.create) {
+ me.title = gettext('Create iSCSI storage');
+ } else {
+ me.title = Ext.String.format(gettext('Edit iSCSI storage {0}'),
+ "'" + me.storageId + "'");
+ }
me.callParent();
extend: 'Ext.form.field.ComboBox',
alias: 'widget.pveBaseStorageSelector',
+ existingGroupsText: gettext("Existing volume groups"),
+
initComponent : function() {
var me = this;
if (record.data.storage) {
return record.data.storage + " (iSCSI)";
} else {
- return "Existing volume groups";
+ return me.existingGroupsText;
}
}
}],
name: 'storage',
height: 22, // hack: set same height as text fields
value: me.storageId || '',
- fieldLabel: 'Storage ID',
+ fieldLabel: 'ID',
vtype: 'StorageId',
submitValue: !!me.create,
allowBlank: false
hidden: !!me.create,
disabled: !!me.create,
value: '',
- fieldLabel: 'VG name',
+ fieldLabel: gettext('Volume group'),
allowBlank: false
});
if (me.create) {
var vgField = Ext.create('PVE.storage.VgSelector', {
name: 'vgname',
- fieldLabel: 'Volume group',
+ fieldLabel: gettext('Volume group'),
allowBlank: false
});
disabled: true,
nodename: 'localhost',
storageContent: 'images',
- fieldLabel: 'Base volume',
+ fieldLabel: gettext('Base volume'),
allowBlank: false
});
me.column1.push({
xtype: 'pveBaseStorageSelector',
name: 'basesel',
- fieldLabel: 'Base storage',
+ fieldLabel: gettext('Base storage'),
submitValue: false,
listeners: {
change: function(f, value) {
{
xtype: 'PVE.form.NodeSelector',
name: 'nodes',
- fieldLabel: 'Nodes',
- emptyText: 'All (no restrictions)',
+ fieldLabel: gettext('Nodes'),
+ emptyText: gettext('All') + ' (' +
+ gettext('No restrictions') +')',
multiSelect: true,
autoSelect: false
},
name: 'enable',
checked: true,
uncheckedValue: 0,
- fieldLabel: 'Enable'
+ fieldLabel: gettext('Enable')
},
{
xtype: 'pvecheckbox',
name: 'shared',
uncheckedValue: 0,
- fieldLabel: 'Shared'
+ fieldLabel: gettext('Shared')
}
];
storageId: me.storageId
});
- Ext.apply(me, {
- title: me.create ? "Create LVM storage" :
- "Edit LVM storage '" + me.storageId + "'",
- items: [ ipanel ]
- });
+ me.items = [ ipanel ];
+
+ if (me.create) {
+ me.title = gettext('Create LVM storage');
+ } else {
+ me.title = Ext.String.format(gettext('Edit LVM storage {0}'),
+ "'" + me.storageId + "'");
+ }
me.callParent();
name: 'storage',
height: 22, // hack: set same height as text fields
value: me.storageId || '',
- fieldLabel: 'Storage ID',
+ fieldLabel: 'ID',
vtype: 'StorageId',
allowBlank: false
},
height: 22, // hack: set same height as text fields
name: 'server',
value: '',
- fieldLabel: 'Server',
+ fieldLabel: gettext('Server'),
allowBlank: false,
listeners: {
change: function(f, value) {
name: 'content',
value: 'images',
multiSelect: true,
- fieldLabel: 'Content',
+ fieldLabel: gettetx('Content'),
allowBlank: false
}
];
{
xtype: 'PVE.form.NodeSelector',
name: 'nodes',
- fieldLabel: 'Nodes',
- emptyText: 'All (no restrictions)',
+ fieldLabel: gettext('Nodes'),
+ emptyText: gettext('All') + ' (' +
+ gettext('No restrictions') +')',
multiSelect: true,
autoSelect: false
},
name: 'enable',
checked: true,
uncheckedValue: 0,
- fieldLabel: 'Enable'
+ fieldLabel: gettext('Enable')
}
];
storageId: me.storageId
});
- Ext.apply(me, {
- title: me.create ? "Create NFS storage" :
- "Edit NFS storage '" + me.storageId + "'",
- items: [ ipanel ]
- });
+ me.items = [ ipanel ];
+
+ if (me.create) {
+ me.title = gettext('Create NFS storage');
+ } else {
+ me.title = Ext.String.format(gettext('Edit NFS storage {0}'),
+ "'" + me.storageId + "'");
+ }
me.callParent();