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:
@ -596,7 +596,7 @@ void CGCreature::giveReward(const CGHeroInstance * h) const
|
||||
if(iw.components.size())
|
||||
{
|
||||
iw.text.addTxt(MetaString::ADVOB_TXT, 183); // % has found treasure
|
||||
iw.text.addReplacement(h->name);
|
||||
iw.text.addReplacement(h->getNameTranslated());
|
||||
cb->showInfoDialog(&iw);
|
||||
}
|
||||
}
|
||||
@ -1347,7 +1347,7 @@ void CGArtifact::onHeroVisit(const CGHeroInstance * h) const
|
||||
else //fix for mod artifacts with no event text
|
||||
{
|
||||
iw.text.addTxt(MetaString::ADVOB_TXT, 183); //% has found treasure
|
||||
iw.text.addReplacement(h->name);
|
||||
iw.text.addReplacement(h->getNameTranslated());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user