1
0
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:
Ivan Savenko 2023-10-22 16:51:08 +03:00
parent b0d2342c66
commit 7e034814c1
2 changed files with 0 additions and 7 deletions

View File

@ -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();

View File

@ -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")
{