diff --git a/src/js/select2/i18n/de.js b/src/js/select2/i18n/de.js new file mode 100644 index 00000000..9a91066a --- /dev/null +++ b/src/js/select2/i18n/de.js @@ -0,0 +1,36 @@ +define(function () { + return { + inputTooLong: function (args) { + var overChars = args.input.length - args.maximum; + + return 'Bitte ' + overChars + ' Zeichen weniger eingeben'; + }, + inputTooShort: function (args) { + var remainingChars = args.minimum - args.input.length; + + return 'Bitte ' + remainingChars + ' Zeichen mehr eingeben'; + }, + loadingMore: function () { + return 'Lade mehr Ergebnisse…'; + }, + maximumSelected: function () { + var message = 'Sie können nur ' + args.maximum + ' Eintr'; + + if (args.maximum === 1) { + message += 'ag'; + } else { + message += 'äge'; + } + + message += ' auswählen'; + + return message; + }, + noResults: function () { + return 'Keine Übereinstimmungen gefunden'; + }, + searching: function () { + return 'Suche…'; + } + }; +}); diff --git a/src/js/select2/i18n/eu.js b/src/js/select2/i18n/eu.js new file mode 100644 index 00000000..247449a6 --- /dev/null +++ b/src/js/select2/i18n/eu.js @@ -0,0 +1,50 @@ +define(function () { + return { + inputTooLong: function (args) { + var overChars = args.input.length - args.maximum; + + var message = 'Idatzi '; + + if (overChars == 1) { + message += 'karaktere bat'; + } else { + message += overChars + ' karaktere'; + } + + message += ' gutxiago'; + + return message; + }, + inputTooShort: function (args) { + var remainingChars = args.minimum - args.input.length; + + var message = 'Idatzi '; + + if (overChars == 1) { + message += 'karaktere bat'; + } else { + message += overChars + ' karaktere'; + } + + message += ' gehiago'; + + return message; + }, + lodingMore: function () { + return 'Emaitza gehiago kargatzen…'; + }, + maximumSelection: function (args) { + if (args.maximum === 1) { + return 'Elementu bakarra hauta dezakezu'; + } else { + return args.maximum + ' elementu hauta ditzakezu soilik'; + } + }, + noResults: function () { + return 'Ez da bat datorrenik aurkitu'; + }, + searching: function () { + return 'Bilatzen…'; + } + }; +}); diff --git a/src/js/select2/i18n/fi.js b/src/js/select2/i18n/fi.js new file mode 100644 index 00000000..89ae8b38 --- /dev/null +++ b/src/js/select2/i18n/fi.js @@ -0,0 +1,26 @@ +define(function () { + return { + inputTooLong: function (args) { + var overChars = args.input.length - args.maximum; + + return 'Ole hyvä ja anna ' + overChars + ' merkkiä vähemmän'; + }, + inputTooShort: function (args) { + var remainingChars = args.minimum - args.input.length; + + return 'Ole hyvä ja anna ' + remainingChars + ' merkkiä lisää'; + }, + lodingMore: function () { + return 'Ladataan lisää tuloksia…'; + }, + maximumSelection: function (args) { + return 'Voit valita ainoastaan ' + args.maximum + ' kpl'; + }, + noResults: function () { + return 'Ei tuloksia'; + }, + searching: function () { + + } + }; +}); diff --git a/src/js/select2/i18n/fr.js b/src/js/select2/i18n/fr.js new file mode 100644 index 00000000..1650b6b7 --- /dev/null +++ b/src/js/select2/i18n/fr.js @@ -0,0 +1,45 @@ +define(function () { + return { + inputTooLong: function (args) { + var overChars = args.input.length - args.maximum; + + var message = 'Supprimez " + n + " caractère'; + + if (overChars !== 1) { + message += 's'; + } + + return message; + }, + inputTooShort: function (args) { + var remainingChars = args.minimum - args.input.length; + + var message = 'Saisissez " + n + " caractère'; + + if (overChars !== 1) { + message += 's'; + } + + return message; + }, + lodingMore: function () { + return 'Chargement de résultats supplémentaires…'; + }, + maximumSelection: function (args) { + var message = 'Vous pouvez seulement sélectionner ' + + args.maximum + ' élément'; + + if (args.maximum !== 1) { + message += 's'; + } + + return message; + }, + noResults: function () { + return 'Aucun résultat trouvé'; + }, + searching: function () { + return 'Recherche en cours…'; + } + }; +}); diff --git a/src/js/select2/i18n/gl.js b/src/js/select2/i18n/gl.js new file mode 100644 index 00000000..882c42fd --- /dev/null +++ b/src/js/select2/i18n/gl.js @@ -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…'; + } + }; +}); diff --git a/src/js/select2/i18n/hr.js b/src/js/select2/i18n/hr.js new file mode 100644 index 00000000..6ec49bff --- /dev/null +++ b/src/js/select2/i18n/hr.js @@ -0,0 +1,40 @@ +define(function () { + function character (n) { + var message = ' ' + n + ' znak'; + + if (n % 10 < 5 && n % 10 > 0 && (n % 100 < 5 || n % 100 > 19)) { + if (n % 10 > 1) { + message += 'a'; + } + } else { + message += 'ova'; + } + + return message; + } + + return { + inputTooLong: function (args) { + var overChars = args.input.length - args.maximum; + + return 'Unesite ' + character(overChars); + }, + inputTooShort: function (args) { + var remainingChars = args.minimum - args.input.length; + + return 'Unesite još ' + character(remainingChars); + }, + lodingMore: function () { + return 'Učitavanje rezultata…'; + }, + maximumSelection: function (args) { + return 'Maksimalan broj odabranih stavki je ' + args.maximum; + }, + noResults: function () { + return 'Nema rezultata'; + }, + searching: function () { + return 'Pretraga…'; + } + }; +}); diff --git a/src/js/select2/i18n/hu.js b/src/js/select2/i18n/hu.js new file mode 100644 index 00000000..5d40acd7 --- /dev/null +++ b/src/js/select2/i18n/hu.js @@ -0,0 +1,26 @@ +define(function () { + return { + inputTooLong: function (args) { + var overChars = args.input.length - args.maximum; + + return 'Túl hosszú. ' + overChars + ' karakterrel több, mint kellene.'; + }, + inputTooShort: function (args) { + var remainingChars = args.minimum - args.input.length; + + return 'Túl rövid. Még ' + remainingChars + ' karakter hiányzik.'; + }, + lodingMore: function () { + return 'Töltés…'; + }, + maximumSelection: function (args) { + return 'Csak ' + args.maximum + ' elemet lehet kiválasztani.'; + }, + noResults: function () { + return 'Nincs találat.'; + }, + searching: function () { + return 'Keresés…'; + } + }; +}); diff --git a/src/js/select2/i18n/id.js b/src/js/select2/i18n/id.js new file mode 100644 index 00000000..ee272c0f --- /dev/null +++ b/src/js/select2/i18n/id.js @@ -0,0 +1,26 @@ +define(function () { + return { + inputTooLong: function (args) { + var overChars = args.input.length - args.maximum; + + return 'Hapuskan ' + overChars + ' huruf'; + }, + inputTooShort: function (args) { + var remainingChars = args.minimum - args.input.length; + + return 'Masukkan ' + remainingChars + ' huruf lagi'; + }, + lodingMore: function () { + return 'Mengambil data…'; + }, + maximumSelection: function (args) { + return 'Anda hanya dapat memilih ' + args.maximum + ' pilihan'; + }, + noResults: function () { + return 'Tidak ada data yang sesuai'; + }, + searching: function () { + return 'Mencari…'; + } + }; +}); diff --git a/src/js/select2/i18n/is.js b/src/js/select2/i18n/is.js new file mode 100644 index 00000000..fb9dc1e7 --- /dev/null +++ b/src/js/select2/i18n/is.js @@ -0,0 +1,40 @@ +define(function () { + return { + inputTooLong: function (args) { + var overChars = args.input.length - args.maximum; + + var message = 'Vinsamlegast styttið texta um ' + overChars + ' staf'; + + if (overChars <= 1) { + return message; + } + + return message + 'i'; + }, + inputTooShort: function (args) { + var remainingChars = args.minimum - args.input.length; + + var message = 'Vinsamlegast skrifið ' + remainingChars + ' staf'; + + if (overChars > 1) { + message += 'i'; + } + + message += ' í viðbót'; + + return message; + }, + lodingMore: function () { + return 'Sæki fleiri niðurstöður…'; + }, + maximumSelection: function (args) { + return 'Þú getur aðeins valið ' + args.maximum + ' atriði'; + }, + noResults: function () { + return 'Ekkert fannst'; + }, + searching: function () { + return 'Leita…'; + } + }; +});