1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-11-28 08:48:48 +02:00

Placeholders fix in map validation

This commit is contained in:
Evgeniy Meshcheryakov 2024-09-13 15:02:09 +03:00
parent 1e74216040
commit ecf83757ff
12 changed files with 24 additions and 24 deletions

View File

@ -1761,12 +1761,12 @@
</message>
<message>
<location filename="../validator.cpp" line="148"/>
<source>Spell scroll % 1 doesn&apos;t have instance assigned and must be removed</source>
<source>Spell scroll %1 doesn&apos;t have instance assigned and must be removed</source>
<translation> %1 </translation>
</message>
<message>
<location filename="../validator.cpp" line="154"/>
<source>Artifact % 1 is prohibited by map settings</source>
<source>Artifact %1 is prohibited by map settings</source>
<translation> %1 </translation>
</message>
<message>

View File

@ -1761,12 +1761,12 @@
</message>
<message>
<location filename="../validator.cpp" line="148"/>
<source>Spell scroll % 1 doesn&apos;t have instance assigned and must be removed</source>
<source>Spell scroll %1 doesn&apos;t have instance assigned and must be removed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../validator.cpp" line="154"/>
<source>Artifact % 1 is prohibited by map settings</source>
<source>Artifact %1 is prohibited by map settings</source>
<translation type="unfinished"></translation>
</message>
<message>

View File

@ -1761,12 +1761,12 @@
</message>
<message>
<location filename="../validator.cpp" line="148"/>
<source>Spell scroll % 1 doesn&apos;t have instance assigned and must be removed</source>
<source>Spell scroll %1 doesn&apos;t have instance assigned and must be removed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../validator.cpp" line="154"/>
<source>Artifact % 1 is prohibited by map settings</source>
<source>Artifact %1 is prohibited by map settings</source>
<translation type="unfinished"></translation>
</message>
<message>

View File

@ -1761,12 +1761,12 @@
</message>
<message>
<location filename="../validator.cpp" line="148"/>
<source>Spell scroll % 1 doesn&apos;t have instance assigned and must be removed</source>
<source>Spell scroll %1 doesn&apos;t have instance assigned and must be removed</source>
<translation>Le défilement de sort %1 n&apos;a pas d&apos;instance assignée et doit être enlevé</translation>
</message>
<message>
<location filename="../validator.cpp" line="154"/>
<source>Artifact % 1 is prohibited by map settings</source>
<source>Artifact %1 is prohibited by map settings</source>
<translation>L&apos;artéfact %1 est interdit par la configuration de la carte</translation>
</message>
<message>

View File

@ -1761,12 +1761,12 @@
</message>
<message>
<location filename="../validator.cpp" line="148"/>
<source>Spell scroll % 1 doesn&apos;t have instance assigned and must be removed</source>
<source>Spell scroll %1 doesn&apos;t have instance assigned and must be removed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../validator.cpp" line="154"/>
<source>Artifact % 1 is prohibited by map settings</source>
<source>Artifact %1 is prohibited by map settings</source>
<translation type="unfinished"></translation>
</message>
<message>

View File

@ -1761,12 +1761,12 @@
</message>
<message>
<location filename="../validator.cpp" line="148"/>
<source>Spell scroll % 1 doesn&apos;t have instance assigned and must be removed</source>
<source>Spell scroll %1 doesn&apos;t have instance assigned and must be removed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../validator.cpp" line="154"/>
<source>Artifact % 1 is prohibited by map settings</source>
<source>Artifact %1 is prohibited by map settings</source>
<translation type="unfinished"></translation>
</message>
<message>

View File

@ -1761,12 +1761,12 @@
</message>
<message>
<location filename="../validator.cpp" line="148"/>
<source>Spell scroll % 1 doesn&apos;t have instance assigned and must be removed</source>
<source>Spell scroll %1 doesn&apos;t have instance assigned and must be removed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../validator.cpp" line="154"/>
<source>Artifact % 1 is prohibited by map settings</source>
<source>Artifact %1 is prohibited by map settings</source>
<translation type="unfinished"></translation>
</message>
<message>

View File

@ -1761,12 +1761,12 @@
</message>
<message>
<location filename="../validator.cpp" line="148"/>
<source>Spell scroll % 1 doesn&apos;t have instance assigned and must be removed</source>
<source>Spell scroll %1 doesn&apos;t have instance assigned and must be removed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../validator.cpp" line="154"/>
<source>Artifact % 1 is prohibited by map settings</source>
<source>Artifact %1 is prohibited by map settings</source>
<translation type="unfinished"></translation>
</message>
<message>

View File

@ -1761,12 +1761,12 @@
</message>
<message>
<location filename="../validator.cpp" line="148"/>
<source>Spell scroll % 1 doesn&apos;t have instance assigned and must be removed</source>
<source>Spell scroll %1 doesn&apos;t have instance assigned and must be removed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../validator.cpp" line="154"/>
<source>Artifact % 1 is prohibited by map settings</source>
<source>Artifact %1 is prohibited by map settings</source>
<translation type="unfinished"></translation>
</message>
<message>

View File

@ -1761,12 +1761,12 @@
</message>
<message>
<location filename="../validator.cpp" line="148"/>
<source>Spell scroll % 1 doesn&apos;t have instance assigned and must be removed</source>
<source>Spell scroll %1 doesn&apos;t have instance assigned and must be removed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../validator.cpp" line="154"/>
<source>Artifact % 1 is prohibited by map settings</source>
<source>Artifact %1 is prohibited by map settings</source>
<translation type="unfinished"></translation>
</message>
<message>

View File

@ -1761,12 +1761,12 @@
</message>
<message>
<location filename="../validator.cpp" line="148"/>
<source>Spell scroll % 1 doesn&apos;t have instance assigned and must be removed</source>
<source>Spell scroll %1 doesn&apos;t have instance assigned and must be removed</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../validator.cpp" line="154"/>
<source>Artifact % 1 is prohibited by map settings</source>
<source>Artifact %1 is prohibited by map settings</source>
<translation type="unfinished"></translation>
</message>
<message>

View File

@ -145,13 +145,13 @@ std::set<Validator::Issue> Validator::validate(const CMap * map)
issues.insert({ tr("Spell scroll %1 is prohibited by map settings").arg(ins->storedArtifact->getScrollSpellID().toEntity(VLC->spells())->getNameTranslated().c_str()), false });
}
else
issues.insert({ tr("Spell scroll % 1 doesn't have instance assigned and must be removed").arg(ins->instanceName.c_str()), true });
issues.insert({ tr("Spell scroll %1 doesn't have instance assigned and must be removed").arg(ins->instanceName.c_str()), true });
}
else
{
if(ins->ID == Obj::ARTIFACT && map->allowedArtifact.count(ins->getArtifact()) == 0)
{
issues.insert({ tr("Artifact % 1 is prohibited by map settings").arg(ins->getObjectName().c_str()), false });
issues.insert({ tr("Artifact %1 is prohibited by map settings").arg(ins->getObjectName().c_str()), false });
}
}
}