diff --git a/src/server/i18n.h b/src/server/i18n.h
index 3a3698f9c..d4b084d3e 100644
--- a/src/server/i18n.h
+++ b/src/server/i18n.h
@@ -60,6 +60,11 @@ public:
return getTranslatedString(m_lang, key);
}
+ std::string operator()(const std::string& key, const Parameters& params) const
+ {
+ return expandParameterizedString(m_lang, key, params);
+ }
+
private:
const std::string m_lang;
};
diff --git a/src/server/response.cpp b/src/server/response.cpp
index bc2337add..fa1365cf0 100644
--- a/src/server/response.cpp
+++ b/src/server/response.cpp
@@ -290,6 +290,7 @@ void ContentResponse::introduce_taskbar(const std::string& lang)
{"title", m_bookTitle},
{"withlibrarybutton", m_withLibraryButton},
{"LIBRARY_BUTTON_TEXT", t("library-button-text")},
+ {"HOME_BUTTON_TEXT", t("home-button-text", {{"BOOK_TITLE", m_bookTitle}}) },
};
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 2f24a1a4b..8b9906db5 100644
--- a/static/i18n/en.json
+++ b/static/i18n/en.json
@@ -20,4 +20,5 @@
, "fulltext-search-unavailable" : "Fulltext search unavailable"
, "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}}'"
}
diff --git a/static/i18n/hy.json b/static/i18n/hy.json
index 6fd473363..8892761ac 100644
--- a/static/i18n/hy.json
+++ b/static/i18n/hy.json
@@ -10,4 +10,5 @@
, "404-page-title" : "Սխալ հասցե"
, "404-page-heading" : "Սխալ հասցե"
, "library-button-text": "Գրադարանի էջ"
+ , "home-button-text": "Դեպի '{{BOOK_TITLE}}'֊ի գլխավոր էջը"
}
diff --git a/static/i18n/qqq.json b/static/i18n/qqq.json
index 20860ed5a..436d666cd 100644
--- a/static/i18n/qqq.json
+++ b/static/i18n/qqq.json
@@ -21,4 +21,5 @@
, "fulltext-search-unavailable" : "Title of the error page returned when search is attempted in a book without fulltext search database"
, "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"
}
diff --git a/static/templates/taskbar_part.html b/static/templates/taskbar_part.html
index b3268769a..3992be3c4 100644
--- a/static/templates/taskbar_part.html
+++ b/static/templates/taskbar_part.html
@@ -15,7 +15,7 @@
{{/withlibrarybutton}}
{{#hascontent}}
-
+
{{/hascontent}}