diff --git a/static/skin/i18n/en.json b/static/skin/i18n/en.json index 332c25ab8..cd5f71b46 100644 --- a/static/skin/i18n/en.json +++ b/static/skin/i18n/en.json @@ -34,4 +34,13 @@ , "book-filtering-all-categories": "All categories" , "book-filtering-all-languages": "All languages" , "count-of-matching-books": "{{COUNT}} book(s)" + , "download": "Download" + , "direct-download-link-text": "Direct" + , "direct-download-alt-text": "direct download" + , "hash-download-link-text": "Sha256 hash" + , "hash-download-alt-text": "download hash" + , "magnet-link-text": "Magnet link" + , "magnet-alt-text": "download magnet" + , "torrent-download-link-text": "Torrent file" + , "torrent-download-alt-text": "download torrent" } diff --git a/static/skin/i18n/qqq.json b/static/skin/i18n/qqq.json index ebf8bfbc1..752ae1050 100644 --- a/static/skin/i18n/qqq.json +++ b/static/skin/i18n/qqq.json @@ -36,4 +36,13 @@ , "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" + , "download": "A general download action" + , "direct-download-link-text": "Link text for a direct download" + , "direct-download-alt-text": "Hint for a direct download icon" + , "hash-download-link-text": "Link text for downloading the hash" + , "hash-download-alt-text": "Hint for the icon of hash download" + , "magnet-link-text": "Link text for 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-alt-text": "Hint for the icon of torrent download" } diff --git a/static/skin/i18n/test.json b/static/skin/i18n/test.json index 2609b945d..7b0857bae 100644 --- a/static/skin/i18n/test.json +++ b/static/skin/i18n/test.json @@ -23,4 +23,13 @@ , "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}}" + , "download": "[I18N Download TESTING]" + , "direct-download-link-text": "[I18N TESTING] HTTP(S)" + , "direct-download-alt-text": "[I18N TESTING] download directly" + , "hash-download-link-text": "Sha256 [I18N TESTING] hash" + , "hash-download-alt-text": "download [I18N TESTING] hash" + , "magnet-link-text": "Magnet [I18N TESTING] link" + , "magnet-alt-text": "download [I18N TESTING] magnet" + , "torrent-download-link-text": "Torrent [I18N TESTING] file" + , "torrent-download-alt-text": "download [I18N TESTING] torrent" } diff --git a/static/skin/index.js b/static/skin/index.js index 7d8dc0fad..a2e7479ca 100644 --- a/static/skin/index.js +++ b/static/skin/index.js @@ -143,7 +143,7 @@
${title}
- ${downloadLink ? `
Download ${humanFriendlyZimSize ? ` - ${humanFriendlyZimSize}
`: ''}` : ''} + ${downloadLink ? `
${$t("download")} ${humanFriendlyZimSize ? ` - ${humanFriendlyZimSize}
`: ''}` : ''}
${description}
@@ -209,27 +209,27 @@ diff --git a/test/server.cpp b/test/server.cpp index 00568a7d4..a1277a77d 100644 --- a/test/server.cpp +++ b/test/server.cpp @@ -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=a1d9a5d5" }, + { STATIC_CONTENT, "/ROOT%23%3F/skin/index.js?cacheid=1f5f1cce" }, { 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" - + )EXPECTEDRESULT" }, @@ -294,10 +294,10 @@ R"EXPECTEDRESULT( background-image: url('../skin/search-icon.svg?cacheid=b10a }, { /* url */ "/ROOT%23%3F/skin/index.js", -R"EXPECTEDRESULT( direct download - download hash - download magnet - download torrent +R"EXPECTEDRESULT( ${$t( + ${$t( + ${$t( + ${$t( )EXPECTEDRESULT" }, {