mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-14 05:07:31 +00:00
add more gettext markers
This commit is contained in:
parent
4baf5d13d1
commit
ec5b32a8c8
6
debian/changelog.Debian
vendored
6
debian/changelog.Debian
vendored
@ -1,3 +1,9 @@
|
|||||||
|
pve-manager (2.0-11) unstable; urgency=low
|
||||||
|
|
||||||
|
* start i18n support
|
||||||
|
|
||||||
|
-- Proxmox Support Team <support@proxmox.com> Fri, 25 Nov 2011 09:23:00 +0100
|
||||||
|
|
||||||
pve-manager (2.0-10) unstable; urgency=low
|
pve-manager (2.0-10) unstable; urgency=low
|
||||||
|
|
||||||
* add context menus
|
* add context menus
|
||||||
|
@ -2,7 +2,7 @@ RELEASE=2.0
|
|||||||
|
|
||||||
VERSION=2.0
|
VERSION=2.0
|
||||||
PACKAGE=pve-manager
|
PACKAGE=pve-manager
|
||||||
PACKAGERELEASE=10
|
PACKAGERELEASE=11
|
||||||
|
|
||||||
BINDIR=${DESTDIR}/usr/bin
|
BINDIR=${DESTDIR}/usr/bin
|
||||||
PERLLIBDIR=${DESTDIR}/usr/share/perl5
|
PERLLIBDIR=${DESTDIR}/usr/share/perl5
|
||||||
|
@ -51,13 +51,13 @@ Ext.define('PVE.dc.StorageView', {
|
|||||||
};
|
};
|
||||||
|
|
||||||
var edit_btn = new Ext.Button({
|
var edit_btn = new Ext.Button({
|
||||||
text: 'Edit',
|
text: gettext('Edit'),
|
||||||
disabled: true,
|
disabled: true,
|
||||||
handler: run_editor
|
handler: run_editor
|
||||||
});
|
});
|
||||||
|
|
||||||
var remove_btn = new Ext.Button({
|
var remove_btn = new Ext.Button({
|
||||||
text: 'Remove',
|
text: gettext('Remove'),
|
||||||
disabled: true,
|
disabled: true,
|
||||||
handler: function(){
|
handler: function(){
|
||||||
var sm = me.getSelectionModel();
|
var sm = me.getSelectionModel();
|
||||||
@ -67,10 +67,9 @@ Ext.define('PVE.dc.StorageView', {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var msg = "Are you sure you want to remove storage: '" +
|
var msg = Ext.String.format(gettext('Are you sure you want to remove storage {0}?'), "'" + rec.data.storage + "'");
|
||||||
rec.data.storage + "'";
|
|
||||||
|
|
||||||
Ext.Msg.confirm('Deletion Confirmation', msg, function(btn) {
|
Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
|
||||||
if (btn !== 'yes') {
|
if (btn !== 'yes') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -82,7 +81,7 @@ Ext.define('PVE.dc.StorageView', {
|
|||||||
reload();
|
reload();
|
||||||
},
|
},
|
||||||
failure: function (response, opts) {
|
failure: function (response, opts) {
|
||||||
Ext.Msg.alert('Error', response.htmlStatus);
|
Ext.Msg.alert(gettetx('Error'), response.htmlStatus);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@ -112,7 +111,7 @@ Ext.define('PVE.dc.StorageView', {
|
|||||||
},
|
},
|
||||||
tbar: [
|
tbar: [
|
||||||
{
|
{
|
||||||
text: 'Add',
|
text: gettext('Add'),
|
||||||
menu: new Ext.menu.Menu({
|
menu: new Ext.menu.Menu({
|
||||||
items: [
|
items: [
|
||||||
{
|
{
|
||||||
@ -159,20 +158,20 @@ Ext.define('PVE.dc.StorageView', {
|
|||||||
],
|
],
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
header: 'Storage ID',
|
header: 'ID',
|
||||||
width: 100,
|
width: 100,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
dataIndex: 'storage'
|
dataIndex: 'storage'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: 'Type',
|
header: gettext('Type'),
|
||||||
width: 60,
|
width: 60,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
dataIndex: 'type',
|
dataIndex: 'type',
|
||||||
renderer: PVE.Utils.format_storage_type
|
renderer: PVE.Utils.format_storage_type
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: 'Content',
|
header: gettext('Content'),
|
||||||
width: 150,
|
width: 150,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
dataIndex: 'content',
|
dataIndex: 'content',
|
||||||
@ -191,14 +190,14 @@ Ext.define('PVE.dc.StorageView', {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: 'Shared',
|
header: gettext('Shared'),
|
||||||
width: 80,
|
width: 80,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
dataIndex: 'shared',
|
dataIndex: 'shared',
|
||||||
renderer: PVE.Utils.format_boolean
|
renderer: PVE.Utils.format_boolean
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: 'Enable',
|
header: gettext('Enable'),
|
||||||
width: 80,
|
width: 80,
|
||||||
sortable: true,
|
sortable: true,
|
||||||
dataIndex: 'disable',
|
dataIndex: 'disable',
|
||||||
|
@ -26,7 +26,7 @@ Ext.define('PVE.storage.DirInputPanel', {
|
|||||||
name: 'storage',
|
name: 'storage',
|
||||||
height: 22, // hack: set same height as text fields
|
height: 22, // hack: set same height as text fields
|
||||||
value: me.storageId || '',
|
value: me.storageId || '',
|
||||||
fieldLabel: 'Storage ID',
|
fieldLabel: 'ID',
|
||||||
vtype: 'StorageId',
|
vtype: 'StorageId',
|
||||||
allowBlank: false
|
allowBlank: false
|
||||||
},
|
},
|
||||||
@ -35,7 +35,7 @@ Ext.define('PVE.storage.DirInputPanel', {
|
|||||||
height: 22, // hack: set same height as text fields
|
height: 22, // hack: set same height as text fields
|
||||||
name: 'path',
|
name: 'path',
|
||||||
value: '',
|
value: '',
|
||||||
fieldLabel: 'Directory',
|
fieldLabel: gettext('Directory'),
|
||||||
allowBlank: false
|
allowBlank: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -43,7 +43,7 @@ Ext.define('PVE.storage.DirInputPanel', {
|
|||||||
name: 'content',
|
name: 'content',
|
||||||
value: 'images',
|
value: 'images',
|
||||||
multiSelect: true,
|
multiSelect: true,
|
||||||
fieldLabel: 'Content',
|
fieldLabel: gettext('Content'),
|
||||||
allowBlank: false
|
allowBlank: false
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
@ -54,13 +54,13 @@ Ext.define('PVE.storage.DirInputPanel', {
|
|||||||
name: 'enable',
|
name: 'enable',
|
||||||
checked: true,
|
checked: true,
|
||||||
uncheckedValue: 0,
|
uncheckedValue: 0,
|
||||||
fieldLabel: 'Enable'
|
fieldLabel: gettext('Enable')
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
xtype: 'pvecheckbox',
|
xtype: 'pvecheckbox',
|
||||||
name: 'shared',
|
name: 'shared',
|
||||||
uncheckedValue: 0,
|
uncheckedValue: 0,
|
||||||
fieldLabel: 'Shared'
|
fieldLabel: gettext('Shared')
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -68,8 +68,9 @@ Ext.define('PVE.storage.DirInputPanel', {
|
|||||||
me.column2.unshift({
|
me.column2.unshift({
|
||||||
xtype: 'PVE.form.NodeSelector',
|
xtype: 'PVE.form.NodeSelector',
|
||||||
name: 'nodes',
|
name: 'nodes',
|
||||||
fieldLabel: 'Nodes',
|
fieldLabel: gettext('Nodes'),
|
||||||
emptyText: 'All (no restrictions)',
|
emptyText: gettext('All') + ' (' +
|
||||||
|
gettext('No restrictions') +')',
|
||||||
multiSelect: true,
|
multiSelect: true,
|
||||||
autoSelect: false
|
autoSelect: false
|
||||||
});
|
});
|
||||||
@ -99,13 +100,16 @@ Ext.define('PVE.storage.DirEdit', {
|
|||||||
create: me.create,
|
create: me.create,
|
||||||
storageId: me.storageId
|
storageId: me.storageId
|
||||||
});
|
});
|
||||||
|
|
||||||
Ext.apply(me, {
|
|
||||||
title: me.create ? "Create directory storage" :
|
|
||||||
"Edit directory storage '" + me.storageId + "'",
|
|
||||||
items: [ ipanel ]
|
|
||||||
});
|
|
||||||
|
|
||||||
|
me.items = [ ipanel ];
|
||||||
|
|
||||||
|
if (me.create) {
|
||||||
|
me.title = gettext('Create directory storage');
|
||||||
|
} else {
|
||||||
|
me.title = Ext.String.format(gettext('Edit directory storage {0}'),
|
||||||
|
"'" + me.storageId + "'");
|
||||||
|
}
|
||||||
|
|
||||||
me.callParent();
|
me.callParent();
|
||||||
|
|
||||||
if (!me.create) {
|
if (!me.create) {
|
||||||
|
@ -84,7 +84,7 @@ Ext.define('PVE.window.Edit', {
|
|||||||
if (response.result.errors) {
|
if (response.result.errors) {
|
||||||
form.markInvalid(response.result.errors);
|
form.markInvalid(response.result.errors);
|
||||||
}
|
}
|
||||||
Ext.Msg.alert('Error', response.htmlStatus);
|
Ext.Msg.alert(gettext('Error'), response.htmlStatus);
|
||||||
},
|
},
|
||||||
success: function(response, options) {
|
success: function(response, options) {
|
||||||
me.close();
|
me.close();
|
||||||
@ -121,7 +121,7 @@ Ext.define('PVE.window.Edit', {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
failure: function(response, opts) {
|
failure: function(response, opts) {
|
||||||
Ext.Msg.alert('Error', response.htmlStatus, function() {
|
Ext.Msg.alert(gettext('Error'), response.htmlStatus, function() {
|
||||||
me.close();
|
me.close();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@ -163,7 +163,7 @@ Ext.define('PVE.window.Edit', {
|
|||||||
var form = me.formPanel.getForm();
|
var form = me.formPanel.getForm();
|
||||||
|
|
||||||
var submitBtn = Ext.create('Ext.Button', {
|
var submitBtn = Ext.create('Ext.Button', {
|
||||||
text: me.create ? 'Create' : 'OK',
|
text: me.create ? gettext('Create') : gettext('OK'),
|
||||||
disabled: !me.create,
|
disabled: !me.create,
|
||||||
handler: function() {
|
handler: function() {
|
||||||
me.submit();
|
me.submit();
|
||||||
|
Loading…
Reference in New Issue
Block a user