Translation of the library OPDS feed link hints

This commit is contained in:
Veloman Yunkan
2023-02-09 17:24:57 +01:00
parent c85466995d
commit fbf6d97f5e
6 changed files with 21 additions and 8 deletions

View File

@ -43,4 +43,5 @@
, "magnet-alt-text": "download magnet"
, "torrent-download-link-text": "Torrent file"
, "torrent-download-alt-text": "download torrent"
, "library-opds-feed": "Library OPDS Feed"
}

View File

@ -45,4 +45,5 @@
, "magnet-alt-text": "Hint for the icon of a magnet link"
, "torrent-download-link-text": "Link text for downloading the torrent file"
, "torrent-download-alt-text": "Hint for the icon of torrent download"
, "library-opds-feed": "Hint for the library OPDS feed link"
}

View File

@ -32,4 +32,5 @@
, "magnet-alt-text": "download [I18N TESTING] magnet"
, "torrent-download-link-text": "Torrent [I18N TESTING] file"
, "torrent-download-alt-text": "download [I18N TESTING] torrent"
, "library-opds-feed": "Library [I18N] OPDS [TESTING] Feed"
}

View File

@ -475,6 +475,11 @@
document.getElementById('searchButton').value = searchText;
document.getElementById('categoryFilter').children[0].innerHTML = $t("book-filtering-all-categories");
document.getElementById('languageFilter').children[0].innerHTML = $t("book-filtering-all-languages");
const feedLogoElem = document.getElementById('feedLogo');
const libraryOpdsFeedHint = $t("library-opds-feed");
for (const attr of ["alt", "aria-label", "title"] ) {
feedLogoElem.setAttribute(attr, libraryOpdsFeedHint);
}
}
async function onload() {