mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
Disabled check for unused lines in translations due to false positives
This commit is contained in:
@@ -355,17 +355,17 @@ bool CGeneralTextHandler::validateTranslation(const std::string & language, cons
|
|||||||
|
|
||||||
bool allFound = true;
|
bool allFound = true;
|
||||||
|
|
||||||
for(const auto & string : config.Struct())
|
// for(const auto & string : config.Struct())
|
||||||
{
|
// {
|
||||||
if (stringsLocalizations.count(string.first) > 0)
|
// if (stringsLocalizations.count(string.first) > 0)
|
||||||
continue;
|
// continue;
|
||||||
|
//
|
||||||
if (allFound)
|
// if (allFound)
|
||||||
logMod->warn("Translation into language '%s' in mod '%s' has unused lines:", language, modContext);
|
// logMod->warn("Translation into language '%s' in mod '%s' has unused lines:", language, modContext);
|
||||||
|
//
|
||||||
logMod->warn(R"( "%s" : "%s",)", string.first, TextOperations::escapeString(string.second.String()));
|
// logMod->warn(R"( "%s" : "%s",)", string.first, TextOperations::escapeString(string.second.String()));
|
||||||
allFound = false;
|
// allFound = false;
|
||||||
}
|
// }
|
||||||
|
|
||||||
return allPresent && allFound;
|
return allPresent && allFound;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user