1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-06-15 00:05:02 +02:00

Add string IDs in map editor

This commit is contained in:
nordsoft
2023-09-28 14:38:31 +02:00
parent 60df49236f
commit 98fde9ab1d
7 changed files with 37 additions and 27 deletions

View File

@ -319,8 +319,10 @@ TModID CModHandler::findResourceOrigin(const ResourcePath & name)
std::string CModHandler::getModLanguage(const TModID& modId) const
{
if ( modId == "core")
if(modId == "core")
return VLC->generaltexth->getInstalledLanguage();
if(modId == "map")
return VLC->generaltexth->getPreferredLanguage();
return allMods.at(modId).baseLanguage;
}