Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
pve-manager
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
pve-manager
Commits
21712d7d
Commit
21712d7d
authored
Nov 25, 2011
by
Dietmar Maurer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add more gettext markers
parent
a2542cc9
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
204 additions
and
55 deletions
+204
-55
changelog.Debian
debian/changelog.Debian
+6
-0
defines.mk
defines.mk
+1
-1
de.po
po/de.po
+58
-10
fr.po
po/fr.po
+57
-9
messages.pot
po/messages.pot
+51
-7
StorageView.js
www/manager/dc/StorageView.js
+11
-12
DirEdit.js
www/manager/storage/DirEdit.js
+17
-13
Edit.js
www/manager/window/Edit.js
+3
-3
No files found.
debian/changelog.Debian
View file @
21712d7d
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
...
...
defines.mk
View file @
21712d7d
...
...
@@ -2,7 +2,7 @@ RELEASE=2.0
VERSION=2.0
PACKAGE=pve-manager
PACKAGERELEASE=1
0
PACKAGERELEASE=1
1
BINDIR=${DESTDIR}/usr/bin
PERLLIBDIR=${DESTDIR}/usr/share/perl5
...
...
po/de.po
View file @
21712d7d
...
...
@@ -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-2
3 10:16
+0100\n"
"POT-Creation-Date:
Thu Nov 24 13:10:49
2011\n"
"PO-Revision-Date: 2011-11-2
4 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:2
69 ../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:2
57 ../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"
...
...
po/fr.po
View file @
21712d7d
...
...
@@ -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:2
69 ../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:2
57 ../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 ""
...
...
po/messages.pot
View file @
21712d7d
...
...
@@ -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 ""
...
...
www/manager/dc/StorageView.js
View file @
21712d7d
...
...
@@ -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
'
,
...
...
www/manager/storage/DirEdit.js
View file @
21712d7d
...
...
@@ -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
});
...
...
@@ -100,11 +101,14 @@ Ext.define('PVE.storage.DirEdit', {
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
();
...
...
www/manager/window/Edit.js
View file @
21712d7d
...
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment