mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Minor refactoring of translations:
- removed unsuccessful and broken validation of translations - pass JsonNode when registering strings to provide information on mod source
This commit is contained in:
@@ -431,9 +431,9 @@ std::shared_ptr<CArtifact> CArtHandler::loadFromJson(const std::string & scope,
|
||||
|
||||
const JsonNode & text = node["text"];
|
||||
|
||||
VLC->generaltexth->registerString(scope, art->getNameTextID(), text["name"].String());
|
||||
VLC->generaltexth->registerString(scope, art->getDescriptionTextID(), text["description"].String());
|
||||
VLC->generaltexth->registerString(scope, art->getEventTextID(), text["event"].String());
|
||||
VLC->generaltexth->registerString(scope, art->getNameTextID(), text["name"]);
|
||||
VLC->generaltexth->registerString(scope, art->getDescriptionTextID(), text["description"]);
|
||||
VLC->generaltexth->registerString(scope, art->getEventTextID(), text["event"]);
|
||||
|
||||
const JsonNode & graphics = node["graphics"];
|
||||
art->image = graphics["image"].String();
|
||||
|
||||
Reference in New Issue
Block a user