|
@@ -0,0 +1,50 @@
|
|
|
|
+define(function () {
|
|
|
|
+ return {
|
|
|
|
+ inputTooLong: function (args) {
|
|
|
|
+ var overChars = args.input.length - args.maximum;
|
|
|
|
+
|
|
|
|
+ var message = 'Engada ';
|
|
|
|
+
|
|
|
|
+ if (overChars === 1) {
|
|
|
|
+ message += 'un carácter';
|
|
|
|
+ } else {
|
|
|
|
+ message += overChars + ' caracteres';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return message;
|
|
|
|
+ },
|
|
|
|
+ inputTooShort: function (args) {
|
|
|
|
+ var remainingChars = args.minimum - args.input.length;
|
|
|
|
+
|
|
|
|
+ var message = 'Elimine ';
|
|
|
|
+
|
|
|
|
+ if (remainingChars === 1) {
|
|
|
|
+ message += 'un carácter';
|
|
|
|
+ } else {
|
|
|
|
+ message += remainingChars + ' caracteres';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return message;
|
|
|
|
+ },
|
|
|
|
+ lodingMore: function () {
|
|
|
|
+ return 'Cargando máis resultados…';
|
|
|
|
+ },
|
|
|
|
+ maximumSelection: function (args) {
|
|
|
|
+ var message = 'Só pode ';
|
|
|
|
+
|
|
|
|
+ if (args.maximum === 1) {
|
|
|
|
+ message += 'un elemento';
|
|
|
|
+ } else {
|
|
|
|
+ message += args.maximum + ' elementos';
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ return message;
|
|
|
|
+ },
|
|
|
|
+ noResults: function () {
|
|
|
|
+ return 'Non se atoparon resultados';
|
|
|
|
+ },
|
|
|
|
+ searching: function () {
|
|
|
|
+ return 'Buscando…';
|
|
|
|
+ }
|
|
|
|
+ };
|
|
|
|
+});
|