Skip to content

Commit

Permalink
Localize recently used styles
Browse files Browse the repository at this point in the history
  • Loading branch information
teusbenschop committed Mar 5, 2024
1 parent c090380 commit ddc521b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions editor/styles.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit ddc521b

Please sign in to comment.