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:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user