Browse Source

Fix missing translations in search plugins dialog

Closes #11551.
adaptive-webui-19844
Chocobo1 5 years ago
parent
commit
04f270b9bc
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
  1. 8
      src/webui/www/private/scripts/dynamicTable.js

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

@ -1602,14 +1602,14 @@ window.qBittorrent.DynamicTable = (function() {
this.columns['enabled'].updateTd = function(td, row) { this.columns['enabled'].updateTd = function(td, row) {
const value = this.getRowValue(row); const value = this.getRowValue(row);
if (value) { if (value) {
td.set('text', "Yes"); td.set('text', 'QBT_TR(Yes)QBT_TR[CONTEXT=SearchPluginsTable]');
td.set('title', "Yes"); td.set('title', 'QBT_TR(Yes)QBT_TR[CONTEXT=SearchPluginsTable]');
td.getParent("tr").addClass("green"); td.getParent("tr").addClass("green");
td.getParent("tr").removeClass("red"); td.getParent("tr").removeClass("red");
} }
else { else {
td.set('text', "No"); td.set('text', 'QBT_TR(No)QBT_TR[CONTEXT=SearchPluginsTable]');
td.set('title', "No"); td.set('title', 'QBT_TR(No)QBT_TR[CONTEXT=SearchPluginsTable]');
td.getParent("tr").addClass("red"); td.getParent("tr").addClass("red");
td.getParent("tr").removeClass("green"); td.getParent("tr").removeClass("green");
} }

Loading…
Cancel
Save