Add LessThanEquals and GreaterThanEquals sanity type checks part 2: Add the according notification strings

meow-7.2.2
Ansariel 2015-05-01 22:05:57 +02:00
parent e00cc1c9ce
commit ab490c9102
3 changed files with 9 additions and 1 deletions

View File

@ -77,7 +77,7 @@ void SanityCheck::onSanity(LLControlVariable* controlp)
map["VALUE_1"] = sanityValues[0].asString();
map["VALUE_2"] = sanityValues[1].asString();
map["CONTROL_NAME"] = controlp->getName();
args["SANITY_MESSAGE"] = LLTrans::getString(checkType,map);
args["SANITY_MESSAGE"] = LLTrans::getString(checkType, map);
args["SANITY_COMMENT"] = controlp->getSanityComment();
args["CURRENT_VALUE"] = controlp->getValue().asString();
LLNotificationsUtil::add("SanityCheck", args);

View File

@ -5820,6 +5820,12 @@ Setzen Sie den Editorpfad in Anführungszeichen
<string name="SanityCheckGreaterThan">
Die Einstellung &quot;[CONTROL_NAME]&quot; sollte einen Wert größer als [VALUE_1] haben.
</string>
<string name="SanityCheckLessThanEquals">
Die Einstellung &quot;[CONTROL_NAME]&quot; sollte einen Wert kleiner als oder gleich [VALUE_1] haben.
</string>
<string name="SanityCheckGreaterThanEquals">
Die Einstellung &quot;[CONTROL_NAME]&quot; sollte einen Wert größer als oder gleich [VALUE_1] haben.
</string>
<string name="SanityCheckBetween">
Die Einstellung &quot;[CONTROL_NAME]&quot; sollte einen Wert zwischen [VALUE_1] und [VALUE_2] haben.
</string>

View File

@ -2577,6 +2577,8 @@ Try enclosing path to the editor with double quotes.
<string name="SanityCheckNotEquals">The settings control &quot;[CONTROL_NAME]&quot; should not be set to [VALUE_1].</string>
<string name="SanityCheckLessThan">The settings control &quot;[CONTROL_NAME]&quot; should be lower than [VALUE_1].</string>
<string name="SanityCheckGreaterThan">The settings control &quot;[CONTROL_NAME]&quot; should be higher than [VALUE_1].</string>
<string name="SanityCheckLessThanEquals">The settings control &quot;[CONTROL_NAME]&quot; should be lower than or equal [VALUE_1].</string>
<string name="SanityCheckGreaterThanEquals">The settings control &quot;[CONTROL_NAME]&quot; should be higher than or equal [VALUE_1].</string>
<string name="SanityCheckBetween">The settings control &quot;[CONTROL_NAME]&quot; should be between [VALUE_1] and [VALUE_2].</string>
<string name="SanityCheckNotBetween">The settings control &quot;[CONTROL_NAME]&quot; should not be between [VALUE_1] and [VALUE_2].</string>