diff --git a/src/server/response.cpp b/src/server/response.cpp index fa1365cf0..7046a289e 100644 --- a/src/server/response.cpp +++ b/src/server/response.cpp @@ -291,6 +291,7 @@ void ContentResponse::introduce_taskbar(const std::string& lang) {"withlibrarybutton", m_withLibraryButton}, {"LIBRARY_BUTTON_TEXT", t("library-button-text")}, {"HOME_BUTTON_TEXT", t("home-button-text", {{"BOOK_TITLE", m_bookTitle}}) }, + {"RANDOM_PAGE_BUTTON_TEXT", t("random-page-button-text") }, }; auto head_content = render_template(RESOURCE::templates::head_taskbar_html, data); m_content = prependToFirstOccurence( diff --git a/static/i18n/en.json b/static/i18n/en.json index 8b9906db5..ca00d9691 100644 --- a/static/i18n/en.json +++ b/static/i18n/en.json @@ -21,4 +21,5 @@ , "no-search-results": "The fulltext search engine is not available for this content." , "library-button-text": "Go to welcome page" , "home-button-text": "Go to the main page of '{{BOOK_TITLE}}'" + , "random-page-button-text": "Go to a randomly selected page" } diff --git a/static/i18n/hy.json b/static/i18n/hy.json index 8892761ac..b64c2fd7b 100644 --- a/static/i18n/hy.json +++ b/static/i18n/hy.json @@ -11,4 +11,5 @@ , "404-page-heading" : "Սխալ հասցե" , "library-button-text": "Գրադարանի էջ" , "home-button-text": "Դեպի '{{BOOK_TITLE}}'֊ի գլխավոր էջը" + , "random-page-button-text": "Բացել պատահական էջ" } diff --git a/static/i18n/qqq.json b/static/i18n/qqq.json index 436d666cd..c705fecb3 100644 --- a/static/i18n/qqq.json +++ b/static/i18n/qqq.json @@ -22,4 +22,5 @@ , "no-search-results": "Text of the error page returned when search is attempted in a book without fulltext search database" , "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" + , "random-page-button-text": "Tooltip of the button opening a randomly selected page" } diff --git a/static/templates/taskbar_part.html b/static/templates/taskbar_part.html index 3992be3c4..b76c1c0d4 100644 --- a/static/templates/taskbar_part.html +++ b/static/templates/taskbar_part.html @@ -16,7 +16,7 @@ {{/withlibrarybutton}} {{#hascontent}} - {{/hascontent}}