Don't translate log messages

This commit is contained in:
Samuel Mannehed 2017-11-09 10:14:18 +01:00
parent 2592c24388
commit 8317524cda
1 changed files with 4 additions and 6 deletions

View File

@ -1008,9 +1008,8 @@ var UI = {
} }
if (!host) { if (!host) {
var msg = _("Must set host"); Log.Error("Can't connect when host is: " + host);
Log.Error(msg); UI.showStatus(_("Must set host"), 'error');
UI.showStatus(msg, 'error');
return; return;
} }
@ -1106,9 +1105,8 @@ var UI = {
document.getElementById('noVNC_password_input').focus(); document.getElementById('noVNC_password_input').focus();
}, 100); }, 100);
var msg = _("Password is required"); Log.Warn("Server asked for a password");
Log.Warn(msg); UI.showStatus(_("Password is required"), "warning");
UI.showStatus(msg, "warning");
}, },
setPassword: function(e) { setPassword: function(e) {