1
0
mirror of synced 2024-11-22 21:16:10 +03:00

Swap inputTooLong and inputTooShort error messages

"Engada"  in galician is "to add" and therefore should be the base text used for the inputTooShort method, asking the use to add more chars. It seems to be mistakenly defined exactly the opposite it should be (as inputTooLong was containing the right text).
This commit is contained in:
Aitor García Rey 2015-04-27 17:20:03 +00:00
parent 80eb44bec7
commit 42075c6233

View File

@ -4,7 +4,7 @@ define(function () {
inputTooLong: function (args) { inputTooLong: function (args) {
var overChars = args.input.length - args.maximum; var overChars = args.input.length - args.maximum;
var message = 'Engada '; var message = 'Elimine ';
if (overChars === 1) { if (overChars === 1) {
message += 'un carácter'; message += 'un carácter';
@ -17,7 +17,7 @@ define(function () {
inputTooShort: function (args) { inputTooShort: function (args) {
var remainingChars = args.minimum - args.input.length; var remainingChars = args.minimum - args.input.length;
var message = 'Elimine '; var message = 'Engada ';
if (remainingChars === 1) { if (remainingChars === 1) {
message += 'un carácter'; message += 'un carácter';