Browse Source

Merge pull request #9585 from Piccirello/webui-translate-status

Translate WebUI torrents Status column
adaptive-webui-19844
Vladimir Golovnev 6 years ago committed by GitHub
parent
commit
1de7c385d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      src/webui/www/private/index.html
  2. 2
      src/webui/www/private/newcategory.html
  3. 2
      src/webui/www/private/rename.html
  4. 34
      src/webui/www/private/scripts/dynamicTable.js
  5. 2
      src/webui/www/private/setlocation.html
  6. 2
      src/webui/www/private/shareratio.html

10
src/webui/www/private/index.html

@ -19,13 +19,13 @@ @@ -19,13 +19,13 @@
<script src="scripts/lib/excanvas-compressed.js"></script>
<![endif]-->
<script src="scripts/lib/mocha-yc.js"></script>
<script src="scripts/mocha-init.js"></script>
<script src="scripts/mocha-init.js?locale=${LANG}"></script>
<script src="scripts/lib/clipboard.min.js"></script>
<script src="scripts/misc.js"></script>
<script src="scripts/misc.js?locale=${LANG}"></script>
<script src="scripts/progressbar.js"></script>
<script src="scripts/dynamicTable.js"></script>
<script src="scripts/client.js"></script>
<script src="scripts/contextmenu.js"></script>
<script src="scripts/dynamicTable.js?locale=${LANG}"></script>
<script src="scripts/client.js?locale=${LANG}"></script>
<script src="scripts/contextmenu.js?locale=${LANG}"></script>
</head>
<body>

2
src/webui/www/private/newcategory.html

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
<link rel="stylesheet" href="css/style.css" type="text/css" />
<script src="scripts/lib/mootools-1.2-core-yc.js"></script>
<script src="scripts/lib/mootools-1.2-more.js"></script>
<script src="scripts/misc.js"></script>
<script src="scripts/misc.js?locale=${LANG}"></script>
<script>
var newCategoryKeyboardEvents = new Keyboard({
defaultEventType: 'keydown',

2
src/webui/www/private/rename.html

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
<link rel="stylesheet" href="css/style.css" type="text/css" />
<script src="scripts/lib/mootools-1.2-core-yc.js"></script>
<script src="scripts/lib/mootools-1.2-more.js"></script>
<script src="scripts/misc.js"></script>
<script src="scripts/misc.js?locale=${LANG}"></script>
<script>
var renameKeyboardEvents = new Keyboard({
defaultEventType: 'keydown',

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

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

2
src/webui/www/private/setlocation.html

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
<link rel="stylesheet" href="css/style.css" type="text/css" />
<script src="scripts/lib/mootools-1.2-core-yc.js"></script>
<script src="scripts/lib/mootools-1.2-more.js"></script>
<script src="scripts/misc.js"></script>
<script src="scripts/misc.js?locale=${LANG}"></script>
<script>
var setLocationKeyboardEvents = new Keyboard({
defaultEventType: 'keydown',

2
src/webui/www/private/shareratio.html

@ -7,7 +7,7 @@ @@ -7,7 +7,7 @@
<link rel="stylesheet" href="css/style.css" type="text/css" />
<script src="scripts/lib/mootools-1.2-core-yc.js"></script>
<script src="scripts/lib/mootools-1.2-more.js"></script>
<script src="scripts/misc.js"></script>
<script src="scripts/misc.js?locale=${LANG}"></script>
<script>
var UseGlobalLimit = -2;
var NoLimit = -1;

Loading…
Cancel
Save