Commit 3e2b0561 authored by Dietmar Maurer's avatar Dietmar Maurer

add more gettext markers

And try to reduce number of different texts
parent 8f25b23b
This diff is collapsed.
...@@ -7,7 +7,7 @@ msgid "" ...@@ -7,7 +7,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: pve-manager 2.0\n" "Project-Id-Version: pve-manager 2.0\n"
"Report-Msgid-Bugs-To: <support@proxmox.com>\n" "Report-Msgid-Bugs-To: <support@proxmox.com>\n"
"POT-Creation-Date: Thu Dec 8 07:14:25 2011\n" "POT-Creation-Date: Thu Dec 8 08:36:37 2011\n"
"PO-Revision-Date: 2011-11-22 09:15+0100\n" "PO-Revision-Date: 2011-11-22 09:15+0100\n"
"Last-Translator: Proxmox Support Team <support@proxmox.com>\n" "Last-Translator: Proxmox Support Team <support@proxmox.com>\n"
"Language-Team: French\n" "Language-Team: French\n"
...@@ -17,7 +17,11 @@ msgstr "" ...@@ -17,7 +17,11 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#: ../www/manager/dc/StorageView.js:114 #: ../www/manager/storage/ContentView.js:87
msgid "Abort"
msgstr ""
#: ../www/manager/dc/StorageView.js:107
msgid "Add" msgid "Add"
msgstr "" msgstr ""
...@@ -37,8 +41,9 @@ msgid "" ...@@ -37,8 +41,9 @@ msgid ""
"data." "data."
msgstr "" msgstr ""
#: ../www/manager/dc/StorageView.js:70 #: ../www/manager/dc/StorageView.js:66 ../www/manager/dc/AuthView.js:52
msgid "Are you sure you want to remove storage {0}?" #: ../www/manager/storage/ContentView.js:260
msgid "Are you sure you want to remove entry {0}"
msgstr "" msgstr ""
#: ../www/manager/dc/Config.js:49 #: ../www/manager/dc/Config.js:49
...@@ -66,11 +71,15 @@ msgstr "" ...@@ -66,11 +71,15 @@ msgstr ""
msgid "Cluster log" msgid "Cluster log"
msgstr "" msgstr ""
#: ../www/manager/dc/StorageView.js:72 ../www/manager/qemu/CmdMenu.js:45 #: ../www/manager/dc/AuthView.js:100 ../www/manager/dc/AuthEdit.js:48
#: ../www/manager/button/Button.js:40 ../www/manager/VNCConsole.js:240 msgid "Comment"
#: ../www/manager/VNCConsole.js:252 ../www/manager/VNCConsole.js:269 msgstr ""
#: ../www/manager/VNCConsole.js:281 ../www/manager/VNCConsole.js:370
#: ../www/manager/VNCConsole.js:382 ../www/manager/openvz/CmdMenu.js:45 #: ../www/manager/qemu/CmdMenu.js:45 ../www/manager/button/Button.js:40
#: ../www/manager/VNCConsole.js:240 ../www/manager/VNCConsole.js:252
#: ../www/manager/VNCConsole.js:269 ../www/manager/VNCConsole.js:281
#: ../www/manager/VNCConsole.js:370 ../www/manager/VNCConsole.js:382
#: ../www/manager/openvz/CmdMenu.js:45
msgid "Confirm" msgid "Confirm"
msgstr "" msgstr ""
...@@ -80,10 +89,10 @@ msgstr "" ...@@ -80,10 +89,10 @@ msgstr ""
msgid "Connection error" msgid "Connection error"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:374 ../www/manager/qemu/Config.js:96 #: ../www/manager/Workspace.js:111 ../www/manager/Utils.js:374
#: ../www/manager/qemu/CmdMenu.js:55 ../www/manager/VNCConsole.js:297 #: ../www/manager/qemu/Config.js:96 ../www/manager/qemu/CmdMenu.js:55
#: ../www/manager/VNCConsole.js:393 ../www/manager/openvz/Config.js:88 #: ../www/manager/VNCConsole.js:297 ../www/manager/VNCConsole.js:393
#: ../www/manager/openvz/CmdMenu.js:55 #: ../www/manager/openvz/Config.js:88 ../www/manager/openvz/CmdMenu.js:55
msgid "Console" msgid "Console"
msgstr "" msgstr ""
...@@ -91,13 +100,14 @@ msgstr "" ...@@ -91,13 +100,14 @@ msgstr ""
msgid "Container {0} on node {1}" msgid "Container {0} on node {1}"
msgstr "" msgstr ""
#: ../www/manager/dc/StorageView.js:174 ../www/manager/storage/DirEdit.js:46 #: ../www/manager/dc/StorageView.js:167 ../www/manager/storage/DirEdit.js:46
#: ../www/manager/storage/ContentView.js:48
#: ../www/manager/storage/Browser.js:30 #: ../www/manager/storage/Browser.js:30
msgid "Content" msgid "Content"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:376 ../www/manager/Utils.js:386 #: ../www/manager/dc/AuthView.js:25 ../www/manager/Utils.js:376
#: ../www/manager/window/Edit.js:166 #: ../www/manager/Utils.js:386 ../www/manager/window/Edit.js:166
msgid "Create" msgid "Create"
msgstr "" msgstr ""
...@@ -125,11 +135,15 @@ msgstr "" ...@@ -125,11 +135,15 @@ msgstr ""
msgid "Create iSCSI storage" msgid "Create iSCSI storage"
msgstr "" msgstr ""
#: ../www/manager/dc/AuthEdit.js:112
msgid "Create realm"
msgstr ""
#: ../www/manager/tree/ResourceTree.js:185 ../www/manager/dc/Config.js:9 #: ../www/manager/tree/ResourceTree.js:185 ../www/manager/dc/Config.js:9
msgid "Datacenter" msgid "Datacenter"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:553 #: ../www/manager/dc/AuthEdit.js:54 ../www/manager/Utils.js:540
msgid "Default" msgid "Default"
msgstr "" msgstr ""
...@@ -185,7 +199,8 @@ msgstr "" ...@@ -185,7 +199,8 @@ msgstr ""
msgid "Do you really want to suspend VM {0}?" msgid "Do you really want to suspend VM {0}?"
msgstr "" msgstr ""
#: ../www/manager/dc/StorageView.js:54 ../www/manager/dc/OptionView.js:102 #: ../www/manager/dc/StorageView.js:55 ../www/manager/dc/AuthView.js:35
#: ../www/manager/dc/OptionView.js:102
msgid "Edit" msgid "Edit"
msgstr "" msgstr ""
...@@ -213,7 +228,11 @@ msgstr "" ...@@ -213,7 +228,11 @@ msgstr ""
msgid "Edit keyboard settings" msgid "Edit keyboard settings"
msgstr "" msgstr ""
#: ../www/manager/dc/StorageView.js:200 #: ../www/manager/dc/AuthEdit.js:114
msgid "Edit realm {0}"
msgstr ""
#: ../www/manager/dc/StorageView.js:193
#: ../www/manager/storage/IScsiEdit.js:135 #: ../www/manager/storage/IScsiEdit.js:135
#: ../www/manager/storage/LVMEdit.js:195 ../www/manager/storage/DirEdit.js:57 #: ../www/manager/storage/LVMEdit.js:195 ../www/manager/storage/DirEdit.js:57
#: ../www/manager/storage/NFSEdit.js:140 #: ../www/manager/storage/NFSEdit.js:140
...@@ -232,6 +251,10 @@ msgstr "" ...@@ -232,6 +251,10 @@ msgstr ""
msgid "Enter your user name" msgid "Enter your user name"
msgstr "" msgstr ""
#: ../www/manager/dc/AuthView.js:70 ../www/manager/storage/ContentView.js:73
#: ../www/manager/storage/ContentView.js:128
#: ../www/manager/storage/ContentView.js:137
#: ../www/manager/storage/ContentView.js:275 ../www/manager/VNCConsole.js:177
#: ../www/manager/window/LoginWindow.js:17 ../www/manager/window/Edit.js:87 #: ../www/manager/window/LoginWindow.js:17 ../www/manager/window/Edit.js:87
#: ../www/manager/window/Edit.js:124 #: ../www/manager/window/Edit.js:124
msgid "Error" msgid "Error"
...@@ -255,7 +278,7 @@ msgid "Form fields may not be submitted with invalid values" ...@@ -255,7 +278,7 @@ msgid "Form fields may not be submitted with invalid values"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:45 ../www/manager/Utils.js:50 #: ../www/manager/Utils.js:45 ../www/manager/Utils.js:50
#: ../www/manager/Utils.js:55 #: ../www/manager/Utils.js:55 ../www/manager/storage/ContentView.js:301
msgid "Format" msgid "Format"
msgstr "" msgstr ""
...@@ -313,6 +336,7 @@ msgid "Monitor" ...@@ -313,6 +336,7 @@ msgid "Monitor"
msgstr "" msgstr ""
#: ../www/manager/data/ResourceStore.js:96 #: ../www/manager/data/ResourceStore.js:96
#: ../www/manager/storage/ContentView.js:294
msgid "Name" msgid "Name"
msgstr "" msgstr ""
...@@ -320,7 +344,7 @@ msgstr "" ...@@ -320,7 +344,7 @@ msgstr ""
msgid "Network" msgid "Network"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:552 #: ../www/manager/Utils.js:538
msgid "No" msgid "No"
msgstr "" msgstr ""
...@@ -371,6 +395,10 @@ msgstr "" ...@@ -371,6 +395,10 @@ msgstr ""
msgid "Password" msgid "Password"
msgstr "" msgstr ""
#: ../www/manager/dc/ACLView.js:37
msgid "Path"
msgstr ""
#: ../www/manager/dc/Config.js:39 ../www/manager/storage/Browser.js:34 #: ../www/manager/dc/Config.js:39 ../www/manager/storage/Browser.js:34
#: ../www/manager/qemu/Config.js:137 ../www/manager/openvz/Config.js:146 #: ../www/manager/qemu/Config.js:137 ../www/manager/openvz/Config.js:146
msgid "Permissions" msgid "Permissions"
...@@ -381,10 +409,18 @@ msgstr "" ...@@ -381,10 +409,18 @@ msgstr ""
msgid "Please wait..." msgid "Please wait..."
msgstr "" msgstr ""
#: ../www/manager/dc/ACLView.js:56
msgid "Propagate"
msgstr ""
#: ../www/manager/window/LoginWindow.js:46 #: ../www/manager/window/LoginWindow.js:46
msgid "Proxmox VE Login" msgid "Proxmox VE Login"
msgstr "" msgstr ""
#: ../www/manager/dc/AuthView.js:87 ../www/manager/dc/AuthEdit.js:26
msgid "Realm"
msgstr ""
#: ../www/manager/VNCConsole.js:304 ../www/manager/VNCConsole.js:400 #: ../www/manager/VNCConsole.js:304 ../www/manager/VNCConsole.js:400
#: ../www/manager/VNCConsole.js:437 #: ../www/manager/VNCConsole.js:437
msgid "Refresh" msgid "Refresh"
...@@ -395,7 +431,8 @@ msgstr "" ...@@ -395,7 +431,8 @@ msgstr ""
msgid "Reload" msgid "Reload"
msgstr "" msgstr ""
#: ../www/manager/dc/StorageView.js:60 ../www/manager/qemu/Config.js:79 #: ../www/manager/dc/StorageView.js:62 ../www/manager/dc/AuthView.js:49
#: ../www/manager/storage/ContentView.js:256 ../www/manager/qemu/Config.js:79
#: ../www/manager/openvz/Config.js:71 #: ../www/manager/openvz/Config.js:71
msgid "Remove" msgid "Remove"
msgstr "" msgstr ""
...@@ -414,6 +451,7 @@ msgid "Restart" ...@@ -414,6 +451,7 @@ msgid "Restart"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:377 ../www/manager/Utils.js:387 #: ../www/manager/Utils.js:377 ../www/manager/Utils.js:387
#: ../www/manager/storage/ContentView.js:228
msgid "Restore" msgid "Restore"
msgstr "" msgstr ""
...@@ -421,6 +459,10 @@ msgstr "" ...@@ -421,6 +459,10 @@ msgstr ""
msgid "Resume" msgid "Resume"
msgstr "" msgstr ""
#: ../www/manager/dc/ACLView.js:50
msgid "Role"
msgstr ""
#: ../www/manager/dc/Config.js:44 #: ../www/manager/dc/Config.js:44
msgid "Roles" msgid "Roles"
msgstr "" msgstr ""
...@@ -430,10 +472,22 @@ msgstr "" ...@@ -430,10 +472,22 @@ msgstr ""
msgid "Search" msgid "Search"
msgstr "" msgstr ""
#: ../www/manager/storage/ContentView.js:55
msgid "Select File..."
msgstr ""
#: ../www/manager/storage/NFSEdit.js:95 #: ../www/manager/storage/NFSEdit.js:95
msgid "Server" msgid "Server"
msgstr "" msgstr ""
#: ../www/manager/dc/AuthEdit.js:71
msgid "Server Address"
msgstr ""
#: ../www/manager/dc/AuthEdit.js:85
msgid "Server Port"
msgstr ""
#: ../www/manager/form/ViewSelector.js:11 #: ../www/manager/form/ViewSelector.js:11
msgid "Server View" msgid "Server View"
msgstr "" msgstr ""
...@@ -450,7 +504,7 @@ msgstr "" ...@@ -450,7 +504,7 @@ msgstr ""
msgid "Severity" msgid "Severity"
msgstr "" msgstr ""
#: ../www/manager/dc/StorageView.js:193 ../www/manager/storage/LVMEdit.js:201 #: ../www/manager/dc/StorageView.js:186 ../www/manager/storage/LVMEdit.js:201
#: ../www/manager/storage/DirEdit.js:63 #: ../www/manager/storage/DirEdit.js:63
msgid "Shared" msgid "Shared"
msgstr "" msgstr ""
...@@ -467,6 +521,10 @@ msgstr "" ...@@ -467,6 +521,10 @@ msgstr ""
msgid "Shutdown" msgid "Shutdown"
msgstr "" msgstr ""
#: ../www/manager/storage/ContentView.js:306
msgid "Size"
msgstr ""
#: ../www/manager/Utils.js:380 ../www/manager/Utils.js:390 #: ../www/manager/Utils.js:380 ../www/manager/Utils.js:390
#: ../www/manager/Utils.js:392 ../www/manager/qemu/Config.js:36 #: ../www/manager/Utils.js:392 ../www/manager/qemu/Config.js:36
#: ../www/manager/qemu/CmdMenu.js:34 ../www/manager/VNCConsole.js:231 #: ../www/manager/qemu/CmdMenu.js:34 ../www/manager/VNCConsole.js:231
...@@ -528,14 +586,28 @@ msgid "Time" ...@@ -528,14 +586,28 @@ msgid "Time"
msgstr "" msgstr ""
#: ../www/manager/data/ResourceStore.js:33 #: ../www/manager/data/ResourceStore.js:33
#: ../www/manager/dc/StorageView.js:167 #: ../www/manager/dc/StorageView.js:160 ../www/manager/dc/AuthView.js:93
msgid "Type" msgid "Type"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:539
msgid "Unknown"
msgstr ""
#: ../www/manager/Utils.js:251 #: ../www/manager/Utils.js:251
msgid "Unknown error" msgid "Unknown error"
msgstr "" msgstr ""
#: ../www/manager/storage/ContentView.js:95
#: ../www/manager/storage/ContentView.js:159
#: ../www/manager/storage/ContentView.js:281
msgid "Upload"
msgstr ""
#: ../www/manager/storage/ContentView.js:67
msgid "Uploading file..."
msgstr ""
#: ../www/manager/data/ResourceStore.js:146 #: ../www/manager/data/ResourceStore.js:146
msgid "Uptime" msgid "Uptime"
msgstr "" msgstr ""
...@@ -544,6 +616,10 @@ msgstr "" ...@@ -544,6 +616,10 @@ msgstr ""
msgid "Use LUNs directly" msgid "Use LUNs directly"
msgstr "" msgstr ""
#: ../www/manager/dc/ACLView.js:43
msgid "User"
msgstr ""
#: ../www/manager/node/Tasks.js:82 ../www/manager/node/Tasks.js:131 #: ../www/manager/node/Tasks.js:82 ../www/manager/node/Tasks.js:131
#: ../www/manager/dc/Tasks.js:86 ../www/manager/dc/Log.js:65 #: ../www/manager/dc/Tasks.js:86 ../www/manager/dc/Log.js:65
#: ../www/manager/window/LoginWindow.js:65 #: ../www/manager/window/LoginWindow.js:65
...@@ -554,6 +630,10 @@ msgstr "" ...@@ -554,6 +630,10 @@ msgstr ""
msgid "Users" msgid "Users"
msgstr "" msgstr ""
#: ../www/manager/Workspace.js:303
msgid "Version"
msgstr ""
#: ../www/manager/node/Tasks.js:57 #: ../www/manager/node/Tasks.js:57
msgid "View" msgid "View"
msgstr "" msgstr ""
...@@ -570,10 +650,18 @@ msgstr "" ...@@ -570,10 +650,18 @@ msgstr ""
msgid "Volume group" msgid "Volume group"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:551 #: ../www/manager/Utils.js:537
msgid "Yes" msgid "Yes"
msgstr "" msgstr ""
#: ../www/manager/Workspace.js:219 #: ../www/manager/Workspace.js:219
msgid "You are logged in as {0}" msgid "You are logged in as {0}"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:542
msgid "day"
msgstr ""
#: ../www/manager/Utils.js:541
msgid "days"
msgstr ""
This diff is collapsed.
...@@ -8,7 +8,7 @@ msgid "" ...@@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: pve-manager 2.0\n" "Project-Id-Version: pve-manager 2.0\n"
"Report-Msgid-Bugs-To: <support@proxmox.com>\n" "Report-Msgid-Bugs-To: <support@proxmox.com>\n"
"POT-Creation-Date: Thu Dec 8 07:14:25 2011\n" "POT-Creation-Date: Thu Dec 8 08:36:37 2011\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <support@proxmox.com>\n" "Language-Team: LANGUAGE <support@proxmox.com>\n"
...@@ -16,7 +16,11 @@ msgstr "" ...@@ -16,7 +16,11 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n" "Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: ../www/manager/dc/StorageView.js:114 #: ../www/manager/storage/ContentView.js:87
msgid "Abort"
msgstr ""
#: ../www/manager/dc/StorageView.js:107
msgid "Add" msgid "Add"
msgstr "" msgstr ""
...@@ -32,8 +36,8 @@ msgstr "" ...@@ -32,8 +36,8 @@ msgstr ""
msgid "Are you sure you want to remove VM {0}? This will permanently erase all VM data." msgid "Are you sure you want to remove VM {0}? This will permanently erase all VM data."
msgstr "" msgstr ""
#: ../www/manager/dc/StorageView.js:70 #: ../www/manager/dc/StorageView.js:66 ../www/manager/dc/AuthView.js:52 ../www/manager/storage/ContentView.js:260
msgid "Are you sure you want to remove storage {0}?" msgid "Are you sure you want to remove entry {0}"
msgstr "" msgstr ""
#: ../www/manager/dc/Config.js:49 #: ../www/manager/dc/Config.js:49
...@@ -60,7 +64,11 @@ msgstr "" ...@@ -60,7 +64,11 @@ msgstr ""
msgid "Cluster log" msgid "Cluster log"
msgstr "" msgstr ""
#: ../www/manager/dc/StorageView.js:72 ../www/manager/qemu/CmdMenu.js:45 ../www/manager/button/Button.js:40 ../www/manager/VNCConsole.js:240 ../www/manager/VNCConsole.js:252 ../www/manager/VNCConsole.js:269 ../www/manager/VNCConsole.js:281 ../www/manager/VNCConsole.js:370 ../www/manager/VNCConsole.js:382 ../www/manager/openvz/CmdMenu.js:45 #: ../www/manager/dc/AuthView.js:100 ../www/manager/dc/AuthEdit.js:48
msgid "Comment"
msgstr ""
#: ../www/manager/qemu/CmdMenu.js:45 ../www/manager/button/Button.js:40 ../www/manager/VNCConsole.js:240 ../www/manager/VNCConsole.js:252 ../www/manager/VNCConsole.js:269 ../www/manager/VNCConsole.js:281 ../www/manager/VNCConsole.js:370 ../www/manager/VNCConsole.js:382 ../www/manager/openvz/CmdMenu.js:45
msgid "Confirm" msgid "Confirm"
msgstr "" msgstr ""
...@@ -68,7 +76,7 @@ msgstr "" ...@@ -68,7 +76,7 @@ msgstr ""
msgid "Connection error" msgid "Connection error"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:374 ../www/manager/qemu/Config.js:96 ../www/manager/qemu/CmdMenu.js:55 ../www/manager/VNCConsole.js:297 ../www/manager/VNCConsole.js:393 ../www/manager/openvz/Config.js:88 ../www/manager/openvz/CmdMenu.js:55 #: ../www/manager/Workspace.js:111 ../www/manager/Utils.js:374 ../www/manager/qemu/Config.js:96 ../www/manager/qemu/CmdMenu.js:55 ../www/manager/VNCConsole.js:297 ../www/manager/VNCConsole.js:393 ../www/manager/openvz/Config.js:88 ../www/manager/openvz/CmdMenu.js:55
msgid "Console" msgid "Console"
msgstr "" msgstr ""
...@@ -76,11 +84,11 @@ msgstr "" ...@@ -76,11 +84,11 @@ msgstr ""
msgid "Container {0} on node {1}" msgid "Container {0} on node {1}"
msgstr "" msgstr ""
#: ../www/manager/dc/StorageView.js:174 ../www/manager/storage/DirEdit.js:46 ../www/manager/storage/Browser.js:30 #: ../www/manager/dc/StorageView.js:167 ../www/manager/storage/DirEdit.js:46 ../www/manager/storage/ContentView.js:48 ../www/manager/storage/Browser.js:30
msgid "Content" msgid "Content"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:376 ../www/manager/Utils.js:386 ../www/manager/window/Edit.js:166 #: ../www/manager/dc/AuthView.js:25 ../www/manager/Utils.js:376 ../www/manager/Utils.js:386 ../www/manager/window/Edit.js:166
msgid "Create" msgid "Create"
msgstr "" msgstr ""
...@@ -108,11 +116,15 @@ msgstr "" ...@@ -108,11 +116,15 @@ msgstr ""
msgid "Create iSCSI storage" msgid "Create iSCSI storage"
msgstr "" msgstr ""
#: ../www/manager/dc/AuthEdit.js:112
msgid "Create realm"
msgstr ""
#: ../www/manager/tree/ResourceTree.js:185 ../www/manager/dc/Config.js:9 #: ../www/manager/tree/ResourceTree.js:185 ../www/manager/dc/Config.js:9
msgid "Datacenter" msgid "Datacenter"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:553 #: ../www/manager/dc/AuthEdit.js:54 ../www/manager/Utils.js:540
msgid "Default" msgid "Default"
msgstr "" msgstr ""
...@@ -164,7 +176,7 @@ msgstr "" ...@@ -164,7 +176,7 @@ msgstr ""
msgid "Do you really want to suspend VM {0}?" msgid "Do you really want to suspend VM {0}?"
msgstr "" msgstr ""
#: ../www/manager/dc/StorageView.js:54 ../www/manager/dc/OptionView.js:102 #: ../www/manager/dc/StorageView.js:55 ../www/manager/dc/AuthView.js:35 ../www/manager/dc/OptionView.js:102
msgid "Edit" msgid "Edit"
msgstr "" msgstr ""
...@@ -192,7 +204,11 @@ msgstr "" ...@@ -192,7 +204,11 @@ msgstr ""
msgid "Edit keyboard settings" msgid "Edit keyboard settings"
msgstr "" msgstr ""
#: ../www/manager/dc/StorageView.js:200 ../www/manager/storage/IScsiEdit.js:135 ../www/manager/storage/LVMEdit.js:195 ../www/manager/storage/DirEdit.js:57 ../www/manager/storage/NFSEdit.js:140 #: ../www/manager/dc/AuthEdit.js:114
msgid "Edit realm {0}"
msgstr ""
#: ../www/manager/dc/StorageView.js:193 ../www/manager/storage/IScsiEdit.js:135 ../www/manager/storage/LVMEdit.js:195 ../www/manager/storage/DirEdit.js:57 ../www/manager/storage/NFSEdit.js:140
msgid "Enable" msgid "Enable"
msgstr "" msgstr ""
...@@ -208,7 +224,7 @@ msgstr "" ...@@ -208,7 +224,7 @@ msgstr ""
msgid "Enter your user name" msgid "Enter your user name"
msgstr "" msgstr ""
#: ../www/manager/window/LoginWindow.js:17 ../www/manager/window/Edit.js:87 ../www/manager/window/Edit.js:124 #: ../www/manager/dc/AuthView.js:70 ../www/manager/storage/ContentView.js:73 ../www/manager/storage/ContentView.js:128 ../www/manager/storage/ContentView.js:137 ../www/manager/storage/ContentView.js:275 ../www/manager/VNCConsole.js:177 ../www/manager/window/LoginWindow.js:17 ../www/manager/window/Edit.js:87 ../www/manager/window/Edit.js:124
msgid "Error" msgid "Error"
msgstr "" msgstr ""
...@@ -228,7 +244,7 @@ msgstr "" ...@@ -228,7 +244,7 @@ msgstr ""
msgid "Form fields may not be submitted with invalid values" msgid "Form fields may not be submitted with invalid values"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:45 ../www/manager/Utils.js:50 ../www/manager/Utils.js:55 #: ../www/manager/Utils.js:45 ../www/manager/Utils.js:50 ../www/manager/Utils.js:55 ../www/manager/storage/ContentView.js:301
msgid "Format" msgid "Format"
msgstr "" msgstr ""
...@@ -284,7 +300,7 @@ msgstr "" ...@@ -284,7 +300,7 @@ msgstr ""
msgid "Monitor" msgid "Monitor"
msgstr "" msgstr ""
#: ../www/manager/data/ResourceStore.js:96 #: ../www/manager/data/ResourceStore.js:96 ../www/manager/storage/ContentView.js:294
msgid "Name" msgid "Name"
msgstr "" msgstr ""
...@@ -292,7 +308,7 @@ msgstr "" ...@@ -292,7 +308,7 @@ msgstr ""
msgid "Network" msgid "Network"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:552 #: ../www/manager/Utils.js:538
msgid "No" msgid "No"
msgstr "" msgstr ""
...@@ -336,6 +352,10 @@ msgstr "" ...@@ -336,6 +352,10 @@ msgstr ""
msgid "Password" msgid "Password"
msgstr "" msgstr ""
#: ../www/manager/dc/ACLView.js:37
msgid "Path"
msgstr ""
#: ../www/manager/dc/Config.js:39 ../www/manager/storage/Browser.js:34 ../www/manager/qemu/Config.js:137 ../www/manager/openvz/Config.js:146 #: ../www/manager/dc/Config.js:39 ../www/manager/storage/Browser.js:34 ../www/manager/qemu/Config.js:137 ../www/manager/openvz/Config.js:146
msgid "Permissions" msgid "Permissions"
msgstr "" msgstr ""
...@@ -344,10 +364,18 @@ msgstr "" ...@@ -344,10 +364,18 @@ msgstr ""
msgid "Please wait..." msgid "Please wait..."
msgstr "" msgstr ""
#: ../www/manager/dc/ACLView.js:56
msgid "Propagate"
msgstr ""
#: ../www/manager/window/LoginWindow.js:46 #: ../www/manager/window/LoginWindow.js:46
msgid "Proxmox VE Login" msgid "Proxmox VE Login"
msgstr "" msgstr ""
#: ../www/manager/dc/AuthView.js:87 ../www/manager/dc/AuthEdit.js:26
msgid "Realm"
msgstr ""
#: ../www/manager/VNCConsole.js:304 ../www/manager/VNCConsole.js:400 ../www/manager/VNCConsole.js:437 #: ../www/manager/VNCConsole.js:304 ../www/manager/VNCConsole.js:400 ../www/manager/VNCConsole.js:437
msgid "Refresh" msgid "Refresh"
msgstr "" msgstr ""
...@@ -356,7 +384,7 @@ msgstr "" ...@@ -356,7 +384,7 @@ msgstr ""
msgid "Reload" msgid "Reload"
msgstr "" msgstr ""
#: ../www/manager/dc/StorageView.js:60 ../www/manager/qemu/Config.js:79 ../www/manager/openvz/Config.js:71 #: ../www/manager/dc/StorageView.js:62 ../www/manager/dc/AuthView.js:49 ../www/manager/storage/ContentView.js:256 ../www/manager/qemu/Config.js:79 ../www/manager/openvz/Config.js:71
msgid "Remove" msgid "Remove"
msgstr "" msgstr ""
...@@ -372,7 +400,7 @@ msgstr "" ...@@ -372,7 +400,7 @@ msgstr ""
msgid "Restart" msgid "Restart"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:377 ../www/manager/Utils.js:387 #: ../www/manager/Utils.js:377 ../www/manager/Utils.js:387 ../www/manager/storage/ContentView.js:228
msgid "Restore" msgid "Restore"
msgstr "" msgstr ""
...@@ -380,6 +408,10 @@ msgstr "" ...@@ -380,6 +408,10 @@ msgstr ""
msgid "Resume" msgid "Resume"
msgstr "" msgstr ""
#: ../www/manager/dc/ACLView.js:50
msgid "Role"
msgstr ""
#: ../www/manager/dc/Config.js:44 #: ../www/manager/dc/Config.js:44
msgid "Roles" msgid "Roles"
msgstr "" msgstr ""
...@@ -388,10 +420,22 @@ msgstr "" ...@@ -388,10 +420,22 @@ msgstr ""
msgid "Search" msgid "Search"
msgstr "" msgstr ""
#: ../www/manager/storage/ContentView.js:55
msgid "Select File..."
msgstr ""
#: ../www/manager/storage/NFSEdit.js:95 #: ../www/manager/storage/NFSEdit.js:95
msgid "Server" msgid "Server"
msgstr "" msgstr ""
#: ../www/manager/dc/AuthEdit.js:71
msgid "Server Address"
msgstr ""
#: ../www/manager/dc/AuthEdit.js:85
msgid "Server Port"
msgstr ""
#: ../www/manager/form/ViewSelector.js:11 #: ../www/manager/form/ViewSelector.js:11
msgid "Server View" msgid "Server View"
msgstr "" msgstr ""
...@@ -408,7 +452,7 @@ msgstr "" ...@@ -408,7 +452,7 @@ msgstr ""
msgid "Severity" msgid "Severity"
msgstr "" msgstr ""
#: ../www/manager/dc/StorageView.js:193 ../www/manager/storage/LVMEdit.js:201 ../www/manager/storage/DirEdit.js:63 #: ../www/manager/dc/StorageView.js:186 ../www/manager/storage/LVMEdit.js:201 ../www/manager/storage/DirEdit.js:63
msgid "Shared" msgid "Shared"
msgstr "" msgstr ""
...@@ -420,6 +464,10 @@ msgstr "" ...@@ -420,6 +464,10 @@ msgstr ""
msgid "Shutdown" msgid "Shutdown"
msgstr "" msgstr ""
#: ../www/manager/storage/ContentView.js:306
msgid "Size"
msgstr ""
#: ../www/manager/Utils.js:380 ../www/manager/Utils.js:390 ../www/manager/Utils.js:392 ../www/manager/qemu/Config.js:36 ../www/manager/qemu/CmdMenu.js:34 ../www/manager/VNCConsole.js:231 ../www/manager/VNCConsole.js:361 ../www/manager/openvz/Config.js:36 ../www/manager/openvz/CmdMenu.js:34 #: ../www/manager/Utils.js:380 ../www/manager/Utils.js:390 ../www/manager/Utils.js:392 ../www/manager/qemu/Config.js:36 ../www/manager/qemu/CmdMenu.js:34 ../www/manager/VNCConsole.js:231 ../www/manager/VNCConsole.js:361 ../www/manager/openvz/Config.js:36 ../www/manager/openvz/CmdMenu.js:34
msgid "Start" msgid "Start"
msgstr "" msgstr ""
...@@ -472,14 +520,26 @@ msgstr "" ...@@ -472,14 +520,26 @@ msgstr ""
msgid "Time" msgid "Time"
msgstr "" msgstr ""
#: ../www/manager/data/ResourceStore.js:33 ../www/manager/dc/StorageView.js:167 #: ../www/manager/data/ResourceStore.js:33 ../www/manager/dc/StorageView.js:160 ../www/manager/dc/AuthView.js:93
msgid "Type" msgid "Type"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:539
msgid "Unknown"
msgstr ""
#: ../www/manager/Utils.js:251 #: ../www/manager/Utils.js:251
msgid "Unknown error" msgid "Unknown error"
msgstr "" msgstr ""
#: ../www/manager/storage/ContentView.js:95 ../www/manager/storage/ContentView.js:159 ../www/manager/storage/ContentView.js:281
msgid "Upload"
msgstr ""
#: ../www/manager/storage/ContentView.js:67
msgid "Uploading file..."
msgstr ""
#: ../www/manager/data/ResourceStore.js:146 #: ../www/manager/data/ResourceStore.js:146
msgid "Uptime" msgid "Uptime"
msgstr "" msgstr ""
...@@ -488,6 +548,10 @@ msgstr "" ...@@ -488,6 +548,10 @@ msgstr ""
msgid "Use LUNs directly" msgid "Use LUNs directly"
msgstr "" msgstr ""
#: ../www/manager/dc/ACLView.js:43
msgid "User"
msgstr ""
#: ../www/manager/node/Tasks.js:82 ../www/manager/node/Tasks.js:131 ../www/manager/dc/Tasks.js:86 ../www/manager/dc/Log.js:65 ../www/manager/window/LoginWindow.js:65 #: ../www/manager/node/Tasks.js:82 ../www/manager/node/Tasks.js:131 ../www/manager/dc/Tasks.js:86 ../www/manager/dc/Log.js:65 ../www/manager/window/LoginWindow.js:65
msgid "User name" msgid "User name"
msgstr "" msgstr ""
...@@ -496,6 +560,10 @@ msgstr "" ...@@ -496,6 +560,10 @@ msgstr ""
msgid "Users" msgid "Users"
msgstr "" msgstr ""
#: ../www/manager/Workspace.js:303
msgid "Version"
msgstr ""
#: ../www/manager/node/Tasks.js:57 #: ../www/manager/node/Tasks.js:57
msgid "View" msgid "View"
msgstr "" msgstr ""
...@@ -512,7 +580,7 @@ msgstr "" ...@@ -512,7 +580,7 @@ msgstr ""
msgid "Volume group" msgid "Volume group"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:551 #: ../www/manager/Utils.js:537
msgid "Yes" msgid "Yes"
msgstr "" msgstr ""
...@@ -520,3 +588,11 @@ msgstr "" ...@@ -520,3 +588,11 @@ msgstr ""
msgid "You are logged in as {0}" msgid "You are logged in as {0}"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:542
msgid "day"
msgstr ""
#: ../www/manager/Utils.js:541
msgid "days"
msgstr ""
...@@ -189,7 +189,7 @@ Ext.define('PVE.Utils', { statics: { ...@@ -189,7 +189,7 @@ Ext.define('PVE.Utils', { statics: {
render_language: function (value) { render_language: function (value) {
if (!value) { if (!value) {
return 'Default (English)'; return PVE.Utils.defaultText + ' (English)';
} }
var text = PVE.Utils.language_map[value]; var text = PVE.Utils.language_map[value];
if (text) { if (text) {
...@@ -506,7 +506,7 @@ Ext.define('PVE.Utils', { statics: { ...@@ -506,7 +506,7 @@ Ext.define('PVE.Utils', { statics: {
ut_str = ut_str.substr(ut_str.length - 2); ut_str = ut_str.substr(ut_str.length - 2);
if (days) { if (days) {
var ds = days > 1 ? 'days' : 'day'; var ds = days > 1 ? PVE.Utils.daysText : PVE.Utils.dayText;
return days.toString() + ' ' + ds + ' ' + return days.toString() + ' ' + ds + ' ' +
hours_str + ':' + mins_str + ':' + ut_str; hours_str + ':' + mins_str + ':' + ut_str;
} else { } else {
...@@ -534,6 +534,13 @@ Ext.define('PVE.Utils', { statics: { ...@@ -534,6 +534,13 @@ Ext.define('PVE.Utils', { statics: {
return days.toFixed(0) + 'd'; return days.toFixed(0) + 'd';
}, },
yesText: gettext('Yes'),
noText: gettext('No'),
unknownText: gettext('Unknown'),
defaultText: gettext('Default'),
daysText: gettext('days'),
dayText: gettext('day'),
format_storage_type: function(value) { format_storage_type: function(value) {
if (value === 'dir') { if (value === 'dir') {
return 'Directory'; return 'Directory';
...@@ -544,14 +551,10 @@ Ext.define('PVE.Utils', { statics: { ...@@ -544,14 +551,10 @@ Ext.define('PVE.Utils', { statics: {
} else if (value === 'iscsi') { } else if (value === 'iscsi') {
return 'iSCSI'; return 'iSCSI';
} else { } else {
return 'unknown'; return PVE.Utils.unknownText;
} }
}, },
yesText: gettext('Yes'),
noText: gettext('No'),
defaultText: gettext('Default'),
format_boolean_with_default: function(value) { format_boolean_with_default: function(value) {
if (Ext.isDefined(value) && value !== '') { if (Ext.isDefined(value) && value !== '') {
return value ? PVE.Utils.yesText : PVE.Utils.noText; return value ? PVE.Utils.yesText : PVE.Utils.noText;
......
...@@ -174,7 +174,7 @@ Ext.define('PVE.VNCConsole', { ...@@ -174,7 +174,7 @@ Ext.define('PVE.VNCConsole', {
params: me.params, params: me.params,
method: me.method || 'POST', method: me.method || 'POST',
failure: function(response, opts) { failure: function(response, opts) {
box.update("Error " + response.htmlStatus); box.update(gettext('Error') + ' ' + response.htmlStatus);
}, },
success: function(response, opts) { success: function(response, opts) {
start_vnc_viewer(response.result.data); start_vnc_viewer(response.result.data);
......
...@@ -108,7 +108,7 @@ Ext.define('PVE.ConsoleWorkspace', { ...@@ -108,7 +108,7 @@ Ext.define('PVE.ConsoleWorkspace', {
alias: ['widget.pveConsoleWorkspace'], alias: ['widget.pveConsoleWorkspace'],
title: 'Proxmox Console', title: gettext('Console'),
initComponent : function() { initComponent : function() {
var me = this; var me = this;
...@@ -142,7 +142,7 @@ Ext.define('PVE.ConsoleWorkspace', { ...@@ -142,7 +142,7 @@ Ext.define('PVE.ConsoleWorkspace', {
toplevel: true toplevel: true
}; };
} else if (consoleType === 'shell') { } else if (consoleType === 'shell') {
me.title = "node '" + param.node + "' - Proxmox Shell"; me.title = "node '" + param.node;
content = { content = {
xtype: 'pveShell', xtype: 'pveShell',
nodename: param.node, nodename: param.node,
...@@ -300,7 +300,7 @@ Ext.define('PVE.StdWorkspace', { ...@@ -300,7 +300,7 @@ Ext.define('PVE.StdWorkspace', {
{ {
minWidth: 200, minWidth: 200,
flex: 1, flex: 1,
html: '<span class="x-panel-header-text">Proxmox Virtual Environment<br>Version ' + PVE.GUIVersion + "</span>" html: '<span class="x-panel-header-text">Proxmox Virtual Environment<br>' + gettext('Version') + ' ' + PVE.GUIVersion + "</span>"
}, },
{ {
pack: 'end', pack: 'end',
......
...@@ -34,26 +34,26 @@ Ext.define('PVE.dc.ACLView', { ...@@ -34,26 +34,26 @@ Ext.define('PVE.dc.ACLView', {
}, },
columns: [ columns: [
{ {
header: 'Path', header: gettext('Path'),
width: 200, width: 200,
sortable: true, sortable: true,
dataIndex: 'path' dataIndex: 'path'
}, },
{ {
header: 'User/Group', header: gettext('User') + '/' + gettext('Group'),
width: 200, width: 200,
sortable: true, sortable: true,
renderer: render_ugid, renderer: render_ugid,
dataIndex: 'ugid' dataIndex: 'ugid'
}, },
{ {
header: 'Role', header: gettext('Role'),
width: 150, width: 150,
sortable: true, sortable: true,
dataIndex: 'roleid' dataIndex: 'roleid'
}, },
{ {
header: 'Propagate', header: gettext('Propagate'),
width: 80, width: 80,
sortable: true, sortable: true,
dataIndex: 'propagate' dataIndex: 'propagate'
......
...@@ -23,7 +23,7 @@ Ext.define('PVE.dc.AuthEdit', { ...@@ -23,7 +23,7 @@ Ext.define('PVE.dc.AuthEdit', {
{ {
xtype: me.create ? 'textfield' : 'displayfield', xtype: me.create ? 'textfield' : 'displayfield',
name: 'realm', name: 'realm',
fieldLabel: 'Realm', fieldLabel: gettext('Realm'),
value: me.realm, value: me.realm,
emptyText: 'company.net', emptyText: 'company.net',
allowBlank: false allowBlank: false
...@@ -45,13 +45,13 @@ Ext.define('PVE.dc.AuthEdit', { ...@@ -45,13 +45,13 @@ Ext.define('PVE.dc.AuthEdit', {
{ {
xtype: 'textfield', xtype: 'textfield',
name: 'comment', name: 'comment',
fieldLabel: 'Comment', fieldLabel: gettext('Comment'),
emptyText: 'Enterprise Directory Server', emptyText: 'Enterprise Directory Server',
allowBlank: false allowBlank: false
}, },
{ {
xtype: 'pvecheckbox', xtype: 'pvecheckbox',
fieldLabel: 'Default Realm', fieldLabel: gettext('Default'),
name: 'default', name: 'default',
uncheckedValue: 0 uncheckedValue: 0
} }
...@@ -68,7 +68,7 @@ Ext.define('PVE.dc.AuthEdit', { ...@@ -68,7 +68,7 @@ Ext.define('PVE.dc.AuthEdit', {
}), }),
{ {
xtype: 'textfield', xtype: 'textfield',
fieldLabel: 'Server Address', fieldLabel: gettext('Server Address'),
name: 'servers', name: 'servers',
emptyText: '192.168.2.23,ldap.company.net', emptyText: '192.168.2.23,ldap.company.net',
listeners: { listeners: {
...@@ -82,7 +82,7 @@ Ext.define('PVE.dc.AuthEdit', { ...@@ -82,7 +82,7 @@ Ext.define('PVE.dc.AuthEdit', {
{ {
xtype: 'numberfield', xtype: 'numberfield',
name: 'port', name: 'port',
fieldLabel: 'Server Port', fieldLabel: gettext('Server Port'),
minValue: 1, minValue: 1,
maxValue: 65535, maxValue: 65535,
allowBlank: false allowBlank: false
...@@ -108,8 +108,13 @@ Ext.define('PVE.dc.AuthEdit', { ...@@ -108,8 +108,13 @@ Ext.define('PVE.dc.AuthEdit', {
} }
}); });
Ext.applyIf(me, { if (me.create) {
title: me.create ? "Create Auth" : "Edit Auth '" + me.realm + "'", me.title = gettext('Create realm');
} else {
me.title = Ext.String.format(gettext('Edit realm {0}'), "'" + me.realm + "'");
}
Ext.applyIf(me, {
url: url, url: url,
method: method, method: method,
items: [ ipanel ] items: [ ipanel ]
......
...@@ -18,9 +18,11 @@ Ext.define('PVE.dc.AuthView', { ...@@ -18,9 +18,11 @@ Ext.define('PVE.dc.AuthView', {
store.load(); store.load();
}; };
var sm = Ext.create('Ext.selection.RowModel', {});
var tbar = [ var tbar = [
{ {
text: 'Create', text: gettext('Create'),
handler: function() { handler: function() {
var win = Ext.create('PVE.dc.AuthEdit',{ var win = Ext.create('PVE.dc.AuthEdit',{
}); });
...@@ -29,14 +31,10 @@ Ext.define('PVE.dc.AuthView', { ...@@ -29,14 +31,10 @@ Ext.define('PVE.dc.AuthView', {
} }
}, },
{ {
text: 'Modify', xtype: 'pveButton',
handler: function() { text: gettext('Edit'),
var sm = me.getSelectionModel(); selModel: sm,
var rec = sm.getSelection()[0]; handler: function(btn, event, rec) {
if (!rec) {
return;
}
var realm = rec.data.realm; var realm = rec.data.realm;
var win = Ext.create('PVE.dc.AuthEdit',{ var win = Ext.create('PVE.dc.AuthEdit',{
...@@ -47,46 +45,38 @@ Ext.define('PVE.dc.AuthView', { ...@@ -47,46 +45,38 @@ Ext.define('PVE.dc.AuthView', {
} }
}, },
{ {
text: 'Delete', xtype: 'pveButton',
handler: function() { text: gettext('Remove'),
var msg; selModel: sm,
var sm = me.getSelectionModel(); confirmMsg: function (rec) {
var rec = sm.getSelection()[0]; return Ext.String.format(gettext('Are you sure you want to remove entry {0}'),
if (!rec) { "'" + rec.data.realm + "'");
return; },
} enableFn: function(rec) {
var realm = rec.data.realm;
return realm !== 'pam' && realm != 'pve';
},
handler: function(btn, event, rec) {
var realm = rec.data.realm; var realm = rec.data.realm;
if (realm !== 'pam' && realm != 'pve') { PVE.Utils.API2Request({
msg = 'Are you sure you want to permanently the authentication realm: ' + realm; url: '/access/domains/' + realm,
Ext.Msg.confirm('Deletion Confirmation', msg, function(btn) { method: 'DELETE',
if (btn !== 'yes') { waitMsgTarget: me,
return; callback: function() {
} reload();
},
PVE.Utils.API2Request({ failure: function (response, opts) {
url: '/access/domains/' + realm, Ext.Msg.alert(gettext('Error'), response.htmlStatus);
method: 'DELETE', }
waitMsgTarget: me, });
callback: function() {
reload();
},
failure: function (response, opts) {
Ext.Msg.alert('Error',response.htmlStatus);
}
});
});
} else {
msg = 'You are not permitted to delete the auth method: pam';
Ext.Msg.alert('Error', msg);
}
} }
} }
]; ];
Ext.apply(me, { Ext.apply(me, {
store: store, store: store,
selModel: sm,
stateful: false, stateful: false,
//tbar: tbar, //tbar: tbar,
viewConfig: { viewConfig: {
...@@ -94,20 +84,20 @@ Ext.define('PVE.dc.AuthView', { ...@@ -94,20 +84,20 @@ Ext.define('PVE.dc.AuthView', {
}, },
columns: [ columns: [
{ {
header: 'Realm', header: gettext('Realm'),
width: 100, width: 100,
sortable: true, sortable: true,
dataIndex: 'realm' dataIndex: 'realm'
}, },
{ {
header: 'Type', header: gettext('Type'),
width: 100, width: 100,
sortable: true, sortable: true,
dataIndex: 'type' dataIndex: 'type'
}, },
{ {
id: 'comment', id: 'comment',
header: 'Comment', header: gettext('Comment'),
sortable: false, sortable: false,
dataIndex: 'comment', dataIndex: 'comment',
flex: 1 flex: 1
......
...@@ -22,8 +22,9 @@ Ext.define('PVE.dc.StorageView', { ...@@ -22,8 +22,9 @@ Ext.define('PVE.dc.StorageView', {
store.load(); store.load();
}; };
var sm = Ext.create('Ext.selection.RowModel', {});
var run_editor = function() { var run_editor = function() {
var sm = me.getSelectionModel();
var rec = sm.getSelection()[0]; var rec = sm.getSelection()[0];
if (!rec) { if (!rec) {
return; return;
...@@ -50,46 +51,37 @@ Ext.define('PVE.dc.StorageView', { ...@@ -50,46 +51,37 @@ Ext.define('PVE.dc.StorageView', {
win.on('destroy', reload); win.on('destroy', reload);
}; };
var edit_btn = new Ext.Button({ var edit_btn = new PVE.button.Button({
text: gettext('Edit'), text: gettext('Edit'),
disabled: true, disabled: true,
selModel: sm,
handler: run_editor handler: run_editor
}); });
var remove_btn = new Ext.Button({ var remove_btn = new PVE.button.Button({
text: gettext('Remove'), text: gettext('Remove'),
disabled: true, disabled: true,
handler: function(){ selModel: sm,
var sm = me.getSelectionModel(); confirmMsg: function (rec) {
var rec = sm.getSelection()[0]; return Ext.String.format(gettext('Are you sure you want to remove entry {0}'),
"'" + rec.data.storage + "'");
if (!rec) { },
return; handler: function(btn, event, rec){
} PVE.Utils.API2Request({
url: '/storage/' + rec.data.storage,
var msg = Ext.String.format(gettext('Are you sure you want to remove storage {0}?'), "'" + rec.data.storage + "'"); method: 'DELETE',
waitMsgTarget: me,
Ext.Msg.confirm(gettext('Confirm'), msg, function(btn) { callback: function() {
if (btn !== 'yes') { reload();
return; },
failure: function (response, opts) {
Ext.Msg.alert(gettetx('Error'), response.htmlStatus);
} }
PVE.Utils.API2Request({
url: '/storage/' + rec.data.storage,
method: 'DELETE',
waitMsgTarget: me,
callback: function() {
reload();
},
failure: function (response, opts) {
Ext.Msg.alert(gettetx('Error'), response.htmlStatus);
}
});
}); });
} }
}); });
var set_button_status = function() { var set_button_status = function() {
var sm = me.getSelectionModel();
var rec = sm.getSelection()[0]; var rec = sm.getSelection()[0];
if (!rec) { if (!rec) {
...@@ -105,6 +97,7 @@ Ext.define('PVE.dc.StorageView', { ...@@ -105,6 +97,7 @@ Ext.define('PVE.dc.StorageView', {
Ext.apply(me, { Ext.apply(me, {
store: store, store: store,
selModel: sm,
stateful: false, stateful: false,
viewConfig: { viewConfig: {
trackOver: false trackOver: false
......
...@@ -45,15 +45,14 @@ Ext.define('PVE.storage.Upload', { ...@@ -45,15 +45,14 @@ Ext.define('PVE.storage.Upload', {
['backup', 'VZDump backup file'], ['backup', 'VZDump backup file'],
['vztmpl', 'OpenVZ template'] ['vztmpl', 'OpenVZ template']
], ],
fieldLabel: 'Content type', fieldLabel: gettext('Content'),
name: 'content', name: 'content',
value: 'iso' value: 'iso'
}, },
{ {
xtype: 'filefield', xtype: 'filefield',
name: 'filename', name: 'filename',
filedLabel: 'File', buttonText: gettext('Select File...'),
buttonText: 'Select File...',
allowBlank: false allowBlank: false
}, },
pbar pbar
...@@ -65,13 +64,13 @@ Ext.define('PVE.storage.Upload', { ...@@ -65,13 +64,13 @@ Ext.define('PVE.storage.Upload', {
var doStandardSubmit = function() { var doStandardSubmit = function() {
form.submit({ form.submit({
url: "/api2/htmljs" + baseurl, url: "/api2/htmljs" + baseurl,
waitMsg: 'Uploading file...', waitMsg: gettext('Uploading file...'),
success: function(f, action) { success: function(f, action) {
me.close(); me.close();
}, },
failure: function(f, action) { failure: function(f, action) {
var msg = PVE.Utils.extractFormActionError(action); var msg = PVE.Utils.extractFormActionError(action);
Ext.Msg.alert('Failed', msg); Ext.Msg.alert(gettext('Error'), msg);
} }
}); });
}; };
...@@ -85,7 +84,7 @@ Ext.define('PVE.storage.Upload', { ...@@ -85,7 +84,7 @@ Ext.define('PVE.storage.Upload', {
}; };
var abortBtn = Ext.create('Ext.Button', { var abortBtn = Ext.create('Ext.Button', {
text: 'Abort', text: gettext('Abort'),
disabled: true, disabled: true,
handler: function() { handler: function() {
me.close(); me.close();
...@@ -93,7 +92,7 @@ Ext.define('PVE.storage.Upload', { ...@@ -93,7 +92,7 @@ Ext.define('PVE.storage.Upload', {
}); });
var submitBtn = Ext.create('Ext.Button', { var submitBtn = Ext.create('Ext.Button', {
text: 'Upload', text: gettext('Upload'),
disabled: true, disabled: true,
handler: function(button) { handler: function(button) {
var fd; var fd;
...@@ -126,7 +125,7 @@ Ext.define('PVE.storage.Upload', { ...@@ -126,7 +125,7 @@ Ext.define('PVE.storage.Upload', {
me.close(); me.close();
} else { } else {
var msg = "Error " + xhr.status.toString() + ": " + Ext.htmlEncode(xhr.statusText); var msg = "Error " + xhr.status.toString() + ": " + Ext.htmlEncode(xhr.statusText);
Ext.Msg.alert('Upload failed', msg, function(btn) { Ext.Msg.alert(gettext('Error'), msg, function(btn) {
me.close(); me.close();
}); });
...@@ -135,7 +134,7 @@ Ext.define('PVE.storage.Upload', { ...@@ -135,7 +134,7 @@ Ext.define('PVE.storage.Upload', {
xhr.addEventListener("error", function(e) { xhr.addEventListener("error", function(e) {
var msg = "Error " + e.target.status.toString() + " occurred while receiving the document."; var msg = "Error " + e.target.status.toString() + " occurred while receiving the document.";
Ext.Msg.alert('Upload failed', msg, function(btn) { Ext.Msg.alert(gettext('Error'), msg, function(btn) {
me.close(); me.close();
}); });
}); });
...@@ -157,7 +156,7 @@ Ext.define('PVE.storage.Upload', { ...@@ -157,7 +156,7 @@ Ext.define('PVE.storage.Upload', {
}); });
Ext.applyIf(me, { Ext.applyIf(me, {
title: 'Upload', title: gettext('Upload'),
items: me.formPanel, items: me.formPanel,
buttons: [ abortBtn, submitBtn ], buttons: [ abortBtn, submitBtn ],
listeners: { listeners: {
...@@ -226,7 +225,7 @@ Ext.define('PVE.storage.ContentView', { ...@@ -226,7 +225,7 @@ Ext.define('PVE.storage.ContentView', {
tbar: [ tbar: [
{ {
xtype: 'pveButton', xtype: 'pveButton',
text: 'Restore', text: gettext('Restore'),
selModel: sm, selModel: sm,
disabled: true, disabled: true,
enableFn: function(rec) { enableFn: function(rec) {
...@@ -254,11 +253,12 @@ Ext.define('PVE.storage.ContentView', { ...@@ -254,11 +253,12 @@ Ext.define('PVE.storage.ContentView', {
}, },
{ {
xtype: 'pveButton', xtype: 'pveButton',
text: 'Delete', text: gettext('Remove'),
selModel: sm, selModel: sm,
disabled: true, disabled: true,
confirmMsg: function(rec) { confirmMsg: function(rec) {
return 'Are you sure you want to delete volume "' + rec.data.volid + '"'; return Ext.String.format(gettext('Are you sure you want to remove entry {0}'),
"'" + rec.data.volid + "'");
}, },
enableFn: function(rec) { enableFn: function(rec) {
return rec && rec.data.content !== 'images'; return rec && rec.data.content !== 'images';
...@@ -272,13 +272,13 @@ Ext.define('PVE.storage.ContentView', { ...@@ -272,13 +272,13 @@ Ext.define('PVE.storage.ContentView', {
reload(); reload();
}, },
failure: function (response, opts) { failure: function (response, opts) {
Ext.Msg.alert('Error', response.htmlStatus); Ext.Msg.alert(gettext('Error'), response.htmlStatus);
} }
}); });
} }
}, },
{ {
text: 'Upload', text: gettext('Upload'),
handler: function() { handler: function() {
var win = Ext.create('PVE.storage.Upload', { var win = Ext.create('PVE.storage.Upload', {
nodename: nodename, nodename: nodename,
...@@ -291,19 +291,19 @@ Ext.define('PVE.storage.ContentView', { ...@@ -291,19 +291,19 @@ Ext.define('PVE.storage.ContentView', {
], ],
columns: [ columns: [
{ {
header: 'Name', header: gettext('Name'),
flex: 1, flex: 1,
sortable: true, sortable: true,
renderer: PVE.Utils.render_storage_content, renderer: PVE.Utils.render_storage_content,
dataIndex: 'text' dataIndex: 'text'
}, },
{ {
header: 'Format', header: gettext('Format'),
width: 100, width: 100,
dataIndex: 'format' dataIndex: 'format'
}, },
{ {
header: 'Size', header: gettext('Size'),
width: 100, width: 100,
renderer: PVE.Utils.format_size, renderer: PVE.Utils.format_size,
dataIndex: 'size' dataIndex: 'size'
......
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