mirror of https://github.com/kiwix/libkiwix.git
First translation on the welcome page
This commit is contained in:
parent
bf80367b5a
commit
7307a9a1b7
|
@ -28,4 +28,5 @@
|
||||||
, "random-page-button-text": "Go to a randomly selected page"
|
, "random-page-button-text": "Go to a randomly selected page"
|
||||||
, "searchbox-tooltip": "Search '{{BOOK_TITLE}}'"
|
, "searchbox-tooltip": "Search '{{BOOK_TITLE}}'"
|
||||||
, "confusion-of-tongues": "Two or more books in different languages would participate in search, which may lead to confusing results."
|
, "confusion-of-tongues": "Two or more books in different languages would participate in search, which may lead to confusing results."
|
||||||
|
, "welcome-page-overzealous-filter": "No result. Would you like to <a href=\"?lang=\">reset filter</a>?"
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,5 +29,5 @@
|
||||||
"library-button-text": "Tooltip of the button leading to the welcome page",
|
"library-button-text": "Tooltip of the button leading to the welcome page",
|
||||||
"home-button-text": "Tooltip of the button leading to the main page of a book",
|
"home-button-text": "Tooltip of the button leading to the main page of a book",
|
||||||
"random-page-button-text": "Tooltip of the button opening a randomly selected page",
|
"random-page-button-text": "Tooltip of the button opening a randomly selected page",
|
||||||
"searchbox-tooltip": "Tooltip displayed for the search box"
|
, "welcome-page-overzealous-filter": "Text shown when book filtering on the welcome page produces zero results"
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,4 +17,5 @@
|
||||||
, "home-button-text": "[I18N TESTING] Jump to the main page of '{{BOOK_TITLE}}'"
|
, "home-button-text": "[I18N TESTING] Jump to the main page of '{{BOOK_TITLE}}'"
|
||||||
, "random-page-button-text": "[I18N TESTING] I am tired of determinism"
|
, "random-page-button-text": "[I18N TESTING] I am tired of determinism"
|
||||||
, "searchbox-tooltip": "[I18N TESTING] Let's search in '{{BOOK_TITLE}}'"
|
, "searchbox-tooltip": "[I18N TESTING] Let's search in '{{BOOK_TITLE}}'"
|
||||||
|
, "welcome-page-overzealous-filter": "[I18N TESTING] Nothing found. <a href=\"?lang=\">Reset filter</a>"
|
||||||
}
|
}
|
||||||
|
|
|
@ -298,7 +298,7 @@
|
||||||
const kiwixHomeBody = document.querySelector('.kiwixHomeBody');
|
const kiwixHomeBody = document.querySelector('.kiwixHomeBody');
|
||||||
const divTag = document.createElement('div');
|
const divTag = document.createElement('div');
|
||||||
divTag.setAttribute('class', 'noResults');
|
divTag.setAttribute('class', 'noResults');
|
||||||
divTag.innerHTML = `No result. Would you like to <a href="?lang=">reset filter</a>?`;
|
divTag.innerHTML = $t("welcome-page-overzealous-filter");
|
||||||
kiwixHomeBody.append(divTag);
|
kiwixHomeBody.append(divTag);
|
||||||
kiwixHomeBody.setAttribute('style', 'display: flex; justify-content: center; align-items: center');
|
kiwixHomeBody.setAttribute('style', 'display: flex; justify-content: center; align-items: center');
|
||||||
loader.setAttribute('style', 'position: absolute; top: 50%');
|
loader.setAttribute('style', 'position: absolute; top: 50%');
|
||||||
|
@ -462,7 +462,7 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
window.onload = async () => {
|
async function onload() {
|
||||||
iso = new Isotope( '.book__list', {
|
iso = new Isotope( '.book__list', {
|
||||||
itemSelector: '.book',
|
itemSelector: '.book',
|
||||||
getSortData:{
|
getSortData:{
|
||||||
|
@ -508,6 +508,13 @@
|
||||||
}
|
}
|
||||||
updateFeedLink();
|
updateFeedLink();
|
||||||
setCookie(filterCookieName, params.toString());
|
setCookie(filterCookieName, params.toString());
|
||||||
|
};
|
||||||
|
|
||||||
|
// required by i18n.js:setUserLanguage()
|
||||||
|
window.setPermanentGlobalCookie = function(name, value) {
|
||||||
|
document.cookie = `${name}=${value};path=${root};max-age=31536000`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
window.onload = () => { setUserLanguage(getUserLanguage(), onload); }
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
|
|
@ -37,6 +37,7 @@
|
||||||
src: url("{{root}}/skin/fonts/Roboto.ttf?KIWIXCACHEID") format("truetype");
|
src: url("{{root}}/skin/fonts/Roboto.ttf?KIWIXCACHEID") format("truetype");
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<script type="module" src="{{root}}/skin/i18n.js?KIWIXCACHEID" defer></script>
|
||||||
<script src="{{root}}/skin/isotope.pkgd.min.js?KIWIXCACHEID" defer></script>
|
<script src="{{root}}/skin/isotope.pkgd.min.js?KIWIXCACHEID" defer></script>
|
||||||
<script src="{{root}}/skin/iso6391To3.js?KIWIXCACHEID"></script>
|
<script src="{{root}}/skin/iso6391To3.js?KIWIXCACHEID"></script>
|
||||||
<script type="text/javascript" src="{{root}}/skin/index.js?KIWIXCACHEID" defer></script>
|
<script type="text/javascript" src="{{root}}/skin/index.js?KIWIXCACHEID" defer></script>
|
||||||
|
|
|
@ -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=316dbc21" },
|
{ STATIC_CONTENT, "/ROOT%23%3F/skin/index.css?cacheid=316dbc21" },
|
||||||
{ 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=b0cc9d6b" },
|
{ STATIC_CONTENT, "/ROOT%23%3F/skin/index.js?cacheid=ffc9a141" },
|
||||||
{ 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" },
|
||||||
|
@ -280,9 +280,10 @@ R"EXPECTEDRESULT( href="/ROOT%23%3F/skin/index.css?cacheid=316dbc21"
|
||||||
<meta name="msapplication-config" content="/ROOT%23%3F/skin/favicon/browserconfig.xml?cacheid=f29a7c4a">
|
<meta name="msapplication-config" content="/ROOT%23%3F/skin/favicon/browserconfig.xml?cacheid=f29a7c4a">
|
||||||
src: url("/ROOT%23%3F/skin/fonts/Poppins.ttf?cacheid=af705837") format("truetype");
|
src: url("/ROOT%23%3F/skin/fonts/Poppins.ttf?cacheid=af705837") format("truetype");
|
||||||
src: url("/ROOT%23%3F/skin/fonts/Roboto.ttf?cacheid=84d10248") format("truetype");
|
src: url("/ROOT%23%3F/skin/fonts/Roboto.ttf?cacheid=84d10248") format("truetype");
|
||||||
|
<script type="module" src="/ROOT%23%3F/skin/i18n.js?cacheid=6da2bca0" 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=b0cc9d6b" defer></script>
|
<script type="text/javascript" src="/ROOT%23%3F/skin/index.js?cacheid=ffc9a141" 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" class="feedLogo" alt="Library OPDS Feed" aria-label="Library OPDS Feed" title="Library OPDS Feed">
|
||||||
)EXPECTEDRESULT"
|
)EXPECTEDRESULT"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue