mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Partially revert "Translation" type changes to avoid breaking mods
This commit is contained in:
parent
b0d2342c66
commit
7e034814c1
@ -103,9 +103,6 @@ bool CModEntry::isVisible() const
|
||||
// Do not show not installed translation mods to languages other than player language
|
||||
if (localData.empty() && getBaseValue("language") != QString::fromStdString(settings["general"]["language"].String()) )
|
||||
return false;
|
||||
|
||||
if (isSubmod())
|
||||
return false;
|
||||
}
|
||||
|
||||
return !localData.isEmpty() || !repository.isEmpty();
|
||||
|
@ -119,10 +119,6 @@ void CModInfo::loadLocalData(const JsonNode & data)
|
||||
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")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user