From 0b9fdded01bea374033e29855d1998cac8e5d9fd Mon Sep 17 00:00:00 2001 From: Jordi Garcia Date: Sat, 7 Feb 2015 18:54:02 +0100 Subject: [PATCH] Added Catalan language --- src/js/select2/i18n/ca.js | 52 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 src/js/select2/i18n/ca.js diff --git a/src/js/select2/i18n/ca.js b/src/js/select2/i18n/ca.js new file mode 100644 index 00000000..50dd3feb --- /dev/null +++ b/src/js/select2/i18n/ca.js @@ -0,0 +1,52 @@ +define(function () { + // Spanish + return { + errorLoading: function () { + return 'La càrrega ha fallat'; + }, + inputTooLong: function (args) { + var remainingChars = args.input.length - args.maximum; + + var message = 'Si us plau, elimina ' + remainingChars + ' car'; + + if (remainingChars == 1) { + message += 'àcter'; + } else { + message += 'àcters'; + } + + return message; + }, + inputTooShort: function (args) { + var remaningChars = args.minimum - args.input.length; + + var message = 'Si us plau, introdueix ' + remainingChars + ' car'; + + if (remainingChars == 1) { + message += 'àcter'; + } else { + message += 'àcters'; + } + + return message; + }, + loadingMore: function () { + return 'Carregant més resultats…'; + }, + maximumSelection: function (args) { + var message = 'Només es pot seleccionar ' + args.maximum + ' element'; + + if (args.maximum != 1) { + message += 's'; + } + + return message; + }, + noResults: function () { + return 'No s\'han trobat resultats'; + }, + searching: function () { + return 'Cercant…'; + } + }; +});