mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-15 00:05:02 +02:00
All heroes-related strings are passed through translator
This commit is contained in:
@ -568,7 +568,7 @@ void CMap::checkForObjectives()
|
||||
boost::algorithm::replace_first(event.onFulfill, "%s", town->name);
|
||||
const CGHeroInstance *hero = dynamic_cast<const CGHeroInstance*>(cond.object);
|
||||
if (hero)
|
||||
boost::algorithm::replace_first(event.onFulfill, "%s", hero->name);
|
||||
boost::algorithm::replace_first(event.onFulfill, "%s", hero->getNameTranslated());
|
||||
}
|
||||
break;
|
||||
|
||||
@ -580,7 +580,7 @@ void CMap::checkForObjectives()
|
||||
{
|
||||
const CGHeroInstance *hero = dynamic_cast<const CGHeroInstance*>(cond.object);
|
||||
if (hero)
|
||||
boost::algorithm::replace_first(event.onFulfill, "%s", hero->name);
|
||||
boost::algorithm::replace_first(event.onFulfill, "%s", hero->getNameTranslated());
|
||||
}
|
||||
break;
|
||||
case EventCondition::TRANSPORT:
|
||||
|
Reference in New Issue
Block a user