diff --git a/src/js/select2/i18n/gl.js b/src/js/select2/i18n/gl.js index 1d89f0a0..3a9ffe31 100644 --- a/src/js/select2/i18n/gl.js +++ b/src/js/select2/i18n/gl.js @@ -1,45 +1,33 @@ define(function () { // Galician return { + errorLoading: function () { + return 'Non foi posíbel cargar os resultados.'; + }, inputTooLong: function (args) { var overChars = args.input.length - args.maximum; - var message = 'Elimine '; - if (overChars === 1) { - message += 'un carácter'; - } else { - message += overChars + ' caracteres'; + return 'Elimine un carácter'; } - - return message; + return 'Elimine ' + overChars + ' caracteres'; }, inputTooShort: function (args) { var remainingChars = args.minimum - args.input.length; - var message = 'Engada '; - if (remainingChars === 1) { - message += 'un carácter'; - } else { - message += remainingChars + ' caracteres'; + return 'Engada un carácter'; } - - return message; + return 'Engada ' + remainingChars + ' caracteres'; }, loadingMore: function () { return 'Cargando máis resultados…'; }, maximumSelected: function (args) { - var message = 'Só pode '; - if (args.maximum === 1) { - message += 'un elemento'; - } else { - message += args.maximum + ' elementos'; + return 'Só pode seleccionar un elemento'; } - - return message; + return 'Só pode seleccionar ' + args.maximum + ' elementos'; }, noResults: function () { return 'Non se atoparon resultados'; @@ -48,4 +36,4 @@ define(function () { return 'Buscando…'; } }; -}); +}); \ No newline at end of file