From 5e9797686f27c6b3dd5aa63a9c6f741c87a169e0 Mon Sep 17 00:00:00 2001 From: Nikolay Borodin Date: Mon, 25 Nov 2024 00:42:35 +0200 Subject: [PATCH] Added correct translation for author --- src/multimenu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/multimenu.cpp b/src/multimenu.cpp index d7b0a7dccb0..5b7a62aa450 100644 --- a/src/multimenu.cpp +++ b/src/multimenu.cpp @@ -529,7 +529,7 @@ void addMultiRequest(const char *searchDir, const char *fileExtension, UDWORD mo { std::string withoutTechlevel = mapNameWithoutTechlevel(mapData->pName.c_str()); std::string tip = withoutTechlevel + - (mapData->pAuthor.empty() ? "" : "\n" + std::string(_("By ")) + mapData->pAuthor); + (mapData->pAuthor.empty() ? "" : "\n" + astringf(_("By %s"), mapData->pAuthor.c_str())); // add number of players to string. auto button = std::make_shared(); requestList->attach(button);