From ddc521b4c01766ada6cbf175ba27889c5fcb4874 Mon Sep 17 00:00:00 2001 From: Teus Benschop Date: Tue, 5 Mar 2024 18:28:28 +0100 Subject: [PATCH] Localize recently used styles https://github.com/bibledit/cloud/issues/922 --- editor/styles.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/styles.cpp b/editor/styles.cpp index e35f8fd83..8f2b0ade8 100644 --- a/editor/styles.cpp +++ b/editor/styles.cpp @@ -51,8 +51,8 @@ std::string Editor_Styles::getRecentlyUsed (Webserver_Request& webserver_request const std::string& marker = styles.at(i); Database_Styles_Item data = webserver_request.database_styles()->getMarkerData (stylesheet, marker); if (data.marker.empty ()) continue; - const std::string name = data.name + " (" + marker + ")"; - const std::string info = data.info; + const std::string name = translate(data.name) + " (" + marker + ")"; + const std::string info = translate(data.info); pugi::xml_document document; pugi::xml_node a_node = document.append_child("a"); a_node.append_attribute("href") = marker.c_str();