From 45729def6d7d0c4bc8327cf331554680100da3ad Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 15 Nov 2016 08:13:16 +0100 Subject: [PATCH] Restore translations for some strings We lost the translation calls for a couple of strings in one of the clenaups. --- app/ui.js | 2 +- core/rfb.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ui.js b/app/ui.js index fd769c57..93e43fde 100644 --- a/app/ui.js +++ b/app/ui.js @@ -1049,7 +1049,7 @@ var UI; }, 100); if (typeof msg === 'undefined') { - msg = "Password is required"; + msg = _("Password is required"); } Util.Warn(msg); UI.showStatus(msg, "warning"); diff --git a/core/rfb.js b/core/rfb.js index ddc92bbb..7e2da6f3 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -553,7 +553,7 @@ this._disconnect(); this._disconnTimer = setTimeout(function () { - this._rfb_disconnect_reason = "Disconnect timeout"; + this._rfb_disconnect_reason = _("Disconnect timeout"); this._updateConnectionState('disconnected'); }.bind(this), this._disconnectTimeout * 1000); break;