Commit afc2984b authored by Dietmar Maurer's avatar Dietmar Maurer

set load mask when changing language

parent 50c1c8a5
...@@ -7,8 +7,8 @@ msgid "" ...@@ -7,8 +7,8 @@ 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: Tue Nov 22 13:57:09 2011\n" "POT-Creation-Date: Wed Nov 23 06:18:52 2011\n"
"PO-Revision-Date: 2011-11-22 13:57+0100\n" "PO-Revision-Date: 2011-11-23 06:18+0100\n"
"Last-Translator: Proxmox Support Team <support@proxmox.com>\n" "Last-Translator: Proxmox Support Team <support@proxmox.com>\n"
"Language-Team: German\n" "Language-Team: German\n"
"Language: de\n" "Language: de\n"
...@@ -121,14 +121,18 @@ msgstr "Möchten Sie VM {0} wirklich aussetzen (suspend)?" ...@@ -121,14 +121,18 @@ msgstr "Möchten Sie VM {0} wirklich aussetzen (suspend)?"
msgid "End Time" msgid "End Time"
msgstr "Endzeit" msgstr "Endzeit"
#: ../www/manager/window/LoginWindow.js:88 #: ../www/manager/window/LoginWindow.js:90
msgid "Enter your password" msgid "Enter your password"
msgstr "Bitte geben Sie Ihr Passwort ein" msgstr "Bitte geben Sie Ihr Passwort ein"
#: ../www/manager/window/LoginWindow.js:65 #: ../www/manager/window/LoginWindow.js:67
msgid "Enter your user name" msgid "Enter your user name"
msgstr "Bitte geben Sie Ihren Benutzernamen ein" msgstr "Bitte geben Sie Ihren Benutzernamen ein"
#: ../www/manager/window/LoginWindow.js:17
msgid "Error"
msgstr "Fehler"
#: ../www/manager/Utils.js:33 ../www/manager/Utils.js:40 #: ../www/manager/Utils.js:33 ../www/manager/Utils.js:40
#: ../www/manager/Utils.js:65 #: ../www/manager/Utils.js:65
msgid "Example" msgid "Example"
...@@ -155,14 +159,18 @@ msgstr "Gruppen" ...@@ -155,14 +159,18 @@ msgstr "Gruppen"
msgid "Hardware" msgid "Hardware"
msgstr "Hardware" msgstr "Hardware"
#: ../www/manager/window/LoginWindow.js:103 #: ../www/manager/window/LoginWindow.js:105
msgid "Language" msgid "Language"
msgstr "Sprache" msgstr "Sprache"
#: ../www/manager/window/LoginWindow.js:118 #: ../www/manager/window/LoginWindow.js:121
msgid "Login" msgid "Login"
msgstr "Anmelden" msgstr "Anmelden"
#: ../www/manager/window/LoginWindow.js:18
msgid "Login failed. Please try again"
msgstr "Anmeldung fehlgeschlagen. Bitte versuchen Sie es noch einmal."
#: ../www/manager/Workspace.js:308 #: ../www/manager/Workspace.js:308
msgid "Logout" msgid "Logout"
msgstr "Logout" msgstr "Logout"
...@@ -209,7 +217,7 @@ msgstr "OpenVZ Container" ...@@ -209,7 +217,7 @@ msgstr "OpenVZ Container"
msgid "Options" msgid "Options"
msgstr "Optionen" msgstr "Optionen"
#: ../www/manager/window/LoginWindow.js:86 #: ../www/manager/window/LoginWindow.js:88
msgid "Password" msgid "Password"
msgstr "Passwort" msgstr "Passwort"
...@@ -218,11 +226,12 @@ msgstr "Passwort" ...@@ -218,11 +226,12 @@ msgstr "Passwort"
msgid "Permissions" msgid "Permissions"
msgstr "Rechte" msgstr "Rechte"
#: ../www/manager/Utils.js:294 #: ../www/manager/Utils.js:294 ../www/manager/window/LoginWindow.js:12
#: ../www/manager/window/LoginWindow.js:113
msgid "Please wait..." msgid "Please wait..."
msgstr "Bitte warten..." msgstr "Bitte warten..."
#: ../www/manager/window/LoginWindow.js:44 #: ../www/manager/window/LoginWindow.js:46
msgid "Proxmox VE Login" msgid "Proxmox VE Login"
msgstr "Proxmox VE Anmeldung" msgstr "Proxmox VE Anmeldung"
...@@ -354,7 +363,7 @@ msgstr "Unbekannter Fehler" ...@@ -354,7 +363,7 @@ msgstr "Unbekannter Fehler"
#: ../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:63 #: ../www/manager/window/LoginWindow.js:65
msgid "User name" msgid "User name"
msgstr "Benutzername" msgstr "Benutzername"
......
...@@ -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: Tue Nov 22 13:57:09 2011\n" "POT-Creation-Date: Wed Nov 23 06:18:52 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"
...@@ -119,14 +119,18 @@ msgstr "" ...@@ -119,14 +119,18 @@ msgstr ""
msgid "End Time" msgid "End Time"
msgstr "" msgstr ""
#: ../www/manager/window/LoginWindow.js:88 #: ../www/manager/window/LoginWindow.js:90
msgid "Enter your password" msgid "Enter your password"
msgstr "" msgstr ""
#: ../www/manager/window/LoginWindow.js:65 #: ../www/manager/window/LoginWindow.js:67
msgid "Enter your user name" msgid "Enter your user name"
msgstr "" msgstr ""
#: ../www/manager/window/LoginWindow.js:17
msgid "Error"
msgstr ""
#: ../www/manager/Utils.js:33 ../www/manager/Utils.js:40 #: ../www/manager/Utils.js:33 ../www/manager/Utils.js:40
#: ../www/manager/Utils.js:65 #: ../www/manager/Utils.js:65
msgid "Example" msgid "Example"
...@@ -153,14 +157,18 @@ msgstr "" ...@@ -153,14 +157,18 @@ msgstr ""
msgid "Hardware" msgid "Hardware"
msgstr "" msgstr ""
#: ../www/manager/window/LoginWindow.js:103 #: ../www/manager/window/LoginWindow.js:105
msgid "Language" msgid "Language"
msgstr "" msgstr ""
#: ../www/manager/window/LoginWindow.js:118 #: ../www/manager/window/LoginWindow.js:121
msgid "Login" msgid "Login"
msgstr "" msgstr ""
#: ../www/manager/window/LoginWindow.js:18
msgid "Login failed. Please try again"
msgstr ""
#: ../www/manager/Workspace.js:308 #: ../www/manager/Workspace.js:308
msgid "Logout" msgid "Logout"
msgstr "" msgstr ""
...@@ -207,7 +215,7 @@ msgstr "" ...@@ -207,7 +215,7 @@ msgstr ""
msgid "Options" msgid "Options"
msgstr "" msgstr ""
#: ../www/manager/window/LoginWindow.js:86 #: ../www/manager/window/LoginWindow.js:88
msgid "Password" msgid "Password"
msgstr "" msgstr ""
...@@ -216,11 +224,12 @@ msgstr "" ...@@ -216,11 +224,12 @@ msgstr ""
msgid "Permissions" msgid "Permissions"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:294 #: ../www/manager/Utils.js:294 ../www/manager/window/LoginWindow.js:12
#: ../www/manager/window/LoginWindow.js:113
msgid "Please wait..." msgid "Please wait..."
msgstr "" msgstr ""
#: ../www/manager/window/LoginWindow.js:44 #: ../www/manager/window/LoginWindow.js:46
msgid "Proxmox VE Login" msgid "Proxmox VE Login"
msgstr "" msgstr ""
...@@ -352,7 +361,7 @@ msgstr "" ...@@ -352,7 +361,7 @@ 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:63 #: ../www/manager/window/LoginWindow.js:65
msgid "User name" msgid "User name"
msgstr "" msgstr ""
......
...@@ -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: Tue Nov 22 13:57:09 2011\n" "POT-Creation-Date: Wed Nov 23 06:18:52 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"
...@@ -104,14 +104,18 @@ msgstr "" ...@@ -104,14 +104,18 @@ msgstr ""
msgid "End Time" msgid "End Time"
msgstr "" msgstr ""
#: ../www/manager/window/LoginWindow.js:88 #: ../www/manager/window/LoginWindow.js:90
msgid "Enter your password" msgid "Enter your password"
msgstr "" msgstr ""
#: ../www/manager/window/LoginWindow.js:65 #: ../www/manager/window/LoginWindow.js:67
msgid "Enter your user name" msgid "Enter your user name"
msgstr "" msgstr ""
#: ../www/manager/window/LoginWindow.js:17
msgid "Error"
msgstr ""
#: ../www/manager/Utils.js:33 ../www/manager/Utils.js:40 ../www/manager/Utils.js:65 #: ../www/manager/Utils.js:33 ../www/manager/Utils.js:40 ../www/manager/Utils.js:65
msgid "Example" msgid "Example"
msgstr "" msgstr ""
...@@ -136,14 +140,18 @@ msgstr "" ...@@ -136,14 +140,18 @@ msgstr ""
msgid "Hardware" msgid "Hardware"
msgstr "" msgstr ""
#: ../www/manager/window/LoginWindow.js:103 #: ../www/manager/window/LoginWindow.js:105
msgid "Language" msgid "Language"
msgstr "" msgstr ""
#: ../www/manager/window/LoginWindow.js:118 #: ../www/manager/window/LoginWindow.js:121
msgid "Login" msgid "Login"
msgstr "" msgstr ""
#: ../www/manager/window/LoginWindow.js:18
msgid "Login failed. Please try again"
msgstr ""
#: ../www/manager/Workspace.js:308 #: ../www/manager/Workspace.js:308
msgid "Logout" msgid "Logout"
msgstr "" msgstr ""
...@@ -188,7 +196,7 @@ msgstr "" ...@@ -188,7 +196,7 @@ msgstr ""
msgid "Options" msgid "Options"
msgstr "" msgstr ""
#: ../www/manager/window/LoginWindow.js:86 #: ../www/manager/window/LoginWindow.js:88
msgid "Password" msgid "Password"
msgstr "" msgstr ""
...@@ -196,11 +204,11 @@ msgstr "" ...@@ -196,11 +204,11 @@ msgstr ""
msgid "Permissions" msgid "Permissions"
msgstr "" msgstr ""
#: ../www/manager/Utils.js:294 #: ../www/manager/Utils.js:294 ../www/manager/window/LoginWindow.js:12 ../www/manager/window/LoginWindow.js:113
msgid "Please wait..." msgid "Please wait..."
msgstr "" msgstr ""
#: ../www/manager/window/LoginWindow.js:44 #: ../www/manager/window/LoginWindow.js:46
msgid "Proxmox VE Login" msgid "Proxmox VE Login"
msgstr "" msgstr ""
...@@ -320,7 +328,7 @@ msgstr "" ...@@ -320,7 +328,7 @@ msgstr ""
msgid "Unknown error" msgid "Unknown error"
msgstr "" 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:63 #: ../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 ""
......
...@@ -9,12 +9,14 @@ Ext.define('PVE.window.LoginWindow', { ...@@ -9,12 +9,14 @@ Ext.define('PVE.window.LoginWindow', {
var form = me.getComponent(0).getForm(); var form = me.getComponent(0).getForm();
if(form.isValid()){ if(form.isValid()){
me.el.mask('Please wait...', 'x-mask-loading'); me.el.mask(gettext('Please wait...'), 'x-mask-loading');
form.submit({ form.submit({
failure: function(f, resp){ failure: function(f, resp){
me.el.unmask(); me.el.unmask();
Ext.MessageBox.alert('Failure', "Login failed. Please try again", function() { Ext.MessageBox.alert(gettext('Error'),
gettext("Login failed. Please try again"),
function() {
var uf = form.findField('username'); var uf = form.findField('username');
uf.focus(true, true); uf.focus(true, true);
}); });
...@@ -108,6 +110,7 @@ Ext.define('PVE.window.LoginWindow', { ...@@ -108,6 +110,7 @@ Ext.define('PVE.window.LoginWindow', {
change: function(t, value) { change: function(t, value) {
var dt = Ext.Date.add(new Date(), Ext.Date.YEAR, 10); var dt = Ext.Date.add(new Date(), Ext.Date.YEAR, 10);
Ext.util.Cookies.set('PVELangCookie', value, dt); Ext.util.Cookies.set('PVELangCookie', value, dt);
me.el.mask(gettext('Please wait...'), 'x-mask-loading');
window.location.reload(); window.location.reload();
} }
} }
......
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