Skip to content

Commit 3179e29

Browse files
Convert translatable strings part12
Manual conversion
1 parent e16ca08 commit 3179e29

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/webui/www/private/scripts/client.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ window.qBittorrent.Client = (() => {
7272
const emDash = '\u2014';
7373
const qbtVersion = window.qBittorrent.Cache.qbtVersion.get();
7474
const suffix = window.qBittorrent.Cache.preferences.get()['app_instance_name'] || '';
75-
const title = `qBittorrent ${qbtVersion} QBT_TR(WebUI)QBT_TR[CONTEXT=OptionsDialog]`
75+
const title = `qBittorrent ${qbtVersion} ${i18next.t('WebUI')})`
7676
+ ((suffix.length > 0) ? ` ${emDash} ${suffix}` : '');
7777
return title;
7878
};

src/webui/www/private/scripts/contextmenu.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -438,10 +438,10 @@ window.qBittorrent.ContextMenu = (function() {
438438
const contextCategoryList = $('contextCategoryList');
439439
contextCategoryList.getChildren().each(c => c.destroy());
440440
contextCategoryList.appendChild(new Element('li', {
441-
html: '<a href="javascript:torrentNewCategoryFN();"><img src="images/list-add.svg" alt=i18next.t("New...")/> QBT_TR(New...)QBT_TR[CONTEXT=TransferListWidget]</a>'
441+
html: '<a href="javascript:torrentNewCategoryFN();"><img src="images/list-add.svg" class="qbt-translatable" data-i18n="[alt]New..." alt=i18next.t("New...")/> QBT_TR(New...)QBT_TR[CONTEXT=TransferListWidget]</a>'
442442
}));
443443
contextCategoryList.appendChild(new Element('li', {
444-
html: '<a href="javascript:torrentSetCategoryFN(0);"><img src="images/edit-clear.svg" alt=i18next.t("Reset")/> QBT_TR(Reset)QBT_TR[CONTEXT=TransferListWidget]</a>'
444+
html: '<a href="javascript:torrentSetCategoryFN(0);"><img src="images/edit-clear.svg" class="qbt-translatable" data-i18n="[alt]Reset" alt=i18next.t("Reset")/> QBT_TR(Reset)QBT_TR[CONTEXT=TransferListWidget]</a>'
445445
}));
446446

447447
const sortedCategories = [];

0 commit comments

Comments
 (0)