Fix missing translations in search plugins dialog

Closes #11551.
This commit is contained in:
Chocobo1 2019-12-04 12:18:44 +08:00
parent 2e8b17e498
commit 04f270b9bc
No known key found for this signature in database
GPG key ID: 210D9C873253A68C

View file

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