mirror of https://github.com/kiwix/libkiwix.git
Translation of the library OPDS feed link hints
This commit is contained in:
parent
c85466995d
commit
fbf6d97f5e
|
@ -43,4 +43,5 @@
|
||||||
, "magnet-alt-text": "download magnet"
|
, "magnet-alt-text": "download magnet"
|
||||||
, "torrent-download-link-text": "Torrent file"
|
, "torrent-download-link-text": "Torrent file"
|
||||||
, "torrent-download-alt-text": "download torrent"
|
, "torrent-download-alt-text": "download torrent"
|
||||||
|
, "library-opds-feed": "Library OPDS Feed"
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,4 +45,5 @@
|
||||||
, "magnet-alt-text": "Hint for the icon of a magnet link"
|
, "magnet-alt-text": "Hint for the icon of a magnet link"
|
||||||
, "torrent-download-link-text": "Link text for downloading the torrent file"
|
, "torrent-download-link-text": "Link text for downloading the torrent file"
|
||||||
, "torrent-download-alt-text": "Hint for the icon of torrent download"
|
, "torrent-download-alt-text": "Hint for the icon of torrent download"
|
||||||
|
, "library-opds-feed": "Hint for the library OPDS feed link"
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,4 +32,5 @@
|
||||||
, "magnet-alt-text": "download [I18N TESTING] magnet"
|
, "magnet-alt-text": "download [I18N TESTING] magnet"
|
||||||
, "torrent-download-link-text": "Torrent [I18N TESTING] file"
|
, "torrent-download-link-text": "Torrent [I18N TESTING] file"
|
||||||
, "torrent-download-alt-text": "download [I18N TESTING] torrent"
|
, "torrent-download-alt-text": "download [I18N TESTING] torrent"
|
||||||
|
, "library-opds-feed": "Library [I18N] OPDS [TESTING] Feed"
|
||||||
}
|
}
|
||||||
|
|
|
@ -475,6 +475,11 @@
|
||||||
document.getElementById('searchButton').value = searchText;
|
document.getElementById('searchButton').value = searchText;
|
||||||
document.getElementById('categoryFilter').children[0].innerHTML = $t("book-filtering-all-categories");
|
document.getElementById('categoryFilter').children[0].innerHTML = $t("book-filtering-all-categories");
|
||||||
document.getElementById('languageFilter').children[0].innerHTML = $t("book-filtering-all-languages");
|
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() {
|
async function onload() {
|
||||||
|
|
|
@ -45,7 +45,12 @@
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<a href="{{root}}/catalog/v2/entries" id="feedLink">
|
<a href="{{root}}/catalog/v2/entries" id="feedLink">
|
||||||
<img src="{{root}}/skin/feed.png?KIWIXCACHEID" class="feedLogo" alt="Library OPDS Feed" aria-label="Library OPDS Feed" title="Library OPDS Feed">
|
<img src="{{root}}/skin/feed.png?KIWIXCACHEID"
|
||||||
|
class="feedLogo"
|
||||||
|
id="feedLogo"
|
||||||
|
alt="Library OPDS Feed"
|
||||||
|
aria-label="Library OPDS Feed"
|
||||||
|
title="Library OPDS Feed">
|
||||||
</a>
|
</a>
|
||||||
<div class='kiwixNav'>
|
<div class='kiwixNav'>
|
||||||
<select id="ui_language">
|
<select id="ui_language">
|
||||||
|
|
|
@ -63,7 +63,7 @@ const ResourceCollection resources200Compressible{
|
||||||
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/index.css" },
|
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/index.css" },
|
||||||
{ STATIC_CONTENT, "/ROOT%23%3F/skin/index.css?cacheid=ac5767d8" },
|
{ STATIC_CONTENT, "/ROOT%23%3F/skin/index.css?cacheid=ac5767d8" },
|
||||||
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/index.js" },
|
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/index.js" },
|
||||||
{ STATIC_CONTENT, "/ROOT%23%3F/skin/index.js?cacheid=2f15ed7d" },
|
{ STATIC_CONTENT, "/ROOT%23%3F/skin/index.js?cacheid=f045ea14" },
|
||||||
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/iso6391To3.js" },
|
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/iso6391To3.js" },
|
||||||
{ STATIC_CONTENT, "/ROOT%23%3F/skin/iso6391To3.js?cacheid=ecde2bb3" },
|
{ STATIC_CONTENT, "/ROOT%23%3F/skin/iso6391To3.js?cacheid=ecde2bb3" },
|
||||||
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/isotope.pkgd.min.js" },
|
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/isotope.pkgd.min.js" },
|
||||||
|
@ -284,8 +284,8 @@ R"EXPECTEDRESULT( href="/ROOT%23%3F/skin/index.css?cacheid=ac5767d8"
|
||||||
<script type="text/javascript" src="/ROOT%23%3F/skin/languages.js?cacheid=fe100348" defer></script>
|
<script type="text/javascript" src="/ROOT%23%3F/skin/languages.js?cacheid=fe100348" defer></script>
|
||||||
<script src="/ROOT%23%3F/skin/isotope.pkgd.min.js?cacheid=2e48d392" defer></script>
|
<script src="/ROOT%23%3F/skin/isotope.pkgd.min.js?cacheid=2e48d392" defer></script>
|
||||||
<script src="/ROOT%23%3F/skin/iso6391To3.js?cacheid=ecde2bb3"></script>
|
<script src="/ROOT%23%3F/skin/iso6391To3.js?cacheid=ecde2bb3"></script>
|
||||||
<script type="text/javascript" src="/ROOT%23%3F/skin/index.js?cacheid=2f15ed7d" defer></script>
|
<script type="text/javascript" src="/ROOT%23%3F/skin/index.js?cacheid=f045ea14" defer></script>
|
||||||
<img src="/ROOT%23%3F/skin/feed.png?cacheid=56a672b1" class="feedLogo" alt="Library OPDS Feed" aria-label="Library OPDS Feed" title="Library OPDS Feed">
|
<img src="/ROOT%23%3F/skin/feed.png?cacheid=56a672b1"
|
||||||
)EXPECTEDRESULT"
|
)EXPECTEDRESULT"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue