diff --git a/console/templates/console-spice-full.html b/console/templates/console-spice-full.html index 6c3d635..501fbc3 100644 --- a/console/templates/console-spice-full.html +++ b/console/templates/console-spice-full.html @@ -62,7 +62,7 @@ password = document.getElementById("password").value; if ((!host) || (!port)) { - console.log("must set host and port"); + console.log('{% trans "must set host and port" %}'); return; } @@ -88,7 +88,7 @@ } function disconnect() { - console.log(">> disconnect"); + console.log(">>" + '{% trans "disconnect" %}'); if (sc) { sc.stop(); } @@ -102,7 +102,7 @@ document.getElementById('spice-area').removeEventListener('dragover', SpiceHtml5.handle_file_dragover, false); document.getElementById('spice-area').removeEventListener('drop', SpiceHtml5.handle_file_drop, false); } - console.log("<< disconnect"); + console.log("<<" + '{% trans "disconnect" %}'); } function agent_connected(sc) { @@ -119,7 +119,7 @@ document.getElementById('spice-area').addEventListener('drop', SpiceHtml5.handle_file_drop, false); } else { - console.log("File API is not supported"); + console.log('{% trans "File API is not supported" %}'); } } @@ -202,12 +202,14 @@ {% block content %}
- - - - + + + + + + + +
diff --git a/console/templates/console-spice-lite.html b/console/templates/console-spice-lite.html index b03d7c2..afa29e2 100644 --- a/console/templates/console-spice-lite.html +++ b/console/templates/console-spice-lite.html @@ -104,14 +104,14 @@ if (password === undefined) { password = spice_query_var('password', ''); - password = '{{ console_passwd | safe }}'; + //password = '{{ console_passwd | safe }}'; } if (password === 'None') password = ''; var path = spice_query_var('path', 'websockify'); if ((!host) || (!port)) { - console.log(_("must specify host and port in URL")); + console.log('{% trans "must specify host and port in URL" %}'); return; } @@ -139,7 +139,7 @@ } function disconnect() { - console.log(">> disconnect"); + console.log(">>" + '{% trans "disconnect" %}'); if (sc) { sc.stop(); } @@ -151,7 +151,7 @@ document.getElementById('spice-area').removeEventListener('dragover', SpiceHtml5.handle_file_dragover, false); document.getElementById('spice-area').removeEventListener('drop', SpiceHtml5.handle_file_drop, false); } - console.log("<< disconnect"); + console.log("<<" + '{% trans "disconnect" %}'); } function agent_connected(sc) { @@ -168,7 +168,7 @@ document.getElementById('spice-area').addEventListener('drop', SpiceHtml5.handle_file_drop, false); } else { - console.log("File API is not supported"); + console.log('{% trans "File API is not supported" %}'); } }