mirror of
https://github.com/vcmi/vcmi.git
synced 2025-06-17 00:07:41 +02:00
Hide not installed translation mods to languages other than selected one
This commit is contained in:
@ -115,9 +115,14 @@ void CModInfo::loadLocalData(const JsonNode & data)
|
||||
{
|
||||
if (baseLanguage != VLC->generaltexth->getPreferredLanguage())
|
||||
{
|
||||
logGlobal->warn("Translation mod %s was not loaded: language mismatch!", verificationInfo.name);
|
||||
if (identifier.find_last_of('.') == std::string::npos)
|
||||
logGlobal->warn("Translation mod %s was not loaded: language mismatch!", verificationInfo.name);
|
||||
implicitlyEnabled = false;
|
||||
}
|
||||
|
||||
// Translation submods are always explicitly enabled
|
||||
if (identifier.find_last_of('.') != std::string::npos)
|
||||
explicitlyEnabled = true;
|
||||
}
|
||||
if (config["modType"].String() == "Compatibility")
|
||||
{
|
||||
|
Reference in New Issue
Block a user