diff --git a/src/gui/advancedsettings.cpp b/src/gui/advancedsettings.cpp index 20dc66591..baa4dc939 100644 --- a/src/gui/advancedsettings.cpp +++ b/src/gui/advancedsettings.cpp @@ -362,7 +362,7 @@ void AdvancedSettings::loadAdvancedSettings() outgoing_ports_max.setValue(session->outgoingPortsMax()); addRow(OUTGOING_PORT_MAX, tr("Outgoing ports (Max) [0: Disabled]"), &outgoing_ports_max); // uTP-TCP mixed mode - comboUtpMixedMode.addItems({"Prefer TCP", "Peer proportional (throttles TCP)"}); + comboUtpMixedMode.addItems({tr("Prefer TCP"), tr("Peer proportional (throttles TCP)")}); comboUtpMixedMode.setCurrentIndex(static_cast(session->utpMixedMode())); addRow(UTP_MIX_MODE, tr("%1-TCP mixed mode algorithm", "uTP-TCP mixed mode algorithm").arg(C_UTP), &comboUtpMixedMode); // multiple connections per IP @@ -449,11 +449,11 @@ void AdvancedSettings::loadAdvancedSettings() spin_tracker_port.setValue(pref->getTrackerPort()); addRow(TRACKER_PORT, tr("Embedded tracker port"), &spin_tracker_port); // Choking algorithm - comboChokingAlgorithm.addItems({"Fixed slots", "Upload rate based"}); + comboChokingAlgorithm.addItems({tr("Fixed slots"), tr("Upload rate based")}); comboChokingAlgorithm.setCurrentIndex(static_cast(session->chokingAlgorithm())); addRow(CHOKING_ALGORITHM, tr("Upload slots behavior"), &comboChokingAlgorithm); // Seed choking algorithm - comboSeedChokingAlgorithm.addItems({"Round-robin", "Fastest upload", "Anti-leech"}); + comboSeedChokingAlgorithm.addItems({tr("Round-robin"), tr("Fastest upload"), tr("Anti-leech")}); comboSeedChokingAlgorithm.setCurrentIndex(static_cast(session->seedChokingAlgorithm())); addRow(SEED_CHOKING_ALGORITHM, tr("Upload choking algorithm"), &comboSeedChokingAlgorithm); diff --git a/src/webui/extra_translations.h b/src/webui/extra_translations.h index d5bf319fa..d06ad9a0e 100644 --- a/src/webui/extra_translations.h +++ b/src/webui/extra_translations.h @@ -32,7 +32,7 @@ #include // Additional translations for Web UI -static const char *__TRANSLATIONS__[] = { +const char *QBT_WEBUI_TRANSLATIONS[] = { QT_TRANSLATE_NOOP("HttpServer", "Logout"), QT_TRANSLATE_NOOP("HttpServer", "Exit qBittorrent"), QT_TRANSLATE_NOOP("HttpServer", "Download Torrents from their URLs or Magnet links"), @@ -81,7 +81,7 @@ static const char *__TRANSLATIONS__[] = { QT_TRANSLATE_NOOP("HttpServer", "Rename torrent") }; -static const struct { const char *source; const char *comment; } __COMMENTED_TRANSLATIONS__[] = { +const struct { const char *source; const char *comment; } QBT_WEBUI_COMMENTED_TRANSLATIONS[] = { QT_TRANSLATE_NOOP3("HttpServer", "Other...", "Save Files to: Watch Folder / Default Folder / Other..."), QT_TRANSLATE_NOOP3("HttpServer", "Monday", "Schedule the use of alternative rate limits on ..."), QT_TRANSLATE_NOOP3("HttpServer", "Tuesday", "Schedule the use of alternative rate limits on ..."), diff --git a/src/webui/www/private/index.html b/src/webui/www/private/index.html index d6b4aea08..7363f33e6 100644 --- a/src/webui/www/private/index.html +++ b/src/webui/www/private/index.html @@ -64,7 +64,7 @@ QBT_TR(&View)QBT_TR[CONTEXT=MainWindow] diff --git a/src/webui/www/private/preferences_content.html b/src/webui/www/private/preferences_content.html index aae68c59f..85af4571b 100644 --- a/src/webui/www/private/preferences_content.html +++ b/src/webui/www/private/preferences_content.html @@ -51,7 +51,7 @@
- +
@@ -74,7 +74,7 @@
- +
QBT_TR(Supported parameters (case sensitive):)QBT_TR[CONTEXT=OptionsDialog]
    @@ -192,7 +192,7 @@
    - +
    @@ -248,7 +248,7 @@
    - + QBT_TR(From:)QBT_TR[CONTEXT=OptionsDialog] : QBT_TR(To:)QBT_TR[CONTEXT=OptionsDialog] : @@ -299,7 +299,7 @@
    - +
    @@ -354,7 +354,7 @@
    - +
    @@ -426,7 +426,7 @@
    - +
    @@ -453,7 +453,7 @@
    - +
    @@ -462,7 +462,7 @@
    - +