fix type mistake, plus correcting math.

This commit is contained in:
Niels Lyngsø
2019-03-25 14:04:31 +01:00
parent 0cc6e51b7a
commit 286978647e
5 changed files with 7 additions and 7 deletions

View File

@@ -8,10 +8,10 @@
</span>
<div class="help" ng-if="model.maxlength === true && model.count >= (model.config.maxChars*.8) && model.count <= model.config.maxChars">
<localize key="textbox_characters_left" tokens="[model.count, model.config.maxChars]">characters left</localize>
<localize key="textbox_characters_left" tokens="[model.config.maxChars - model.count]">characters left</localize>
</div>
<div class="help text-error" ng-if="model.maxlength === true && model.count > model.config.maxChars">
<localize key="textbox_characters_exceed" tokens="[model.count, model.config.maxChars]">Maximum {0} characters ({1} too many)</localize>
<localize key="textbox_characters_exceed" tokens="[model.config.maxChars, model.count - model.config.maxChars]">Maximum {0} characters ({1} too many)</localize>
</div>
</ng-form>

View File

@@ -13,10 +13,10 @@
</span>
<div class="help" ng-if="model.count >= (model.config.maxChars*.8) && model.count <= model.config.maxChars">
<localize key="textbox_characters_left" tokens="[model.count, model.config.maxChars]">characters left</localize>
<localize key="textbox_characters_left" tokens="[model.config.maxChars - model.count]">characters left</localize>
</div>
<div class="help text-error" ng-if="model.count > model.config.maxChars">
<localize key="textbox_characters_exceed" tokens="[model.count, model.config.maxChars]">Maximum {0} characters ({1} too many)</localize>
<localize key="textbox_characters_exceed" tokens="[model.config.maxChars, model.count - model.config.maxChars]">Maximum {0} characters ({1} too many)</localize>
</div>
</ng-form>

View File

@@ -1569,7 +1569,7 @@ Mange hilsner fra Umbraco robotten
<key alias="emptyDictionaryTree">Ingen ordbog elementer at vælge imellem</key>
</area>
<area alias="textbox">
<key alias="characters_left">><![CDATA[<strong>{0}</strong> tegn tilbage.]]></key>
<key alias="characters_left"><![CDATA[<strong>{0}</strong> tegn tilbage.]]></key>
<key alias="characters_exceed"><![CDATA[Maksimum {0} tegn, <strong>{1}</strong> for mange.]]></key>
</area>
<area alias="recycleBin">

View File

@@ -2079,7 +2079,7 @@ To manage your website, simply open the Umbraco back office and start adding con
<key alias="emptyDictionaryTree">No Dictionary items to choose from</key>
</area>
<area alias="textbox">
<key alias="characters_left">><![CDATA[<strong>{0}</strong> characters left.]]></key>
<key alias="characters_left"><![CDATA[<strong>{0}</strong> characters left.]]></key>
<key alias="characters_exceed"><![CDATA[Maximum {0} characters, <strong>{1}</strong> too many.]]></key>
</area>
<area alias="recycleBin">

View File

@@ -2091,7 +2091,7 @@ To manage your website, simply open the Umbraco back office and start adding con
<key alias="emptyDictionaryTree">No Dictionary items to choose from</key>
</area>
<area alias="textbox">
<key alias="characters_left">><![CDATA[<strong>{0}</strong> characters left.]]></key>
<key alias="characters_left"><![CDATA[<strong>{0}</strong> characters left.]]></key>
<key alias="characters_exceed"><![CDATA[Maximum {0} characters, <strong>{1}</strong> too many.]]></key>
</area>
<area alias="recycleBin">