Skip to content

Commit

Permalink
Convert translatable strings part12
Browse files Browse the repository at this point in the history
Manual conversion
  • Loading branch information
sledgehammer999 committed Mar 25, 2024
1 parent e16ca08 commit 3179e29
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/webui/www/private/scripts/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ window.qBittorrent.Client = (() => {
const emDash = '\u2014';
const qbtVersion = window.qBittorrent.Cache.qbtVersion.get();
const suffix = window.qBittorrent.Cache.preferences.get()['app_instance_name'] || '';
const title = `qBittorrent ${qbtVersion} QBT_TR(WebUI)QBT_TR[CONTEXT=OptionsDialog]`
const title = `qBittorrent ${qbtVersion} ${i18next.t('WebUI')})`
+ ((suffix.length > 0) ? ` ${emDash} ${suffix}` : '');
return title;
};
Expand Down
4 changes: 2 additions & 2 deletions src/webui/www/private/scripts/contextmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,10 @@ window.qBittorrent.ContextMenu = (function() {
const contextCategoryList = $('contextCategoryList');
contextCategoryList.getChildren().each(c => c.destroy());
contextCategoryList.appendChild(new Element('li', {
html: '<a href="javascript:torrentNewCategoryFN();"><img src="images/list-add.svg" alt=i18next.t("New...")/> QBT_TR(New...)QBT_TR[CONTEXT=TransferListWidget]</a>'
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>'
}));
contextCategoryList.appendChild(new Element('li', {
html: '<a href="javascript:torrentSetCategoryFN(0);"><img src="images/edit-clear.svg" alt=i18next.t("Reset")/> QBT_TR(Reset)QBT_TR[CONTEXT=TransferListWidget]</a>'
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>'
}));

const sortedCategories = [];
Expand Down

0 comments on commit 3179e29

Please sign in to comment.