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 @@
<script src="scripts/lib/excanvas-compressed.js"></script> <script src="scripts/lib/excanvas-compressed.js"></script>
<![endif]--> <![endif]-->
<script src="scripts/lib/mocha-yc.js"></script> <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/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/progressbar.js"></script>
<script src="scripts/dynamicTable.js"></script> <script src="scripts/dynamicTable.js?locale=${LANG}"></script>
<script src="scripts/client.js"></script> <script src="scripts/client.js?locale=${LANG}"></script>
<script src="scripts/contextmenu.js"></script> <script src="scripts/contextmenu.js?locale=${LANG}"></script>
</head> </head>
<body> <body>

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

@ -7,7 +7,7 @@
<link rel="stylesheet" href="css/style.css" type="text/css" /> <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-core-yc.js"></script>
<script src="scripts/lib/mootools-1.2-more.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> <script>
var newCategoryKeyboardEvents = new Keyboard({ var newCategoryKeyboardEvents = new Keyboard({
defaultEventType: 'keydown', defaultEventType: 'keydown',

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

@ -7,7 +7,7 @@
<link rel="stylesheet" href="css/style.css" type="text/css" /> <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-core-yc.js"></script>
<script src="scripts/lib/mootools-1.2-more.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> <script>
var renameKeyboardEvents = new Keyboard({ var renameKeyboardEvents = new Keyboard({
defaultEventType: 'keydown', defaultEventType: 'keydown',

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);

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

@ -7,7 +7,7 @@
<link rel="stylesheet" href="css/style.css" type="text/css" /> <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-core-yc.js"></script>
<script src="scripts/lib/mootools-1.2-more.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> <script>
var setLocationKeyboardEvents = new Keyboard({ var setLocationKeyboardEvents = new Keyboard({
defaultEventType: 'keydown', defaultEventType: 'keydown',

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

@ -7,7 +7,7 @@
<link rel="stylesheet" href="css/style.css" type="text/css" /> <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-core-yc.js"></script>
<script src="scripts/lib/mootools-1.2-more.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> <script>
var UseGlobalLimit = -2; var UseGlobalLimit = -2;
var NoLimit = -1; var NoLimit = -1;

Loading…
Cancel
Save