From 357334fb4606cfe7984f4c4efeea43b99b4d1aae Mon Sep 17 00:00:00 2001 From: ngosang Date: Wed, 8 Jul 2015 06:31:33 +0200 Subject: [PATCH] [Web UI] Fix alternative global rate limits. --- src/webui/extra_translations.h | 6 +- src/webui/www/public/preferences_content.html | 154 +++++++++++------- 2 files changed, 99 insertions(+), 61 deletions(-) diff --git a/src/webui/extra_translations.h b/src/webui/extra_translations.h index 3b059793c..9a6cd7f64 100644 --- a/src/webui/extra_translations.h +++ b/src/webui/extra_translations.h @@ -42,8 +42,10 @@ static const char *__TRANSLATIONS__[] = { QT_TRANSLATE_NOOP("HttpServer", "Download local torrent"), QT_TRANSLATE_NOOP("HttpServer", "Download"), 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", "Global upload rate limit must be greater than 0 or disabled."), + QT_TRANSLATE_NOOP("HttpServer", "Global download rate limit must be greater than 0 or disabled."), + QT_TRANSLATE_NOOP("HttpServer", "Alternative upload rate limit must be greater than 0 or disabled."), + QT_TRANSLATE_NOOP("HttpServer", "Alternative download 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."), QT_TRANSLATE_NOOP("HttpServer", "Maximum number of connections per torrent limit must be greater than 0 or disabled."), QT_TRANSLATE_NOOP("HttpServer", "Maximum number of upload slots per torrent limit must be greater than 0 or disabled."), diff --git a/src/webui/www/public/preferences_content.html b/src/webui/www/public/preferences_content.html index 24e602652..6ccd6c208 100644 --- a/src/webui/www/public/preferences_content.html +++ b/src/webui/www/public/preferences_content.html @@ -196,13 +196,15 @@ @@ -394,6 +396,14 @@
- QBT_TR(Upload:)QBT_TR + +   QBT_TR(KiB/s)QBT_TR
- QBT_TR(Download:)QBT_TR + +   QBT_TR(KiB/s)QBT_TR