From c5ce99ebecb31ca60e442c4416c04a40b90c3120 Mon Sep 17 00:00:00 2001 From: ngosang Date: Sat, 23 May 2015 19:20:04 +0200 Subject: [PATCH 1/3] Web UI: Changes in title bar --- src/webui/abstractwebapplication.cpp | 2 +- src/webui/www/private/index.html | 2 +- src/webui/www/private/login.html | 4 ++-- src/webui/www/public/about.html | 2 +- src/webui/www/public/scripts/client.js | 9 +++++---- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/webui/abstractwebapplication.cpp b/src/webui/abstractwebapplication.cpp index ffc831924..da78b172b 100644 --- a/src/webui/abstractwebapplication.cpp +++ b/src/webui/abstractwebapplication.cpp @@ -194,7 +194,7 @@ bool AbstractWebApplication::readFile(const QString& path, QByteArray &data, QSt QString dataStr = QString::fromUtf8(data.constData()); translateDocument(dataStr); - if (path.endsWith("about.html")) + if (path.endsWith("about.html") || path.endsWith("index.html") || path.endsWith("client.js")) dataStr.replace("${VERSION}", VERSION); data = dataStr.toUtf8(); diff --git a/src/webui/www/private/index.html b/src/webui/www/private/index.html index 96c7db16d..769b43662 100644 --- a/src/webui/www/private/index.html +++ b/src/webui/www/private/index.html @@ -3,7 +3,7 @@ - QBT_TR(qBittorrent web User Interface)QBT_TR + qBittorrent ${VERSION} QBT_TR(Web UI)QBT_TR diff --git a/src/webui/www/private/login.html b/src/webui/www/private/login.html index 2e8c9ed93..252eb3fb6 100644 --- a/src/webui/www/private/login.html +++ b/src/webui/www/private/login.html @@ -3,7 +3,7 @@ - QBT_TR(qBittorrent web User Interface)QBT_TR + qBittorrent QBT_TR(Web UI)QBT_TR