Browse Source

Translate WebUI torrents Status column

Closes #9554.
adaptive-webui-19844
Thomas Piccirello 6 years ago
parent
commit
7b85473d2b
  1. 34
      src/webui/www/private/scripts/dynamicTable.js

34
src/webui/www/private/scripts/dynamicTable.js

@ -856,58 +856,58 @@ var TorrentsTable = new Class({
var status; var status;
switch (state) { switch (state) {
case "downloading": case "downloading":
status = "Downloading"; status = "QBT_TR(Downloading)QBT_TR[CONTEXT=TransferListDelegate]";
break; break;
case "stalledDL": case "stalledDL":
status = "Stalled"; status = "QBT_TR(Stalled)QBT_TR[CONTEXT=TransferListDelegate]";
break; break;
case "metaDL": case "metaDL":
status = "Downloading metadata"; status = "QBT_TR(Downloading metadata)QBT_TR[CONTEXT=TransferListDelegate]";
break; break;
case "forcedDL": case "forcedDL":
status = "[F] Downloading"; status = "QBT_TR([F] Downloading)QBT_TR[CONTEXT=TransferListDelegate]";
break; break;
case "allocating": case "allocating":
status = "Allocating"; status = "QBT_TR(Allocating)QBT_TR[CONTEXT=TransferListDelegate]";
break; break;
case "uploading": case "uploading":
case "stalledUP": case "stalledUP":
status = "Seeding"; status = "QBT_TR(Seeding)QBT_TR[CONTEXT=TransferListDelegate]";
break; break;
case "forcedUP": case "forcedUP":
status = "[F] Seeding"; status = "QBT_TR([F] Seeding)QBT_TR[CONTEXT=TransferListDelegate]";
break; break;
case "queuedDL": case "queuedDL":
case "queuedUP": case "queuedUP":
status = "Queued"; status = "QBT_TR(Queued)QBT_TR[CONTEXT=TransferListDelegate]";
break; break;
case "checkingDL": case "checkingDL":
case "checkingUP": case "checkingUP":
status = "Checking"; status = "QBT_TR(Checking)QBT_TR[CONTEXT=TransferListDelegate]";
break; break;
case "queuedForChecking": case "queuedForChecking":
status = "Queued for checking"; status = "QBT_TR(Queued for checking)QBT_TR[CONTEXT=TransferListDelegate]";
break; break;
case "checkingResumeData": case "checkingResumeData":
status = "Checking resume data"; status = "QBT_TR(Checking resume data)QBT_TR[CONTEXT=TransferListDelegate]";
break; break;
case "pausedDL": case "pausedDL":
status = "Paused"; status = "QBT_TR(Paused)QBT_TR[CONTEXT=TransferListDelegate]";
break; break;
case "pausedUP": case "pausedUP":
status = "Completed"; status = "QBT_TR(Completed)QBT_TR[CONTEXT=TransferListDelegate]";
break; break;
case "moving": case "moving":
status = "Moving"; status = "QBT_TR(Moving)QBT_TR[CONTEXT=TransferListDelegate]";
break; break;
case "missingFiles": case "missingFiles":
status = "Missing Files"; status = "QBT_TR(Missing Files)QBT_TR[CONTEXT=TransferListDelegate]";
break; break;
case "error": case "error":
status = "Errored"; status = "QBT_TR(Errored)QBT_TR[CONTEXT=TransferListDelegate]";
break; break;
default: default:
status = "Unknown"; status = "QBT_TR(Unknown)QBT_TR[CONTEXT=HttpServer]";
} }
td.set('html', status); td.set('html', status);

Loading…
Cancel
Save