From ec6eac2ba1ce1dea63320ce8c436d38572e514f1 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Sun, 16 Jun 2024 23:14:21 +0300 Subject: [PATCH] Revert "Avoid leaking user locale preference to the web" This reverts commit 66c34ddb6ecaca93513edcb58d50404822cda368. --- src/webui/www/public/index.html | 12 ++++++------ src/webui/www/public/scripts/login.js | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/webui/www/public/index.html b/src/webui/www/public/index.html index 31a1ad482..277eda872 100644 --- a/src/webui/www/public/index.html +++ b/src/webui/www/public/index.html @@ -7,7 +7,7 @@ - qBittorrent WebUI + qBittorrent QBT_TR(WebUI)QBT_TR[CONTEXT=OptionsDialog] @@ -22,25 +22,25 @@
-

qBittorrent WebUI

+

qBittorrent QBT_TR(WebUI)QBT_TR[CONTEXT=OptionsDialog]

-
+
-
+
- +
diff --git a/src/webui/www/public/scripts/login.js b/src/webui/www/public/scripts/login.js index ba52efdf8..dcdc270a6 100644 --- a/src/webui/www/public/scripts/login.js +++ b/src/webui/www/public/scripts/login.js @@ -111,13 +111,13 @@ function submitLoginForm(event) { if ((xhr.status === 200) && (xhr.responseText === "Ok.")) location.replace(location); else - errorMsgElement.textContent = i18next.t('Invalid Username or Password.'); + errorMsgElement.textContent = 'QBT_TR(Invalid Username or Password.)QBT_TR[CONTEXT=HttpServer]'; } }); xhr.addEventListener('error', () => { errorMsgElement.textContent = (xhr.responseText !== "") ? xhr.responseText - : i18next.t('Unable to log in, server is probably unreachable.'); + : 'QBT_TR(Unable to log in, qBittorrent is probably unreachable.)QBT_TR[CONTEXT=HttpServer]'; }); const usernameElement = document.getElementById('username');