Commit 21712d7d authored by Dietmar Maurer's avatar Dietmar Maurer

add more gettext markers

parent a2542cc9
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
* add context menus
......
......@@ -2,7 +2,7 @@ RELEASE=2.0
VERSION=2.0
PACKAGE=pve-manager
PACKAGERELEASE=10
PACKAGERELEASE=11
BINDIR=${DESTDIR}/usr/bin
PERLLIBDIR=${DESTDIR}/usr/share/perl5
......
......@@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: pve-manager 2.0\n"
"Report-Msgid-Bugs-To: <support@proxmox.com>\n"
"POT-Creation-Date: Wed Nov 23 10:13:52 2011\n"
"PO-Revision-Date: 2011-11-23 10:16+0100\n"
"POT-Creation-Date: Thu Nov 24 13:10:49 2011\n"
"PO-Revision-Date: 2011-11-24 13:10+0100\n"
"Last-Translator: Proxmox Support Team <support@proxmox.com>\n"
"Language-Team: German\n"
"Language: de\n"
......@@ -17,6 +17,14 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: ../www/manager/dc/StorageView.js:114
msgid "Add"
msgstr "Hinzufügen"
#: ../www/manager/storage/DirEdit.js:72
msgid "All"
msgstr "Alle"
#: ../www/manager/Utils.js:60
msgid "Allowed characters"
msgstr "Erlaubte Zeichen"
......@@ -29,6 +37,10 @@ msgstr ""
"Sind Sie sicher dass Sie VM {0} entfernen wollen? Damit löschen Sie alle "
"Daten der VM."
#: ../www/manager/dc/StorageView.js:70
msgid "Are you sure you want to remove storage {0}?"
msgstr "Möchten Sie Speicher {0} wirklich entfernen?"
#: ../www/manager/dc/Config.js:49
msgid "Authentication"
msgstr "Authentifikation"
......@@ -46,11 +58,11 @@ msgstr "CPU-Auslastung"
msgid "Cluster log"
msgstr "Cluster log"
#: ../www/manager/qemu/CmdMenu.js:41 ../www/manager/button/Button.js:40
#: ../www/manager/VNCConsole.js:240 ../www/manager/VNCConsole.js:257
#: ../www/manager/VNCConsole.js:269 ../www/manager/VNCConsole.js:281
#: ../www/manager/VNCConsole.js:376 ../www/manager/VNCConsole.js:388
#: ../www/manager/openvz/CmdMenu.js:41
#: ../www/manager/dc/StorageView.js:72 ../www/manager/qemu/CmdMenu.js:41
#: ../www/manager/button/Button.js:40 ../www/manager/VNCConsole.js:240
#: ../www/manager/VNCConsole.js:257 ../www/manager/VNCConsole.js:269
#: ../www/manager/VNCConsole.js:281 ../www/manager/VNCConsole.js:376
#: ../www/manager/VNCConsole.js:388 ../www/manager/openvz/CmdMenu.js:41
msgid "Confirm"
msgstr "Bestätigung"
......@@ -70,10 +82,15 @@ msgstr "Konsole"
msgid "Container {0} on node {1}"
msgstr "Container {0} auf Knoten {1}"
#: ../www/manager/dc/StorageView.js:174 ../www/manager/storage/DirEdit.js:46
#: ../www/manager/storage/Browser.js:30
msgid "Content"
msgstr "Inhalt"
#: ../www/manager/window/Edit.js:166
msgid "Create"
msgstr "Erstellen"
#: ../www/manager/Workspace.js:333
msgid "Create CT"
msgstr "Erstelle CT"
......@@ -82,6 +99,10 @@ msgstr "Erstelle CT"
msgid "Create VM"
msgstr "Erstelle VM"
#: ../www/manager/storage/DirEdit.js:107
msgid "Create directory storage"
msgstr "Erstelle Directory-Speicher"
#: ../www/manager/tree/ResourceTree.js:185 ../www/manager/dc/Config.js:9
msgid "Datacenter"
msgstr "Rechenzentrum"
......@@ -95,6 +116,10 @@ msgstr "Standardeinstellung"
msgid "Description"
msgstr "Beschreibung"
#: ../www/manager/storage/DirEdit.js:38
msgid "Directory"
msgstr "Verzeichnis"
#: ../www/manager/data/ResourceStore.js:109
msgid "Disk size"
msgstr "Disk-Größe"
......@@ -134,7 +159,7 @@ msgstr "Möchten Sie VM {0} wirklich stoppen?"
msgid "Do you really want to suspend VM {0}?"
msgstr "Möchten Sie VM {0} wirklich aussetzen (suspend)?"
#: ../www/manager/dc/OptionView.js:130
#: ../www/manager/dc/StorageView.js:54 ../www/manager/dc/OptionView.js:130
msgid "Edit"
msgstr "Bearbeiten"
......@@ -142,6 +167,10 @@ msgstr "Bearbeiten"
msgid "Edit HTTP proxy settings"
msgstr "Bearbeite HTTP-Proxy-Einstellungen"
#: ../www/manager/storage/DirEdit.js:109
msgid "Edit directory storage {0}"
msgstr "Bearbeite Directory-Speicher {0}"
#: ../www/manager/dc/OptionView.js:55
msgid "Edit keyboard settings"
msgstr "Bearbeite Tastatureinstellungen"
......@@ -150,6 +179,10 @@ msgstr "Bearbeite Tastatureinstellungen"
msgid "Edit language settings"
msgstr "Bearbeiten Spracheinstellungen"
#: ../www/manager/dc/StorageView.js:200 ../www/manager/storage/DirEdit.js:57
msgid "Enable"
msgstr "Freigabe"
#: ../www/manager/node/Tasks.js:118 ../www/manager/dc/Tasks.js:69
msgid "End Time"
msgstr "Endzeit"
......@@ -162,7 +195,8 @@ msgstr "Bitte geben Sie Ihr Passwort ein"
msgid "Enter your user name"
msgstr "Bitte geben Sie Ihren Benutzernamen ein"
#: ../www/manager/window/LoginWindow.js:17
#: ../www/manager/window/LoginWindow.js:17 ../www/manager/window/Edit.js:87
#: ../www/manager/window/Edit.js:124
msgid "Error"
msgstr "Fehler"
......@@ -252,6 +286,10 @@ msgstr "Netzwerk"
msgid "No"
msgstr "Nein"
#: ../www/manager/storage/DirEdit.js:73
msgid "No restrictions"
msgstr "Keine Einschränkung"
#: ../www/manager/data/ResourceStore.js:153 ../www/manager/node/Config.js:60
#: ../www/manager/node/Tasks.js:126 ../www/manager/dc/Tasks.js:81
#: ../www/manager/dc/Log.js:50
......@@ -262,6 +300,10 @@ msgstr "Knoten"
msgid "Node list"
msgstr "Knotenliste"
#: ../www/manager/storage/DirEdit.js:71
msgid "Nodes"
msgstr "Knoten"
#: ../www/manager/data/ResourceStore.js:48
msgid "Online"
msgstr "Online"
......@@ -307,7 +349,8 @@ msgstr "Aktualisieren"
msgid "Reload"
msgstr "Neu laden"
#: ../www/manager/qemu/Config.js:79 ../www/manager/openvz/Config.js:71
#: ../www/manager/dc/StorageView.js:60 ../www/manager/qemu/Config.js:79
#: ../www/manager/openvz/Config.js:71
msgid "Remove"
msgstr "Entfernen"
......@@ -352,6 +395,10 @@ msgstr "Services"
msgid "Severity"
msgstr "Schwere"
#: ../www/manager/dc/StorageView.js:193 ../www/manager/storage/DirEdit.js:63
msgid "Shared"
msgstr "Verteilt"
#: ../www/manager/node/Config.js:47 ../www/manager/VNCConsole.js:459
msgid "Shell"
msgstr "Shell"
......@@ -420,6 +467,7 @@ msgid "Time"
msgstr "Zeit"
#: ../www/manager/data/ResourceStore.js:33
#: ../www/manager/dc/StorageView.js:167
msgid "Type"
msgstr "Typ"
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: pve-manager 2.0\n"
"Report-Msgid-Bugs-To: <support@proxmox.com>\n"
"POT-Creation-Date: Wed Nov 23 10:13:52 2011\n"
"POT-Creation-Date: Thu Nov 24 13:10:49 2011\n"
"PO-Revision-Date: 2011-11-22 09:15+0100\n"
"Last-Translator: Proxmox Support Team <support@proxmox.com>\n"
"Language-Team: French\n"
......@@ -17,6 +17,14 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: ../www/manager/dc/StorageView.js:114
msgid "Add"
msgstr ""
#: ../www/manager/storage/DirEdit.js:72
msgid "All"
msgstr ""
#: ../www/manager/Utils.js:60
msgid "Allowed characters"
msgstr ""
......@@ -27,6 +35,10 @@ msgid ""
"data."
msgstr ""
#: ../www/manager/dc/StorageView.js:70
msgid "Are you sure you want to remove storage {0}?"
msgstr ""
#: ../www/manager/dc/Config.js:49
msgid "Authentication"
msgstr ""
......@@ -44,11 +56,11 @@ msgstr ""
msgid "Cluster log"
msgstr ""
#: ../www/manager/qemu/CmdMenu.js:41 ../www/manager/button/Button.js:40
#: ../www/manager/VNCConsole.js:240 ../www/manager/VNCConsole.js:257
#: ../www/manager/VNCConsole.js:269 ../www/manager/VNCConsole.js:281
#: ../www/manager/VNCConsole.js:376 ../www/manager/VNCConsole.js:388
#: ../www/manager/openvz/CmdMenu.js:41
#: ../www/manager/dc/StorageView.js:72 ../www/manager/qemu/CmdMenu.js:41
#: ../www/manager/button/Button.js:40 ../www/manager/VNCConsole.js:240
#: ../www/manager/VNCConsole.js:257 ../www/manager/VNCConsole.js:269
#: ../www/manager/VNCConsole.js:281 ../www/manager/VNCConsole.js:376
#: ../www/manager/VNCConsole.js:388 ../www/manager/openvz/CmdMenu.js:41
msgid "Confirm"
msgstr ""
......@@ -68,10 +80,15 @@ msgstr ""
msgid "Container {0} on node {1}"
msgstr ""
#: ../www/manager/dc/StorageView.js:174 ../www/manager/storage/DirEdit.js:46
#: ../www/manager/storage/Browser.js:30
msgid "Content"
msgstr ""
#: ../www/manager/window/Edit.js:166
msgid "Create"
msgstr ""
#: ../www/manager/Workspace.js:333
msgid "Create CT"
msgstr ""
......@@ -80,6 +97,10 @@ msgstr ""
msgid "Create VM"
msgstr ""
#: ../www/manager/storage/DirEdit.js:107
msgid "Create directory storage"
msgstr ""
#: ../www/manager/tree/ResourceTree.js:185 ../www/manager/dc/Config.js:9
msgid "Datacenter"
msgstr ""
......@@ -93,6 +114,10 @@ msgstr ""
msgid "Description"
msgstr ""
#: ../www/manager/storage/DirEdit.js:38
msgid "Directory"
msgstr ""
#: ../www/manager/data/ResourceStore.js:109
msgid "Disk size"
msgstr ""
......@@ -132,7 +157,7 @@ msgstr ""
msgid "Do you really want to suspend VM {0}?"
msgstr ""
#: ../www/manager/dc/OptionView.js:130
#: ../www/manager/dc/StorageView.js:54 ../www/manager/dc/OptionView.js:130
msgid "Edit"
msgstr ""
......@@ -140,6 +165,10 @@ msgstr ""
msgid "Edit HTTP proxy settings"
msgstr ""
#: ../www/manager/storage/DirEdit.js:109
msgid "Edit directory storage {0}"
msgstr ""
#: ../www/manager/dc/OptionView.js:55
msgid "Edit keyboard settings"
msgstr ""
......@@ -148,6 +177,10 @@ msgstr ""
msgid "Edit language settings"
msgstr ""
#: ../www/manager/dc/StorageView.js:200 ../www/manager/storage/DirEdit.js:57
msgid "Enable"
msgstr ""
#: ../www/manager/node/Tasks.js:118 ../www/manager/dc/Tasks.js:69
msgid "End Time"
msgstr ""
......@@ -160,7 +193,8 @@ msgstr ""
msgid "Enter your user name"
msgstr ""
#: ../www/manager/window/LoginWindow.js:17
#: ../www/manager/window/LoginWindow.js:17 ../www/manager/window/Edit.js:87
#: ../www/manager/window/Edit.js:124
msgid "Error"
msgstr ""
......@@ -250,6 +284,10 @@ msgstr ""
msgid "No"
msgstr ""
#: ../www/manager/storage/DirEdit.js:73
msgid "No restrictions"
msgstr ""
#: ../www/manager/data/ResourceStore.js:153 ../www/manager/node/Config.js:60
#: ../www/manager/node/Tasks.js:126 ../www/manager/dc/Tasks.js:81
#: ../www/manager/dc/Log.js:50
......@@ -260,6 +298,10 @@ msgstr ""
msgid "Node list"
msgstr ""
#: ../www/manager/storage/DirEdit.js:71
msgid "Nodes"
msgstr ""
#: ../www/manager/data/ResourceStore.js:48
msgid "Online"
msgstr ""
......@@ -305,7 +347,8 @@ msgstr ""
msgid "Reload"
msgstr ""
#: ../www/manager/qemu/Config.js:79 ../www/manager/openvz/Config.js:71
#: ../www/manager/dc/StorageView.js:60 ../www/manager/qemu/Config.js:79
#: ../www/manager/openvz/Config.js:71
msgid "Remove"
msgstr ""
......@@ -350,6 +393,10 @@ msgstr ""
msgid "Severity"
msgstr ""
#: ../www/manager/dc/StorageView.js:193 ../www/manager/storage/DirEdit.js:63
msgid "Shared"
msgstr ""
#: ../www/manager/node/Config.js:47 ../www/manager/VNCConsole.js:459
msgid "Shell"
msgstr ""
......@@ -418,6 +465,7 @@ msgid "Time"
msgstr ""
#: ../www/manager/data/ResourceStore.js:33
#: ../www/manager/dc/StorageView.js:167
msgid "Type"
msgstr ""
......
......@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: pve-manager 2.0\n"
"Report-Msgid-Bugs-To: <support@proxmox.com>\n"
"POT-Creation-Date: Wed Nov 23 10:13:52 2011\n"
"POT-Creation-Date: Thu Nov 24 13:10:49 2011\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <support@proxmox.com>\n"
......@@ -16,6 +16,14 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n"
#: ../www/manager/dc/StorageView.js:114
msgid "Add"
msgstr ""
#: ../www/manager/storage/DirEdit.js:72
msgid "All"
msgstr ""
#: ../www/manager/Utils.js:60
msgid "Allowed characters"
msgstr ""
......@@ -24,6 +32,10 @@ msgstr ""
msgid "Are you sure you want to remove VM {0}? This will permanently erase all VM data."
msgstr ""
#: ../www/manager/dc/StorageView.js:70
msgid "Are you sure you want to remove storage {0}?"
msgstr ""
#: ../www/manager/dc/Config.js:49
msgid "Authentication"
msgstr ""
......@@ -40,7 +52,7 @@ msgstr ""
msgid "Cluster log"
msgstr ""
#: ../www/manager/qemu/CmdMenu.js:41 ../www/manager/button/Button.js:40 ../www/manager/VNCConsole.js:240 ../www/manager/VNCConsole.js:257 ../www/manager/VNCConsole.js:269 ../www/manager/VNCConsole.js:281 ../www/manager/VNCConsole.js:376 ../www/manager/VNCConsole.js:388 ../www/manager/openvz/CmdMenu.js:41
#: ../www/manager/dc/StorageView.js:72 ../www/manager/qemu/CmdMenu.js:41 ../www/manager/button/Button.js:40 ../www/manager/VNCConsole.js:240 ../www/manager/VNCConsole.js:257 ../www/manager/VNCConsole.js:269 ../www/manager/VNCConsole.js:281 ../www/manager/VNCConsole.js:376 ../www/manager/VNCConsole.js:388 ../www/manager/openvz/CmdMenu.js:41
msgid "Confirm"
msgstr ""
......@@ -56,10 +68,14 @@ msgstr ""
msgid "Container {0} on node {1}"
msgstr ""
#: ../www/manager/storage/Browser.js:30
#: ../www/manager/dc/StorageView.js:174 ../www/manager/storage/DirEdit.js:46 ../www/manager/storage/Browser.js:30
msgid "Content"
msgstr ""
#: ../www/manager/window/Edit.js:166
msgid "Create"
msgstr ""
#: ../www/manager/Workspace.js:333
msgid "Create CT"
msgstr ""
......@@ -68,6 +84,10 @@ msgstr ""
msgid "Create VM"
msgstr ""
#: ../www/manager/storage/DirEdit.js:107
msgid "Create directory storage"
msgstr ""
#: ../www/manager/tree/ResourceTree.js:185 ../www/manager/dc/Config.js:9
msgid "Datacenter"
msgstr ""
......@@ -80,6 +100,10 @@ msgstr ""
msgid "Description"
msgstr ""
#: ../www/manager/storage/DirEdit.js:38
msgid "Directory"
msgstr ""
#: ../www/manager/data/ResourceStore.js:109
msgid "Disk size"
msgstr ""
......@@ -116,7 +140,7 @@ msgstr ""
msgid "Do you really want to suspend VM {0}?"
msgstr ""
#: ../www/manager/dc/OptionView.js:130
#: ../www/manager/dc/StorageView.js:54 ../www/manager/dc/OptionView.js:130
msgid "Edit"
msgstr ""
......@@ -124,6 +148,10 @@ msgstr ""
msgid "Edit HTTP proxy settings"
msgstr ""
#: ../www/manager/storage/DirEdit.js:109
msgid "Edit directory storage {0}"
msgstr ""
#: ../www/manager/dc/OptionView.js:55
msgid "Edit keyboard settings"
msgstr ""
......@@ -132,6 +160,10 @@ msgstr ""
msgid "Edit language settings"
msgstr ""
#: ../www/manager/dc/StorageView.js:200 ../www/manager/storage/DirEdit.js:57
msgid "Enable"
msgstr ""
#: ../www/manager/node/Tasks.js:118 ../www/manager/dc/Tasks.js:69
msgid "End Time"
msgstr ""
......@@ -144,7 +176,7 @@ msgstr ""
msgid "Enter your user name"
msgstr ""
#: ../www/manager/window/LoginWindow.js:17
#: ../www/manager/window/LoginWindow.js:17 ../www/manager/window/Edit.js:87 ../www/manager/window/Edit.js:124
msgid "Error"
msgstr ""
......@@ -232,6 +264,10 @@ msgstr ""
msgid "No"
msgstr ""
#: ../www/manager/storage/DirEdit.js:73
msgid "No restrictions"
msgstr ""
#: ../www/manager/data/ResourceStore.js:153 ../www/manager/node/Config.js:60 ../www/manager/node/Tasks.js:126 ../www/manager/dc/Tasks.js:81 ../www/manager/dc/Log.js:50
msgid "Node"
msgstr ""
......@@ -240,6 +276,10 @@ msgstr ""
msgid "Node list"
msgstr ""
#: ../www/manager/storage/DirEdit.js:71
msgid "Nodes"
msgstr ""
#: ../www/manager/data/ResourceStore.js:48
msgid "Online"
msgstr ""
......@@ -280,7 +320,7 @@ msgstr ""
msgid "Reload"
msgstr ""
#: ../www/manager/qemu/Config.js:79 ../www/manager/openvz/Config.js:71
#: ../www/manager/dc/StorageView.js:60 ../www/manager/qemu/Config.js:79 ../www/manager/openvz/Config.js:71
msgid "Remove"
msgstr ""
......@@ -324,6 +364,10 @@ msgstr ""
msgid "Severity"
msgstr ""
#: ../www/manager/dc/StorageView.js:193 ../www/manager/storage/DirEdit.js:63
msgid "Shared"
msgstr ""
#: ../www/manager/node/Config.js:47 ../www/manager/VNCConsole.js:459
msgid "Shell"
msgstr ""
......@@ -384,7 +428,7 @@ msgstr ""
msgid "Time"
msgstr ""
#: ../www/manager/data/ResourceStore.js:33
#: ../www/manager/data/ResourceStore.js:33 ../www/manager/dc/StorageView.js:167
msgid "Type"
msgstr ""
......
......@@ -51,13 +51,13 @@ Ext.define('PVE.dc.StorageView', {
};
var edit_btn = new Ext.Button({
text: 'Edit',
text: gettext('Edit'),
disabled: true,
handler: run_editor
});
var remove_btn = new Ext.Button({
text: 'Remove',
text: gettext('Remove'),
disabled: true,
handler: function(){
var sm = me.getSelectionModel();
......@@ -67,10 +67,9 @@ Ext.define('PVE.dc.StorageView', {
return;
}
var msg = "Are you sure you want to remove storage: '" +
rec.data.storage + "'";
var msg = Ext.String.format(gettext('Are you sure you want to remove storage {0}?'), "'" + rec.data.storage + "'");
Ext.Msg.confirm('Deletion Confirmation', msg, function(btn) {
Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) {
if (btn !== 'yes') {
return;
}
......@@ -82,7 +81,7 @@ Ext.define('PVE.dc.StorageView', {
reload();
},
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: [
{
text: 'Add',
text: gettext('Add'),
menu: new Ext.menu.Menu({
items: [
{
......@@ -159,20 +158,20 @@ Ext.define('PVE.dc.StorageView', {
],
columns: [
{
header: 'Storage ID',
header: 'ID',
width: 100,
sortable: true,
dataIndex: 'storage'
},
{
header: 'Type',
header: gettext('Type'),
width: 60,
sortable: true,
dataIndex: 'type',
renderer: PVE.Utils.format_storage_type
},
{
header: 'Content',
header: gettext('Content'),
width: 150,
sortable: true,
dataIndex: 'content',
......@@ -191,14 +190,14 @@ Ext.define('PVE.dc.StorageView', {
}
},
{
header: 'Shared',
header: gettext('Shared'),
width: 80,
sortable: true,
dataIndex: 'shared',
renderer: PVE.Utils.format_boolean
},
{
header: 'Enable',
header: gettext('Enable'),
width: 80,
sortable: true,
dataIndex: 'disable',
......
......@@ -26,7 +26,7 @@ Ext.define('PVE.storage.DirInputPanel', {
name: 'storage',
height: 22, // hack: set same height as text fields
value: me.storageId || '',
fieldLabel: 'Storage ID',
fieldLabel: 'ID',
vtype: 'StorageId',
allowBlank: false
},
......@@ -35,7 +35,7 @@ Ext.define('PVE.storage.DirInputPanel', {
height: 22, // hack: set same height as text fields
name: 'path',
value: '',
fieldLabel: 'Directory',
fieldLabel: gettext('Directory'),
allowBlank: false
},
{
......@@ -43,7 +43,7 @@ Ext.define('PVE.storage.DirInputPanel', {
name: 'content',
value: 'images',
multiSelect: true,
fieldLabel: 'Content',
fieldLabel: gettext('Content'),
allowBlank: false
}
];
......@@ -54,13 +54,13 @@ Ext.define('PVE.storage.DirInputPanel', {
name: 'enable',
checked: true,
uncheckedValue: 0,
fieldLabel: 'Enable'
fieldLabel: gettext('Enable')
},
{
xtype: 'pvecheckbox',
name: 'shared',
uncheckedValue: 0,
fieldLabel: 'Shared'
fieldLabel: gettext('Shared')
}
];
......@@ -68,8 +68,9 @@ Ext.define('PVE.storage.DirInputPanel', {
me.column2.unshift({
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
});
......@@ -99,13 +100,16 @@ Ext.define('PVE.storage.DirEdit', {
create: me.create,
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();
if (!me.create) {
......
......@@ -84,7 +84,7 @@ Ext.define('PVE.window.Edit', {
if (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) {
me.close();
......@@ -121,7 +121,7 @@ Ext.define('PVE.window.Edit', {
});
},
failure: function(response, opts) {
Ext.Msg.alert('Error', response.htmlStatus, function() {
Ext.Msg.alert(gettext('Error'), response.htmlStatus, function() {
me.close();
});
}
......@@ -163,7 +163,7 @@ Ext.define('PVE.window.Edit', {
var form = me.formPanel.getForm();
var submitBtn = Ext.create('Ext.Button', {
text: me.create ? 'Create' : 'OK',
text: me.create ? gettext('Create') : gettext('OK'),
disabled: !me.create,
handler: function() {
me.submit();
......
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