]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Merge pull request #1009 from juanjoDiaz/move_browser_checks
authorSolly Ross <directxman12+github@gmail.com>
Thu, 1 Feb 2018 15:33:28 +0000 (10:33 -0500)
committerGitHub <noreply@github.com>
Thu, 1 Feb 2018 15:33:28 +0000 (10:33 -0500)
Move browser checks to browser.js

23 files changed:
app/ui.js
app/webutil.js
core/base64.js
core/des.js
core/display.js
core/input/keyboard.js
core/input/mouse.js
core/rfb.js
core/util/events.js
core/util/logging.js
core/websock.js
po/Makefile
po/es.po [new file with mode: 0644]
po/noVNC.pot
po/tr.po [new file with mode: 0644]
tests/test.display.js
tests/test.keyboard.js
tests/test.localization.js
tests/test.mouse.js
tests/test.rfb.js
tests/test.util.js
tests/test.websock.js
vendor/pako/lib/zlib/deflate.js

index 84cc62c76cc24b3ceee5d907052c634ff95d47f5..559a80b72f262318480d00065d4d5900c15a4a21 100644 (file)
--- a/app/ui.js
+++ b/app/ui.js
@@ -8,9 +8,6 @@
  * See README.md for usage and integration instructions.
  */
 
-/* jslint white: false, browser: true */
-/* global window, document.getElementById, Util, WebUtil, RFB, Display */
-
 import * as Log from '../core/util/logging.js';
 import _, { l10n } from './localization.js';
 import { isTouchDevice } from '../core/util/browser.js';
@@ -1653,7 +1650,7 @@ var UI = {
 };
 
 // Set up translations
-var LINGUAS = ["de", "el", "nl", "pl", "sv", "zh"];
+var LINGUAS = ["de", "el", "es", "nl", "pl", "sv", "tr", "zh"];
 l10n.setup(LINGUAS);
 if (l10n.language !== "en" && l10n.dictionary === undefined) {
     WebUtil.fetchJSON('app/locale/' + l10n.language + '.json', function (translations) {
index dabc97c748357f67482999e63238b86bf25df23f..249a1382fe87fb150562835314bcfbe633864510 100644 (file)
@@ -7,9 +7,6 @@
  * See README.md for usage and integration instructions.
  */
 
-/*jslint bitwise: false, white: false, browser: true, devel: true */
-/*global Util, window, document */
-
 import { init_logging as main_init_logging } from '../core/util/logging.js';
 
 // init log level reading the logging HTTP param
@@ -115,7 +112,6 @@ export function initSettings (callback /*, ...callbackArgs */) {
     if (window.chrome && window.chrome.storage) {
         window.chrome.storage.sync.get(function (cfg) {
             settings = cfg;
-            console.log(settings);
             if (callback) {
                 callback.apply(this, callbackArgs);
             }
@@ -132,7 +128,6 @@ export function initSettings (callback /*, ...callbackArgs */) {
 export function writeSetting (name, value) {
     "use strict";
     if (window.chrome && window.chrome.storage) {
-        //console.log("writeSetting:", name, value);
         if (settings[name] !== value) {
             settings[name] = value;
             window.chrome.storage.sync.set(settings);
index 9d24a25fdcac1ba6bb0e73ce0558dba1cbd9e7b9..5182c29548986753a7c6d5fb441e39283d638bd1 100644 (file)
@@ -4,8 +4,7 @@
 
 // From: http://hg.mozilla.org/mozilla-central/raw-file/ec10630b1a54/js/src/devtools/jint/sunspider/string-base64.js
 
-/*jslint white: false */
-/*global console */
+import * as Log from './util/logging.js';
 
 export default {
     /* Convert data (an array of integers) to a Base64 string. */
@@ -47,7 +46,6 @@ export default {
     },
 
     /* Convert Base64 data to a string */
-    /* jshint -W013 */
     toBinaryTable : [
         -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
         -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1, -1,-1,-1,-1,
@@ -58,7 +56,6 @@ export default {
         -1,26,27,28, 29,30,31,32, 33,34,35,36, 37,38,39,40,
         41,42,43,44, 45,46,47,48, 49,50,51,-1, -1,-1,-1,-1
     ],
-    /* jshint +W013 */
 
     decode: function (data, offset) {
         "use strict";
@@ -82,7 +79,7 @@ export default {
             var padding = (data.charAt(i) === base64Pad);
             // Skip illegal characters and whitespace
             if (c === -1) {
-                console.error("Illegal character code " + data.charCodeAt(i) + " at position " + i);
+                Log.Error("Illegal character code " + data.charCodeAt(i) + " at position " + i);
                 continue;
             }
 
index 62684936db5e5a66efe36963b9b74babf3856932..87dc516a05637bd7556d9ccce7f6e3d83592f504 100644 (file)
  * fine Java utilities: http://www.acme.com/java/
  */
 
-/* jslint white: false */
-
 export default function DES(passwd) {
     "use strict";
 
     // Tables, permutations, S-boxes, etc.
-    // jshint -W013
     var PC2 = [13,16,10,23, 0, 4, 2,27,14, 5,20, 9,22,18,11, 3,
                25, 7,15, 6,26,19,12, 1,40,51,30,36,46,54,29,39,
                50,44,32,47,43,48,38,55,33,52,45,41,49,35,28,31 ],
@@ -89,7 +86,6 @@ export default function DES(passwd) {
         z = 0x0, a,b,c,d,e,f, SP1,SP2,SP3,SP4,SP5,SP6,SP7,SP8,
         keys = [];
 
-    // jshint -W015
     a=1<<16; b=1<<24; c=a|b; d=1<<2; e=1<<10; f=d|e;
     SP1 = [c|e,z|z,a|z,c|f,c|d,a|f,z|d,a|z,z|e,c|e,c|f,z|e,b|f,c|d,b|z,z|d,
            z|f,b|e,b|e,a|e,a|e,c|z,c|z,b|f,a|d,b|d,b|d,a|d,z|z,z|f,a|f,b|z,
@@ -130,7 +126,6 @@ export default function DES(passwd) {
            c|z,b|d,b|e,z|f,a|e,a|d,c|d,c|e,z|f,z|z,z|z,c|d,b|d,b|e,a|f,a|z,
            a|f,a|z,c|e,z|e,z|d,c|d,z|e,a|f,b|e,z|d,b|d,c|z,c|d,b|z,a|z,b|f,
            z|z,c|f,a|d,b|d,c|z,b|e,b|f,z|z,c|f,a|e,a|e,z|f,z|f,a|d,b|z,c|e];
-    // jshint +W013,+W015
 
     // Set the key.
     function setKeys(keyBlock) {
index 3b12f1021db6c0322b8ec043f36ba9fb68eb9a2f..99156157ac77db2d6f3219574d2bd03576a6bd06 100644 (file)
@@ -7,9 +7,6 @@
  * See README.md for usage and integration instructions.
  */
 
-/*jslint browser: true, white: false */
-/*global Util, Base64, changeCursor */
-
 import * as Log from './util/logging.js';
 import Base64 from "./base64.js";
 
index d610eb239de0ad6fd014252525092a750bede628..4e8dc0d5ba888b1fb765b7a10bb841d3efff41d8 100644 (file)
@@ -5,9 +5,6 @@
  * Licensed under MPL 2.0 or any later version (see LICENSE.txt)
  */
 
-/*jslint browser: true, white: false */
-/*global window, Util */
-
 import * as Log from '../util/logging.js';
 import { stopEvent } from '../util/events.js';
 import * as KeyboardUtil from "./util.js";
@@ -209,7 +206,7 @@ Keyboard.prototype = {
         this._pendingKey = null;
 
         if (!keysym) {
-            console.log('keypress with no keysym:', e);
+            Log.Info('keypress with no keysym:', e);
             return;
         }
 
index c59af0051a2d7ae244289ffc3fb52c916e3f6a7d..524b0653259aa4f046d6c387599a6bd4e2ba56f3 100644 (file)
@@ -5,9 +5,6 @@
  * Licensed under MPL 2.0 or any later version (see LICENSE.txt)
  */
 
-/*jslint browser: true, white: false */
-/*global window, Util */
-
 import * as Log from '../util/logging.js';
 import { isTouchDevice } from '../util/browser.js';
 import { setCapture, stopEvent, getPointerEvent } from '../util/events.js';
index 39a3bce50078b914cd52f027491b3ef5260b7353..7c4e0c9d9b9c7f4b005443ca72ef37e110cac373 100644 (file)
@@ -18,7 +18,6 @@ import Display from "./display.js";
 import Keyboard from "./input/keyboard.js";
 import Mouse from "./input/mouse.js";
 import Websock from "./websock.js";
-import Base64 from "./base64.js";
 import DES from "./des.js";
 import KeyTable from "./input/keysym.js";
 import XtScancode from "./input/xtscancodes.js";
index c1afb48a3100bf527fb1d1ef6da7b3a5e6abd72e..8efd0c23712c7e914b530d9ab90994796adff61c 100644 (file)
@@ -10,8 +10,6 @@
  * Cross-browser event and position routines
  */
 
-import * as Log from './logging.js';
-
 export function getPointerEvent (e) {
     return e.changedTouches ? e.changedTouches[0] : e.touches ? e.touches[0] : e;
 };
index 342bfa7ca20b4f5b2ed806142597d5a302c52a7f..bcff16a50ba8198449dbe700ae8c577d1ccf2bb9 100644 (file)
@@ -26,7 +26,6 @@ export function init_logging (level) {
 
     Debug = Info = Warn = Error = function (msg) {};
     if (typeof window.console !== "undefined") {
-        /* jshint -W086 */
         switch (level) {
             case 'debug':
                 Debug = console.debug.bind(window.console);
@@ -41,7 +40,6 @@ export function init_logging (level) {
             default:
                 throw new Error("invalid logging type '" + level + "'");
         }
-        /* jshint +W086 */
     }
 };
 export function get_logging () {
index 03909bca30519e7f4eff4f51d5e08dd8b38fc2f4..a49591523b5032d1db2d8611535f1210e2dd908b 100644 (file)
@@ -14,9 +14,6 @@
 
 import * as Log from './util/logging.js';
 
-/*jslint browser: true, bitwise: true */
-/*global Util*/
-
 export default function Websock() {
     "use strict";
 
index 56d6f3d3d6a44cc9e44ab64a30677b6d3c8e9706..9af7bf15b63dbf8125fcc45454a1c4bd0d7e004d 100644 (file)
@@ -1,7 +1,7 @@
 all:
 .PHONY: update-po update-js update-pot
 
-LINGUAS := de el nl pl sv zh
+LINGUAS := de el es nl pl sv tr zh
 
 VERSION := $(shell grep '"version"' ../package.json | cut -d '"' -f 4)
 
diff --git a/po/es.po b/po/es.po
new file mode 100644 (file)
index 0000000..b98e81e
--- /dev/null
+++ b/po/es.po
@@ -0,0 +1,283 @@
+# Spanish translations for noVNC package
+# Traducciones al español para el paquete noVNC.
+# Copyright (C) 2018 Various Authors
+# This file is distributed under the same license as the noVNC package.
+# Juanjo Diaz <juanjo.diazmo@gmail.com>, 2018.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: noVNC 1.0.0-testing.2\n"
+"Report-Msgid-Bugs-To: novnc@googlegroups.com\n"
+"POT-Creation-Date: 2017-10-06 10:07+0200\n"
+"PO-Revision-Date: 2018-01-30 19:14-0800\n"
+"Last-Translator: Juanjo Diaz <juanjo.diazmo@gmail.com>\n"
+"Language-Team: Spanish\n"
+"Language: es\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+
+#: ../app/ui.js:430
+msgid "Connecting..."
+msgstr "Conectando..."
+
+#: ../app/ui.js:438
+msgid "Connected (encrypted) to "
+msgstr "Conectado (con encriptación) a"
+
+#: ../app/ui.js:440
+msgid "Connected (unencrypted) to "
+msgstr "Conectado (sin encriptación) a"
+
+#: ../app/ui.js:446
+msgid "Disconnecting..."
+msgstr "Desconectando..."
+
+#: ../app/ui.js:450
+msgid "Disconnected"
+msgstr "Desconectado"
+
+#: ../app/ui.js:1052 ../core/rfb.js:248
+msgid "Must set host"
+msgstr "Debes configurar el host"
+
+#: ../app/ui.js:1101
+msgid "Reconnecting..."
+msgstr "Reconectando..."
+
+#: ../app/ui.js:1140
+msgid "Password is required"
+msgstr "Contraseña es obligatoria"
+
+#: ../core/rfb.js:548
+msgid "Disconnect timeout"
+msgstr "Tiempo de desconexión agotado"
+
+#: ../vnc.html:89
+msgid "noVNC encountered an error:"
+msgstr "noVNC ha encontrado un error:"
+
+#: ../vnc.html:99
+msgid "Hide/Show the control bar"
+msgstr "Ocultar/Mostrar la barra de control"
+
+#: ../vnc.html:106
+msgid "Move/Drag Viewport"
+msgstr "Mover/Arrastrar la ventana"
+
+#: ../vnc.html:106
+msgid "viewport drag"
+msgstr "Arrastrar la ventana"
+
+#: ../vnc.html:112 ../vnc.html:115 ../vnc.html:118 ../vnc.html:121
+msgid "Active Mouse Button"
+msgstr "Botón activo del ratón"
+
+#: ../vnc.html:112
+msgid "No mousebutton"
+msgstr "Ningún botón del ratón"
+
+#: ../vnc.html:115
+msgid "Left mousebutton"
+msgstr "Botón izquierdo del ratón"
+
+#: ../vnc.html:118
+msgid "Middle mousebutton"
+msgstr "Botón central del ratón"
+
+#: ../vnc.html:121
+msgid "Right mousebutton"
+msgstr "Botón derecho del ratón"
+
+#: ../vnc.html:124
+msgid "Keyboard"
+msgstr "Teclado"
+
+#: ../vnc.html:124
+msgid "Show Keyboard"
+msgstr "Mostrar teclado"
+
+#: ../vnc.html:131
+msgid "Extra keys"
+msgstr "Teclas adicionales"
+
+#: ../vnc.html:131
+msgid "Show Extra Keys"
+msgstr "Mostrar Teclas Adicionales"
+
+#: ../vnc.html:136
+msgid "Ctrl"
+msgstr "Ctrl"
+
+#: ../vnc.html:136
+msgid "Toggle Ctrl"
+msgstr "Pulsar/Soltar Ctrl"
+
+#: ../vnc.html:139
+msgid "Alt"
+msgstr "Alt"
+
+#: ../vnc.html:139
+msgid "Toggle Alt"
+msgstr "Pulsar/Soltar Alt"
+
+#: ../vnc.html:142
+msgid "Send Tab"
+msgstr "Enviar Tabulación"
+
+#: ../vnc.html:142
+msgid "Tab"
+msgstr "Tabulación"
+
+#: ../vnc.html:145
+msgid "Esc"
+msgstr "Esc"
+
+#: ../vnc.html:145
+msgid "Send Escape"
+msgstr "Enviar Escape"
+
+#: ../vnc.html:148
+msgid "Ctrl+Alt+Del"
+msgstr "Ctrl+Alt+Del"
+
+#: ../vnc.html:148
+msgid "Send Ctrl-Alt-Del"
+msgstr "Enviar Ctrl+Alt+Del"
+
+#: ../vnc.html:156
+msgid "Shutdown/Reboot"
+msgstr "Apagar/Reiniciar"
+
+#: ../vnc.html:156
+msgid "Shutdown/Reboot..."
+msgstr "Apagar/Reiniciar..."
+
+#: ../vnc.html:162
+msgid "Power"
+msgstr "Encender"
+
+#: ../vnc.html:164
+msgid "Shutdown"
+msgstr "Apagar"
+
+#: ../vnc.html:165
+msgid "Reboot"
+msgstr "Reiniciar"
+
+#: ../vnc.html:166
+msgid "Reset"
+msgstr "Restablecer"
+
+#: ../vnc.html:171 ../vnc.html:177
+msgid "Clipboard"
+msgstr "Portapapeles"
+
+#: ../vnc.html:181
+msgid "Clear"
+msgstr "Vaciar"
+
+#: ../vnc.html:187
+msgid "Fullscreen"
+msgstr "Pantalla Completa"
+
+#: ../vnc.html:192 ../vnc.html:199
+msgid "Settings"
+msgstr "Configuraciones"
+
+#: ../vnc.html:202
+msgid "Shared Mode"
+msgstr "Modo Compartido"
+
+#: ../vnc.html:205
+msgid "View Only"
+msgstr "Solo visualización"
+
+#: ../vnc.html:209
+msgid "Clip to Window"
+msgstr "Recortar al tamaño de la ventana"
+
+#: ../vnc.html:212
+msgid "Scaling Mode:"
+msgstr "Modo de escalado:"
+
+#: ../vnc.html:214
+msgid "None"
+msgstr "Ninguno"
+
+#: ../vnc.html:215
+msgid "Local Scaling"
+msgstr "Escalado Local"
+
+#: ../vnc.html:216
+msgid "Local Downscaling"
+msgstr "Reducción de escala local"
+
+#: ../vnc.html:217
+msgid "Remote Resizing"
+msgstr "Cambio de tamaño remoto"
+
+#: ../vnc.html:222
+msgid "Advanced"
+msgstr "Avanzado"
+
+#: ../vnc.html:225
+msgid "Local Cursor"
+msgstr "Cursor Local"
+
+#: ../vnc.html:229
+msgid "Repeater ID:"
+msgstr "ID del Repetidor"
+
+#: ../vnc.html:233
+msgid "WebSocket"
+msgstr "WebSocket"
+
+#: ../vnc.html:236
+msgid "Encrypt"
+msgstr ""
+
+#: ../vnc.html:239
+msgid "Host:"
+msgstr "Host"
+
+#: ../vnc.html:243
+msgid "Port:"
+msgstr "Puesto"
+
+#: ../vnc.html:247
+msgid "Path:"
+msgstr "Ruta"
+
+#: ../vnc.html:254
+msgid "Automatic Reconnect"
+msgstr "Reconexión automática"
+
+#: ../vnc.html:257
+msgid "Reconnect Delay (ms):"
+msgstr "Retraso en la reconexión (ms)"
+
+#: ../vnc.html:263
+msgid "Logging:"
+msgstr "Logging"
+
+#: ../vnc.html:275
+msgid "Disconnect"
+msgstr "Desconectar"
+
+#: ../vnc.html:294
+msgid "Connect"
+msgstr "Conectar"
+
+#: ../vnc.html:304
+msgid "Password:"
+msgstr "Contraseña"
+
+#: ../vnc.html:318
+msgid "Cancel"
+msgstr "Cancelar"
+
+#: ../vnc.html:334
+msgid "Canvas not supported."
+msgstr "Canvas no está soportado"
index 45e1d4c19c603ae0bc73f2ab16c5bf06860b27bd..8f231b231b1a876708fb4312f608fa10f866e82f 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: noVNC 1.0.0-testing.2\n"
 "Report-Msgid-Bugs-To: novnc@googlegroups.com\n"
-"POT-Creation-Date: 2017-10-06 10:07+0200\n"
+"POT-Creation-Date: 2018-01-31 16:29+0100\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -17,266 +17,274 @@ msgstr ""
 "Content-Type: text/plain; charset=CHARSET\n"
 "Content-Transfer-Encoding: 8bit\n"
 
-#: ../app/ui.js:430
+#: ../app/ui.js:395
 msgid "Connecting..."
 msgstr ""
 
-#: ../app/ui.js:438
+#: ../app/ui.js:402
+msgid "Disconnecting..."
+msgstr ""
+
+#: ../app/ui.js:408
+msgid "Reconnecting..."
+msgstr ""
+
+#: ../app/ui.js:413
+msgid "Internal error"
+msgstr ""
+
+#: ../app/ui.js:1002
+msgid "Must set host"
+msgstr ""
+
+#: ../app/ui.js:1083
 msgid "Connected (encrypted) to "
 msgstr ""
 
-#: ../app/ui.js:440
+#: ../app/ui.js:1085
 msgid "Connected (unencrypted) to "
 msgstr ""
 
-#: ../app/ui.js:446
-msgid "Disconnecting..."
+#: ../app/ui.js:1108
+msgid "Something went wrong, connection is closed"
 msgstr ""
 
-#: ../app/ui.js:450
-msgid "Disconnected"
+#: ../app/ui.js:1111
+msgid "Failed to connect to server"
 msgstr ""
 
-#: ../app/ui.js:1052 ../core/rfb.js:248
-msgid "Must set host"
+#: ../app/ui.js:1121
+msgid "Disconnected"
 msgstr ""
 
-#: ../app/ui.js:1101
-msgid "Reconnecting..."
+#: ../app/ui.js:1134
+msgid "New connection has been rejected with reason: "
 msgstr ""
 
-#: ../app/ui.js:1140
-msgid "Password is required"
+#: ../app/ui.js:1137
+msgid "New connection has been rejected"
 msgstr ""
 
-#: ../core/rfb.js:548
-msgid "Disconnect timeout"
+#: ../app/ui.js:1158
+msgid "Password is required"
 msgstr ""
 
-#: ../vnc.html:89
+#: ../vnc.html:91
 msgid "noVNC encountered an error:"
 msgstr ""
 
-#: ../vnc.html:99
+#: ../vnc.html:101
 msgid "Hide/Show the control bar"
 msgstr ""
 
-#: ../vnc.html:106
+#: ../vnc.html:108
 msgid "Move/Drag Viewport"
 msgstr ""
 
-#: ../vnc.html:106
+#: ../vnc.html:108
 msgid "viewport drag"
 msgstr ""
 
-#: ../vnc.html:112 ../vnc.html:115 ../vnc.html:118 ../vnc.html:121
+#: ../vnc.html:114 ../vnc.html:117 ../vnc.html:120 ../vnc.html:123
 msgid "Active Mouse Button"
 msgstr ""
 
-#: ../vnc.html:112
+#: ../vnc.html:114
 msgid "No mousebutton"
 msgstr ""
 
-#: ../vnc.html:115
+#: ../vnc.html:117
 msgid "Left mousebutton"
 msgstr ""
 
-#: ../vnc.html:118
+#: ../vnc.html:120
 msgid "Middle mousebutton"
 msgstr ""
 
-#: ../vnc.html:121
+#: ../vnc.html:123
 msgid "Right mousebutton"
 msgstr ""
 
-#: ../vnc.html:124
+#: ../vnc.html:126
 msgid "Keyboard"
 msgstr ""
 
-#: ../vnc.html:124
+#: ../vnc.html:126
 msgid "Show Keyboard"
 msgstr ""
 
-#: ../vnc.html:131
+#: ../vnc.html:133
 msgid "Extra keys"
 msgstr ""
 
-#: ../vnc.html:131
+#: ../vnc.html:133
 msgid "Show Extra Keys"
 msgstr ""
 
-#: ../vnc.html:136
+#: ../vnc.html:138
 msgid "Ctrl"
 msgstr ""
 
-#: ../vnc.html:136
+#: ../vnc.html:138
 msgid "Toggle Ctrl"
 msgstr ""
 
-#: ../vnc.html:139
+#: ../vnc.html:141
 msgid "Alt"
 msgstr ""
 
-#: ../vnc.html:139
+#: ../vnc.html:141
 msgid "Toggle Alt"
 msgstr ""
 
-#: ../vnc.html:142
+#: ../vnc.html:144
 msgid "Send Tab"
 msgstr ""
 
-#: ../vnc.html:142
+#: ../vnc.html:144
 msgid "Tab"
 msgstr ""
 
-#: ../vnc.html:145
+#: ../vnc.html:147
 msgid "Esc"
 msgstr ""
 
-#: ../vnc.html:145
+#: ../vnc.html:147
 msgid "Send Escape"
 msgstr ""
 
-#: ../vnc.html:148
+#: ../vnc.html:150
 msgid "Ctrl+Alt+Del"
 msgstr ""
 
-#: ../vnc.html:148
+#: ../vnc.html:150
 msgid "Send Ctrl-Alt-Del"
 msgstr ""
 
-#: ../vnc.html:156
+#: ../vnc.html:158
 msgid "Shutdown/Reboot"
 msgstr ""
 
-#: ../vnc.html:156
+#: ../vnc.html:158
 msgid "Shutdown/Reboot..."
 msgstr ""
 
-#: ../vnc.html:162
+#: ../vnc.html:164
 msgid "Power"
 msgstr ""
 
-#: ../vnc.html:164
+#: ../vnc.html:166
 msgid "Shutdown"
 msgstr ""
 
-#: ../vnc.html:165
+#: ../vnc.html:167
 msgid "Reboot"
 msgstr ""
 
-#: ../vnc.html:166
+#: ../vnc.html:168
 msgid "Reset"
 msgstr ""
 
-#: ../vnc.html:171 ../vnc.html:177
+#: ../vnc.html:173 ../vnc.html:179
 msgid "Clipboard"
 msgstr ""
 
-#: ../vnc.html:181
+#: ../vnc.html:183
 msgid "Clear"
 msgstr ""
 
-#: ../vnc.html:187
+#: ../vnc.html:189
 msgid "Fullscreen"
 msgstr ""
 
-#: ../vnc.html:192 ../vnc.html:199
+#: ../vnc.html:194 ../vnc.html:201
 msgid "Settings"
 msgstr ""
 
-#: ../vnc.html:202
+#: ../vnc.html:204
 msgid "Shared Mode"
 msgstr ""
 
-#: ../vnc.html:205
+#: ../vnc.html:207
 msgid "View Only"
 msgstr ""
 
-#: ../vnc.html:209
+#: ../vnc.html:211
 msgid "Clip to Window"
 msgstr ""
 
-#: ../vnc.html:212
+#: ../vnc.html:214
 msgid "Scaling Mode:"
 msgstr ""
 
-#: ../vnc.html:214
+#: ../vnc.html:216
 msgid "None"
 msgstr ""
 
-#: ../vnc.html:215
+#: ../vnc.html:217
 msgid "Local Scaling"
 msgstr ""
 
-#: ../vnc.html:216
-msgid "Local Downscaling"
-msgstr ""
-
-#: ../vnc.html:217
+#: ../vnc.html:218
 msgid "Remote Resizing"
 msgstr ""
 
-#: ../vnc.html:222
+#: ../vnc.html:223
 msgid "Advanced"
 msgstr ""
 
-#: ../vnc.html:225
-msgid "Local Cursor"
-msgstr ""
-
-#: ../vnc.html:229
+#: ../vnc.html:226
 msgid "Repeater ID:"
 msgstr ""
 
-#: ../vnc.html:233
+#: ../vnc.html:230
 msgid "WebSocket"
 msgstr ""
 
-#: ../vnc.html:236
+#: ../vnc.html:233
 msgid "Encrypt"
 msgstr ""
 
-#: ../vnc.html:239
+#: ../vnc.html:236
 msgid "Host:"
 msgstr ""
 
-#: ../vnc.html:243
+#: ../vnc.html:240
 msgid "Port:"
 msgstr ""
 
-#: ../vnc.html:247
+#: ../vnc.html:244
 msgid "Path:"
 msgstr ""
 
-#: ../vnc.html:254
+#: ../vnc.html:251
 msgid "Automatic Reconnect"
 msgstr ""
 
-#: ../vnc.html:257
+#: ../vnc.html:254
 msgid "Reconnect Delay (ms):"
 msgstr ""
 
-#: ../vnc.html:263
+#: ../vnc.html:260
 msgid "Logging:"
 msgstr ""
 
-#: ../vnc.html:275
+#: ../vnc.html:272
 msgid "Disconnect"
 msgstr ""
 
-#: ../vnc.html:294
+#: ../vnc.html:291
 msgid "Connect"
 msgstr ""
 
-#: ../vnc.html:304
+#: ../vnc.html:301
 msgid "Password:"
 msgstr ""
 
-#: ../vnc.html:318
-msgid "Cancel"
+#: ../vnc.html:305
+msgid "Send Password"
 msgstr ""
 
-#: ../vnc.html:334
-msgid "Canvas not supported."
+#: ../vnc.html:315
+msgid "Cancel"
 msgstr ""
diff --git a/po/tr.po b/po/tr.po
new file mode 100644 (file)
index 0000000..fdf3ba8
--- /dev/null
+++ b/po/tr.po
@@ -0,0 +1,288 @@
+# Turkish translations for noVNC package
+# Turkish translation for noVNC.
+# Copyright (C) 2016 Various Authors
+# This file is distributed under the same license as the noVNC package.
+# Ömer ÇAKMAK <farukomercakmak@gmail.com>, 2018.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: noVNC 0.6.1\n"
+"Report-Msgid-Bugs-To: novnc@googlegroups.com\n"
+"POT-Creation-Date: 2017-11-24 07:16+0000\n"
+"PO-Revision-Date: 2018-01-05 19:07+0300\n"
+"Last-Translator: Ömer ÇAKMAK <farukomercakmak@gmail.com>\n"
+"Language-Team: Türkçe <gnome-turk@gnome.org>\n"
+"Language: tr\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=1; plural=0;\n"
+"X-Generator: Gtranslator 2.91.7\n"
+
+#: ../app/ui.js:404
+msgid "Connecting..."
+msgstr "Bağlanıyor..."
+
+#: ../app/ui.js:411
+msgid "Disconnecting..."
+msgstr "Bağlantı kesiliyor..."
+
+#: ../app/ui.js:417
+msgid "Reconnecting..."
+msgstr "Yeniden bağlantı kuruluyor..."
+
+#: ../app/ui.js:422
+msgid "Internal error"
+msgstr "İç hata"
+
+#: ../app/ui.js:1019
+msgid "Must set host"
+msgstr "Sunucuyu kur"
+
+#: ../app/ui.js:1099
+msgid "Connected (encrypted) to "
+msgstr "Bağlı (şifrelenmiş)"
+
+#: ../app/ui.js:1101
+msgid "Connected (unencrypted) to "
+msgstr "Bağlandı (şifrelenmemiş)"
+
+#: ../app/ui.js:1119
+msgid "Something went wrong, connection is closed"
+msgstr "Bir şeyler ters gitti, bağlantı kesildi"
+
+#: ../app/ui.js:1129
+msgid "Disconnected"
+msgstr "Bağlantı kesildi"
+
+#: ../app/ui.js:1142
+msgid "New connection has been rejected with reason: "
+msgstr "Bağlantı aşağıdaki nedenlerden dolayı reddedildi: "
+
+#: ../app/ui.js:1145
+msgid "New connection has been rejected"
+msgstr "Bağlantı reddedildi"
+
+#: ../app/ui.js:1166
+msgid "Password is required"
+msgstr "Şifre gerekli"
+
+#: ../vnc.html:89
+msgid "noVNC encountered an error:"
+msgstr "Bir hata oluştu:"
+
+#: ../vnc.html:99
+msgid "Hide/Show the control bar"
+msgstr "Denetim masasını Gizle/Göster"
+
+#: ../vnc.html:106
+msgid "Move/Drag Viewport"
+msgstr "Görünümü Taşı/Sürükle"
+
+#: ../vnc.html:106
+msgid "viewport drag"
+msgstr "Görüntü penceresini sürükle"
+
+#: ../vnc.html:112 ../vnc.html:115 ../vnc.html:118 ../vnc.html:121
+msgid "Active Mouse Button"
+msgstr "Aktif Fare Düğmesi"
+
+#: ../vnc.html:112
+msgid "No mousebutton"
+msgstr "Fare düğmesi yok"
+
+#: ../vnc.html:115
+msgid "Left mousebutton"
+msgstr "Farenin sol düğmesi"
+
+#: ../vnc.html:118
+msgid "Middle mousebutton"
+msgstr "Farenin orta düğmesi"
+
+#: ../vnc.html:121
+msgid "Right mousebutton"
+msgstr "Farenin sağ düğmesi"
+
+#: ../vnc.html:124
+msgid "Keyboard"
+msgstr "Klavye"
+
+#: ../vnc.html:124
+msgid "Show Keyboard"
+msgstr "Klavye Düzenini Göster"
+
+#: ../vnc.html:131
+msgid "Extra keys"
+msgstr "Ekstra tuşlar"
+
+#: ../vnc.html:131
+msgid "Show Extra Keys"
+msgstr "Ekstra tuşları göster"
+
+#: ../vnc.html:136
+msgid "Ctrl"
+msgstr "Ctrl"
+
+#: ../vnc.html:136
+msgid "Toggle Ctrl"
+msgstr "Ctrl Değiştir "
+
+#: ../vnc.html:139
+msgid "Alt"
+msgstr "Alt"
+
+#: ../vnc.html:139
+msgid "Toggle Alt"
+msgstr "Alt Değiştir"
+
+#: ../vnc.html:142
+msgid "Send Tab"
+msgstr "Sekme Gönder"
+
+#: ../vnc.html:142
+msgid "Tab"
+msgstr "Sekme"
+
+#: ../vnc.html:145
+msgid "Esc"
+msgstr "Esc"
+
+#: ../vnc.html:145
+msgid "Send Escape"
+msgstr "Boşluk Gönder"
+
+#: ../vnc.html:148
+msgid "Ctrl+Alt+Del"
+msgstr "Ctrl + Alt + Del"
+
+#: ../vnc.html:148
+msgid "Send Ctrl-Alt-Del"
+msgstr "Ctrl-Alt-Del Gönder"
+
+#: ../vnc.html:156
+msgid "Shutdown/Reboot"
+msgstr "Kapat/Yeniden Başlat"
+
+#: ../vnc.html:156
+msgid "Shutdown/Reboot..."
+msgstr "Kapat/Yeniden Başlat..."
+
+#: ../vnc.html:162
+msgid "Power"
+msgstr "Güç"
+
+#: ../vnc.html:164
+msgid "Shutdown"
+msgstr "Kapat"
+
+#: ../vnc.html:165
+msgid "Reboot"
+msgstr "Yeniden Başlat"
+
+#: ../vnc.html:166
+msgid "Reset"
+msgstr "Sıfırla"
+
+#: ../vnc.html:171 ../vnc.html:177
+msgid "Clipboard"
+msgstr "Pano"
+
+#: ../vnc.html:181
+msgid "Clear"
+msgstr "Temizle"
+
+#: ../vnc.html:187
+msgid "Fullscreen"
+msgstr "Tam Ekran"
+
+#: ../vnc.html:192 ../vnc.html:199
+msgid "Settings"
+msgstr "Ayarlar"
+
+#: ../vnc.html:202
+msgid "Shared Mode"
+msgstr "Paylaşım Modu"
+
+#: ../vnc.html:205
+msgid "View Only"
+msgstr "Sadece Görüntüle"
+
+#: ../vnc.html:209
+msgid "Clip to Window"
+msgstr "Pencereye Tıkla"
+
+#: ../vnc.html:212
+msgid "Scaling Mode:"
+msgstr "Ölçekleme Modu:"
+
+#: ../vnc.html:214
+msgid "None"
+msgstr "Bilinmeyen"
+
+#: ../vnc.html:215
+msgid "Local Scaling"
+msgstr "Yerel Ölçeklendirme"
+
+#: ../vnc.html:216
+msgid "Remote Resizing"
+msgstr "Uzaktan Yeniden Boyutlandırma"
+
+#: ../vnc.html:221
+msgid "Advanced"
+msgstr "Gelişmiş"
+
+#: ../vnc.html:224
+msgid "Repeater ID:"
+msgstr "Tekralayıcı ID:"
+
+#: ../vnc.html:228
+msgid "WebSocket"
+msgstr "WebSocket"
+
+#: ../vnc.html:231
+msgid "Encrypt"
+msgstr "Şifrele"
+
+#: ../vnc.html:234
+msgid "Host:"
+msgstr "Ana makine:"
+
+#: ../vnc.html:238
+msgid "Port:"
+msgstr "Port:"
+
+#: ../vnc.html:242
+msgid "Path:"
+msgstr "Yol:"
+
+#: ../vnc.html:249
+msgid "Automatic Reconnect"
+msgstr "Otomatik Yeniden Bağlan"
+
+#: ../vnc.html:252
+msgid "Reconnect Delay (ms):"
+msgstr "Yeniden Bağlanma Süreci (ms):"
+
+#: ../vnc.html:258
+msgid "Logging:"
+msgstr "Giriş yapılıyor:"
+
+#: ../vnc.html:270
+msgid "Disconnect"
+msgstr "Bağlantıyı Kes"
+
+#: ../vnc.html:289
+msgid "Connect"
+msgstr "Bağlan"
+
+#: ../vnc.html:299
+msgid "Password:"
+msgstr "Parola:"
+
+#: ../vnc.html:313
+msgid "Cancel"
+msgstr "Vazgeç"
+
+#: ../vnc.html:329
+msgid "Canvas not supported."
+msgstr "Tuval desteklenmiyor."
index 2e8f90e2f2e947715a69524edc1c3522e40ce383..5a46f187d834a96a7149d0c716df68a0e2f60fb5 100644 (file)
@@ -1,4 +1,3 @@
-/* jshint expr: true */
 var expect = chai.expect;
 
 import Base64 from '../core/base64.js';
index 54a23e67abe8c45c436cac408bb927cfd4e98223..1c78fd68da581ed1ce451627ee9618088acf974e 100644 (file)
@@ -6,7 +6,6 @@ import sinon from '../vendor/sinon.js';
 import Keyboard from '../core/input/keyboard.js';
 import * as browser from '../core/util/browser.js';
 
-/* jshint newcap: false, expr: true */
 describe('Key Event Handling', function() {
     "use strict";
 
index 339144a509eb78be35e1185adf7d2861f6b47753..bcaafcf048d886f242a026e9fd0920a0e3f105ef 100644 (file)
@@ -1,5 +1,3 @@
-/* jshint expr: true */
-
 var assert = chai.assert;
 var expect = chai.expect;
 
index 248a933474c55bb6aea9c166356d049536bdc679..efc2eed44522f668d5d94ce51b307caddedcaa29 100644 (file)
@@ -6,7 +6,6 @@ import sinon from '../vendor/sinon.js';
 import Mouse from '../core/input/mouse.js';
 import * as eventUtils from '../core/util/events.js';
 
-/* jshint newcap: false, expr: true */
 describe('Mouse Event Handling', function() {
     "use strict";
 
index 31a7f2d58f0f79e2a99fd24410a57d3a7641cef3..8f5ee49af259ae5518f76663c351a44b795ebcc7 100644 (file)
@@ -1,4 +1,3 @@
-/* jshint expr: true */
 var assert = chai.assert;
 var expect = chai.expect;
 
index 1eab1e99bba8f703149abec8c2e73b053f217dba..48345433649b383babe7f77e89a25a438155a60a 100644 (file)
@@ -1,5 +1,3 @@
-/* jshint expr: true */
-
 var assert = chai.assert;
 var expect = chai.expect;
 
index 211ab60172d441d1632a1e01bbd31d8436412025..106639ababe63686398af97710e3e69464a400a7 100644 (file)
@@ -1,4 +1,3 @@
-/* jshint expr: true */
 var assert = chai.assert;
 var expect = chai.expect;
 
index 0588e0433bdca741edc1dd3d22cd32a4318f128e..c51915e2d948c05ad416dde0e2f43abfdfa9442b 100644 (file)
@@ -280,7 +280,7 @@ function longest_match(s, cur_match) {
      * the 256th check will be made at strstart+258.
      */
     do {
-      /*jshint noempty:false*/
+      // Do nothing
     } while (_win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
              _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
              _win[++scan] === _win[++match] && _win[++scan] === _win[++match] &&
@@ -892,7 +892,7 @@ function deflate_rle(s, flush) {
       if (prev === _win[++scan] && prev === _win[++scan] && prev === _win[++scan]) {
         strend = s.strstart + MAX_MATCH;
         do {
-          /*jshint noempty:false*/
+          // Do nothing
         } while (prev === _win[++scan] && prev === _win[++scan] &&
                  prev === _win[++scan] && prev === _win[++scan] &&
                  prev === _win[++scan] && prev === _win[++scan] &&