Skip to content

Commit

Permalink
Fix translation of research messages
Browse files Browse the repository at this point in the history
* show translations for titles and button tooltips of research messages
  in the intelligence screen

Fixes ticket:4843
  • Loading branch information
Forgon2100 committed Mar 17, 2019
1 parent 198215b commit f1b170d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/intelmap.cpp
Expand Up @@ -317,7 +317,7 @@ static bool intAddMessageForm(bool playCurrent)
psResearch = getResearchForMsg(psMessage->pViewData);
if (psResearch)
{
button->setTip(psResearch->name.toUtf8().c_str());
button->setTip(_(psResearch->name.toUtf8().c_str()));
}
else
{
Expand Down Expand Up @@ -453,7 +453,7 @@ bool intAddMessageView(MESSAGE *psMessage)

ASSERT_OR_RETURN(false, psResearch != nullptr, "Research not found");
//sLabInit.pText=psResearch->pName;
sLabInit.pText = WzString::fromUtf8(psResearch->name.toUtf8().c_str());
sLabInit.pText = WzString::fromUtf8(_(psResearch->name.toUtf8().c_str()));

sLabInit.FontID = font_regular;
if (!widgAddLabel(psWScreen, &sLabInit))
Expand Down

0 comments on commit f1b170d

Please sign in to comment.