mirror of https://github.com/kiwix/libkiwix.git
One more translation on the welcome page
This translation has to deal with handling of plural forms which is a tricky part of internationalization, but we are not going to complicate things in our code and will offload the headache to translators (they will have to invent a single message for all numbers).
This commit is contained in:
parent
d42fa22450
commit
fa7d044037
|
@ -33,4 +33,5 @@
|
|||
, "search": "Search"
|
||||
, "book-filtering-all-categories": "All categories"
|
||||
, "book-filtering-all-languages": "All languages"
|
||||
, "count-of-matching-books": "{{COUNT}} book(s)"
|
||||
}
|
||||
|
|
|
@ -35,4 +35,5 @@
|
|||
, "search": "A general search action (text displayed on search buttons or as aplaceholder in searchboxes)"
|
||||
, "book-filtering-all-categories": "Choosing this filter will disable filtering of books by category"
|
||||
, "book-filtering-all-languages": "Choosing this filter will disable filtering of books by language"
|
||||
, "count-of-matching-books": "Reporting the count of books matching the filter"
|
||||
}
|
||||
|
|
|
@ -22,4 +22,5 @@
|
|||
, "search": "[I18N Search TESTING]"
|
||||
, "book-filtering-all-categories": "All [I18N TESTING] categories"
|
||||
, "book-filtering-all-languages": "All [I18N TESTING] languages"
|
||||
, "count-of-matching-books": "[I18N TESTING] Number of matching books: {{COUNT}}"
|
||||
}
|
||||
|
|
|
@ -262,16 +262,10 @@
|
|||
} else {
|
||||
toggleFooter();
|
||||
}
|
||||
const kiwixResultText = document.querySelector('.kiwixHomeBody__results')
|
||||
if (results) {
|
||||
let resultText = `${results} books`;
|
||||
if (results === 1) {
|
||||
resultText = `${results} book`;
|
||||
}
|
||||
kiwixResultText.innerHTML = resultText;
|
||||
} else {
|
||||
kiwixResultText.innerHTML = ``;
|
||||
}
|
||||
const text = results
|
||||
? $t("count-of-matching-books", {COUNT: results})
|
||||
: '';
|
||||
document.querySelector('.kiwixHomeBody__results').innerHTML = text;
|
||||
loader.style.display = 'none';
|
||||
return books;
|
||||
});
|
||||
|
|
|
@ -63,7 +63,7 @@ const ResourceCollection resources200Compressible{
|
|||
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/index.css" },
|
||||
{ STATIC_CONTENT, "/ROOT%23%3F/skin/index.css?cacheid=316dbc21" },
|
||||
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/index.js" },
|
||||
{ STATIC_CONTENT, "/ROOT%23%3F/skin/index.js?cacheid=73356624" },
|
||||
{ STATIC_CONTENT, "/ROOT%23%3F/skin/index.js?cacheid=e0a31131" },
|
||||
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/iso6391To3.js" },
|
||||
{ STATIC_CONTENT, "/ROOT%23%3F/skin/iso6391To3.js?cacheid=ecde2bb3" },
|
||||
{ DYNAMIC_CONTENT, "/ROOT%23%3F/skin/isotope.pkgd.min.js" },
|
||||
|
@ -283,7 +283,7 @@ R"EXPECTEDRESULT( href="/ROOT%23%3F/skin/index.css?cacheid=316dbc21"
|
|||
<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/iso6391To3.js?cacheid=ecde2bb3"></script>
|
||||
<script type="text/javascript" src="/ROOT%23%3F/skin/index.js?cacheid=73356624" defer></script>
|
||||
<script type="text/javascript" src="/ROOT%23%3F/skin/index.js?cacheid=e0a31131" 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">
|
||||
)EXPECTEDRESULT"
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue