diff --git a/src/webui/abstractwebapplication.cpp b/src/webui/abstractwebapplication.cpp index ffc831924..b325b7d8c 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(); @@ -241,7 +241,7 @@ void AbstractWebApplication::translateDocument(QString& data) "HttpServer", "confirmDeletionDlg", "TrackerList", "TorrentFilesModel", "options_imp", "Preferences", "TrackersAdditionDlg", "ScanFoldersModel", "PropTabBar", "TorrentModel", "downloadFromURL", "MainWindow", "misc", - "StatusBar" + "StatusBar", "AboutDlg", "about", "PeerListWidget" }; const size_t context_count = sizeof(contexts) / sizeof(contexts[0]); int i = 0; diff --git a/src/webui/extra_translations.h b/src/webui/extra_translations.h index 460531152..0af373a2b 100644 --- a/src/webui/extra_translations.h +++ b/src/webui/extra_translations.h @@ -36,13 +36,12 @@ static const char *__TRANSLATIONS__[] = { QT_TRANSLATE_NOOP("HttpServer", "File"), QT_TRANSLATE_NOOP("HttpServer", "Edit"), QT_TRANSLATE_NOOP("HttpServer", "Help"), + QT_TRANSLATE_NOOP("HttpServer", "Logout"), QT_TRANSLATE_NOOP("HttpServer", "Download Torrents from their URL or Magnet link"), QT_TRANSLATE_NOOP("HttpServer", "Only one link per line"), QT_TRANSLATE_NOOP("HttpServer", "Download local torrent"), - QT_TRANSLATE_NOOP("HttpServer", "Torrent files were correctly added to download list."), - QT_TRANSLATE_NOOP("HttpServer", "Point to torrent file"), QT_TRANSLATE_NOOP("HttpServer", "Download"), - QT_TRANSLATE_NOOP("HttpServer", "Are you sure you want to delete the selected torrents from the transfer list and hard disk?"), + QT_TRANSLATE_NOOP("HttpServer", "Are you sure you want to delete the selected torrents from the transfer list?"), QT_TRANSLATE_NOOP("HttpServer", "Download rate limit must be greater than 0 or disabled."), QT_TRANSLATE_NOOP("HttpServer", "Upload rate limit must be greater than 0 or disabled."), QT_TRANSLATE_NOOP("HttpServer", "Maximum number of connections limit must be greater than 0 or disabled."), @@ -65,8 +64,23 @@ static const char *__TRANSLATIONS__[] = { QT_TRANSLATE_NOOP("HttpServer", "Invalid Username or Password."), QT_TRANSLATE_NOOP("HttpServer", "Password"), QT_TRANSLATE_NOOP("HttpServer", "Login"), - QT_TRANSLATE_NOOP("HttpServer", "qBittorrent web User Interface"), - QT_TRANSLATE_NOOP("HttpServer", "Upload Failed!") + QT_TRANSLATE_NOOP("HttpServer", "Upload Failed!"), + QT_TRANSLATE_NOOP("HttpServer", "Original authors"), + QT_TRANSLATE_NOOP("HttpServer", "Upload limit:"), + QT_TRANSLATE_NOOP("HttpServer", "Download limit:"), + QT_TRANSLATE_NOOP("HttpServer", "Apply"), + QT_TRANSLATE_NOOP("HttpServer", "Add"), + QT_TRANSLATE_NOOP("HttpServer", "Upload Torrents"), + QT_TRANSLATE_NOOP("HttpServer", "Use a different port for DHT and BitTorrent"), + QT_TRANSLATE_NOOP("HttpServer", "DHT port:"), + QT_TRANSLATE_NOOP("HttpServer", "All"), + QT_TRANSLATE_NOOP("HttpServer", "Downloading"), + QT_TRANSLATE_NOOP("HttpServer", "Seeding"), + QT_TRANSLATE_NOOP("HttpServer", "Completed"), + QT_TRANSLATE_NOOP("HttpServer", "Resumed"), + QT_TRANSLATE_NOOP("HttpServer", "Paused"), + QT_TRANSLATE_NOOP("HttpServer", "Active"), + QT_TRANSLATE_NOOP("HttpServer", "Inactive") }; static const struct { const char *source; const char *comment; } __COMMENTED_TRANSLATIONS__[] = { diff --git a/src/webui/www/private/index.html b/src/webui/www/private/index.html index 96c7db16d..6b166619c 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 @@ -126,9 +126,9 @@ QBT_TR(Alternative speed limits)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