Introduced string identifiers for H3 texts, still WIP

This commit is contained in:
Ivan Savenko committed 2023-01-01 14:56:44 +02:00
1 parent 71bedf130f
commit bdb8e0ee5c
24 files changed
+387 -314

No files matched your search

+1 -1
View File
@@ -19,7 +19,7 @@ VCMI_LIB_NAMESPACE_BEGIN
std::string LogicalExpressionDetail::getTextForOperator(std::string operation)
{
//placed in cpp mostly to avoid unnecessary includes in header
return VLC->generaltexth->localizedTexts["logicalExpressions"][operation].String();
return VLC->generaltexth->translate("vcmi.logicalExpressions." + operation);
}
VCMI_LIB_NAMESPACE_END