From 4a66c33a2c02828a1d02edd37cfd572343c7984a Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 14 Jan 2011 19:03:48 +0000 Subject: [PATCH] Improved Web UI translation --- src/webui/httpserver.cpp | 1 + src/webui/scripts/client.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/webui/httpserver.cpp b/src/webui/httpserver.cpp index 66f6e731e..028f316ea 100644 --- a/src/webui/httpserver.cpp +++ b/src/webui/httpserver.cpp @@ -127,6 +127,7 @@ HttpServer::HttpServer(int msec, QObject* parent) : QTcpServer(parent) { a = tr("The Web UI username must be at least 3 characters long."); a = tr("The Web UI password must be at least 3 characters long."); a = tr("Save"); + a = tr("qBittorrent client is not reachable"); } HttpServer::~HttpServer() diff --git a/src/webui/scripts/client.js b/src/webui/scripts/client.js index 1c876bab4..1d5362f92 100644 --- a/src/webui/scripts/client.js +++ b/src/webui/scripts/client.js @@ -212,7 +212,7 @@ window.addEvent('load', function(){ noCache: true, method: 'get', onFailure: function() { - $('error_div').set('html', 'qBittorrent client is not reachable'); + $('error_div').set('html', '_(qBittorrent client is not reachable)'); waitingTrInfo=false; loadTransferInfo.delay(4000); },