Comparing version 3.4.5 to 3.5.1
{ | ||
"name": "select2", | ||
"version": "3.4.5", | ||
"version": "3.5.1", | ||
"main": ["select2.js", "select2.css", "select2.png", "select2x2.png", "select2-spinner.gif"], | ||
@@ -5,0 +5,0 @@ "dependencies": { |
{ | ||
"name": "select2" | ||
, "version": "3.4.5" | ||
, "description": "Browserify-ed version of ivaynberg/select2." | ||
, "dependencies": {} | ||
, "repository": { | ||
"type": "git" | ||
, "url": "https://github.com/ivaynberg/select2.git" | ||
} | ||
"name" : "select2", | ||
"description": "Select2 is a jQuery based replacement for select boxes. It supports searching, remote data sets, and infinite scrolling of results.", | ||
"homepage": "http://ivaynberg.github.io/select2", | ||
"author": "Igor Vaynberg", | ||
"repository": {"type": "git", "url": "git://github.com/ivaynberg/select2.git"}, | ||
"main": "select2.js", | ||
"version": "3.5.1", | ||
"jspm": { | ||
"main": "select2", | ||
"files": ["select2.js", "select2.png", "select2.css", "select2-spinner.gif"], | ||
"shim": { | ||
"select2": { | ||
"imports": ["jquery", "./select2.css!"], | ||
"exports": "$" | ||
} | ||
}, | ||
"buildConfig": { "uglify": true } | ||
} | ||
} |
@@ -28,2 +28,6 @@ Select2 | ||
Usage | ||
----- | ||
You can source Select2 directly from a [CDN like JSDliver](http://www.jsdelivr.com/#!select2), [download it from this GitHub repo](https://github.com/ivaynberg/select2/tags), or use one of the integrations below. | ||
Integrations | ||
@@ -34,13 +38,25 @@ ------------ | ||
* [select2-rails](https://github.com/argerim/select2-rails) (Ruby on Rails) | ||
* [AngularUI](http://angular-ui.github.com/#directives-select2) ([AngularJS](angularjs.org)) | ||
* [AngularUI](http://angular-ui.github.com/#directives-select2) ([AngularJS](http://angularjs.org)) | ||
* [Django](https://github.com/applegrew/django-select2) | ||
* [Symfony](https://github.com/19Gerhard85/sfSelect2WidgetsPlugin) | ||
* [Bootstrap](https://github.com/t0m/select2-bootstrap-css) (CSS skin) | ||
* [Yii](https://github.com/tonybolzan/yii-select2) | ||
* [Symfony2](https://github.com/avocode/FormExtensions) | ||
* [Bootstrap 2](https://github.com/t0m/select2-bootstrap-css) and [Bootstrap 3](https://github.com/t0m/select2-bootstrap-css/tree/bootstrap3) (CSS skins) | ||
* [Meteor](https://github.com/nate-strauser/meteor-select2) (modern reactive JavaScript framework; + [Bootstrap 3 skin](https://github.com/esperadomedia/meteor-select2-bootstrap3-css/)) | ||
* [Meteor](https://jquery-select2.meteor.com) | ||
* [Yii 2.x](http://demos.krajee.com/widgets#select2) | ||
* [Yii 1.x](https://github.com/tonybolzan/yii-select2) | ||
* [AtmosphereJS](https://atmospherejs.com/package/jquery-select2) | ||
### Example Integrations | ||
* [Knockout.js](https://github.com/ivaynberg/select2/wiki/Knockout.js-Integration) | ||
* [Socket.IO](https://github.com/ivaynberg/select2/wiki/Socket.IO-Integration) | ||
* [PHP](https://github.com/ivaynberg/select2/wiki/PHP-Example) | ||
* [.Net MVC] (https://github.com/ivaynberg/select2/wiki/.Net-MVC-Example) | ||
Internationalization (i18n) | ||
--------------------------- | ||
Select2 supports multiple languages by simply including the right | ||
language JS file (`select2_locale_it.js`, `select2_locale_nl.js`, etc.). | ||
Select2 supports multiple languages by simply including the right language JS | ||
file (`select2_locale_it.js`, `select2_locale_nl.js`, etc.) after `select2.js`. | ||
@@ -50,2 +66,7 @@ Missing a language? Just copy `select2_locale_en.js.template`, translate | ||
Documentation | ||
------------- | ||
The documentation for Select2 is available [through GitHub Pages](https://ivaynberg.github.io/select2/) and is located within this repository in the [`gh-pages` branch](https://github.com/ivaynberg/select2/tree/gh-pages). | ||
Bug tracker | ||
@@ -52,0 +73,0 @@ ----------- |
@@ -1,5 +0,5 @@ | ||
/** | ||
/** | ||
* Select2 Arabic translation. | ||
* | ||
* Author: Your Name <amedhat3@gmail.com> | ||
* | ||
* Author: Adel KEDJOUR <adel@kedjour.com> | ||
*/ | ||
@@ -9,10 +9,12 @@ (function ($) { | ||
$.extend($.fn.select2.defaults, { | ||
formatNoMatches: function () { return "لا توجد نتائج"; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "من فضلك أدخل " + n + " حروف أكثر"; }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "من فضلك أحذف " + n + " حروف"; }, | ||
formatSelectionTooBig: function (limit) { return "يمكنك ان تختار " + limit + " أختيارات فقط"; }, | ||
formatLoadMore: function (pageNumber) { return "تحمل المذيد من النتائج ..."; }, | ||
formatSearching: function () { return "جاري البحث ..."; } | ||
}); | ||
$.fn.select2.locales['ar'] = { | ||
formatNoMatches: function () { return "لم يتم العثور على مطابقات"; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; if (n == 1){ return "الرجاء إدخال حرف واحد على الأكثر"; } return n == 2 ? "الرجاء إدخال حرفين على الأكثر" : "الرجاء إدخال " + n + " على الأكثر"; }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; if (n == 1){ return "الرجاء إدخال حرف واحد على الأقل"; } return n == 2 ? "الرجاء إدخال حرفين على الأقل" : "الرجاء إدخال " + n + " على الأقل "; }, | ||
formatSelectionTooBig: function (limit) { if (n == 1){ return "يمكنك أن تختار إختيار واحد فقط"; } return n == 2 ? "يمكنك أن تختار إختيارين فقط" : "يمكنك أن تختار " + n + " إختيارات فقط"; }, | ||
formatLoadMore: function (pageNumber) { return "تحميل المزيد من النتائج…"; }, | ||
formatSearching: function () { return "البحث…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['ar']); | ||
})(jQuery); |
/** | ||
* Select2 <Language> translation. | ||
* Select2 Bulgarian translation. | ||
* | ||
* Author: Lubomir Vikev <lubomirvikev@gmail.com> | ||
* @author Lubomir Vikev <lubomirvikev@gmail.com> | ||
* @author Uriy Efremochkin <efremochkin@uriy.me> | ||
*/ | ||
@@ -9,10 +10,12 @@ (function ($) { | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['bg'] = { | ||
formatNoMatches: function () { return "Няма намерени съвпадения"; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Моля въведете още " + n + " символ" + (n == 1 ? "" : "а"); }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Моля въведете с " + n + " по-малко символ" + (n == 1? "" : "а"); }, | ||
formatSelectionTooBig: function (limit) { return "Можете да направите до " + limit + (limit == 1 ? " избор" : " избора"); }, | ||
formatLoadMore: function (pageNumber) { return "Зареждат се още..."; }, | ||
formatSearching: function () { return "Търсене..."; } | ||
}); | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Моля въведете още " + n + " символ" + (n > 1 ? "а" : ""); }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Моля въведете с " + n + " по-малко символ" + (n > 1 ? "а" : ""); }, | ||
formatSelectionTooBig: function (limit) { return "Можете да направите до " + limit + (limit > 1 ? " избора" : " избор"); }, | ||
formatLoadMore: function (pageNumber) { return "Зареждат се още…"; }, | ||
formatSearching: function () { return "Търсене…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['bg']); | ||
})(jQuery); |
@@ -9,3 +9,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['ca'] = { | ||
formatNoMatches: function () { return "No s'ha trobat cap coincidència"; }, | ||
@@ -15,5 +15,7 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "Introduïu " + n + " caràcter" + (n == 1 ? "" : "s") + " més"; }, | ||
formatSelectionTooBig: function (limit) { return "Només podeu seleccionar " + limit + " element" + (limit == 1 ? "" : "s"); }, | ||
formatLoadMore: function (pageNumber) { return "S'estan carregant més resultats..."; }, | ||
formatSearching: function () { return "S'està cercant..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "S'estan carregant més resultats…"; }, | ||
formatSearching: function () { return "S'està cercant…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['ca']); | ||
})(jQuery); |
@@ -15,3 +15,3 @@ /** | ||
} | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['cs'] = { | ||
formatNoMatches: function () { return "Nenalezeny žádné položky"; }, | ||
@@ -47,5 +47,7 @@ formatInputTooShort: function (input, min) { | ||
}, | ||
formatLoadMore: function (pageNumber) { return "Načítají se další výsledky..."; }, | ||
formatSearching: function () { return "Vyhledávání..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "Načítají se další výsledky…"; }, | ||
formatSearching: function () { return "Vyhledávání…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['cs']); | ||
})(jQuery); |
@@ -9,3 +9,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['da'] = { | ||
formatNoMatches: function () { return "Ingen resultater fundet"; }, | ||
@@ -17,3 +17,5 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "Angiv venligst " + n + " tegn mere"; }, | ||
formatSearching: function () { return "Søger…"; } | ||
}); | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['da']); | ||
})(jQuery); |
@@ -7,3 +7,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['de'] = { | ||
formatNoMatches: function () { return "Keine Übereinstimmungen gefunden"; }, | ||
@@ -13,5 +13,8 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "Bitte " + n + " Zeichen mehr eingeben"; }, | ||
formatSelectionTooBig: function (limit) { return "Sie können nur " + limit + " Eintr" + (limit === 1 ? "ag" : "äge") + " auswählen"; }, | ||
formatLoadMore: function (pageNumber) { return "Lade mehr Ergebnisse..."; }, | ||
formatSearching: function () { return "Suche..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "Lade mehr Ergebnisse…"; }, | ||
formatSearching: function () { return "Suche…"; }, | ||
formatMatches: function (matches) { return matches + " Ergebnis " + (matches > 1 ? "se" : "") + " verfügbar, zum Navigieren die Hoch-/Runter-Pfeiltasten verwenden."; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['de']); | ||
})(jQuery); |
/** | ||
* Select2 <Language> translation. | ||
* Select2 Greek translation. | ||
* | ||
* Author: Your Name <your@email> | ||
* @author Uriy Efremochkin <efremochkin@uriy.me> | ||
*/ | ||
@@ -9,10 +9,12 @@ (function ($) { | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['el'] = { | ||
formatNoMatches: function () { return "Δεν βρέθηκαν αποτελέσματα"; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Παρακαλούμε εισάγετε " + n + " περισσότερο" + (n == 1 ? "" : "υς") + " χαρακτήρ" + (n == 1 ? "α" : "ες"); }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Παρακαλούμε διαγράψτε " + n + " χαρακτήρ" + (n == 1 ? "α" : "ες"); }, | ||
formatSelectionTooBig: function (limit) { return "Μπορείτε να επιλέξετε μόνο " + limit + " αντικείμεν" + (limit == 1 ? "ο" : "α"); }, | ||
formatLoadMore: function (pageNumber) { return "Φόρτωση περισσότερων..."; }, | ||
formatSearching: function () { return "Αναζήτηση..."; } | ||
}); | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Παρακαλούμε εισάγετε " + n + " περισσότερο" + (n > 1 ? "υς" : "") + " χαρακτήρ" + (n > 1 ? "ες" : "α"); }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Παρακαλούμε διαγράψτε " + n + " χαρακτήρ" + (n > 1 ? "ες" : "α"); }, | ||
formatSelectionTooBig: function (limit) { return "Μπορείτε να επιλέξετε μόνο " + limit + " αντικείμεν" + (limit > 1 ? "α" : "ο"); }, | ||
formatLoadMore: function (pageNumber) { return "Φόρτωση περισσότερων…"; }, | ||
formatSearching: function () { return "Αναζήτηση…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['el']); | ||
})(jQuery); |
@@ -7,10 +7,12 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['es'] = { | ||
formatNoMatches: function () { return "No se encontraron resultados"; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Por favor, introduzca " + n + " car" + (n == 1? "á" : "a") + "cter" + (n == 1? "" : "es"); }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Por favor, elimine " + n + " car" + (n == 1? "á" : "a") + "cter" + (n == 1? "" : "es"); }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Por favor, introduzca " + n + " car" + (n == 1? "ácter" : "acteres"); }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Por favor, elimine " + n + " car" + (n == 1? "ácter" : "acteres"); }, | ||
formatSelectionTooBig: function (limit) { return "Sólo puede seleccionar " + limit + " elemento" + (limit == 1 ? "" : "s"); }, | ||
formatLoadMore: function (pageNumber) { return "Cargando más resultados..."; }, | ||
formatSearching: function () { return "Buscando..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "Cargando más resultados…"; }, | ||
formatSearching: function () { return "Buscando…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['es']); | ||
})(jQuery); |
@@ -9,3 +9,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['et'] = { | ||
formatNoMatches: function () { return "Tulemused puuduvad"; }, | ||
@@ -17,3 +17,5 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "Sisesta " + n + " täht" + (n == 1 ? "" : "e") + " rohkem"; }, | ||
formatSearching: function () { return "Otsin.."; } | ||
}); | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['et']); | ||
})(jQuery); |
@@ -9,3 +9,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['eu'] = { | ||
formatNoMatches: function () { | ||
@@ -38,8 +38,10 @@ return "Ez da bat datorrenik aurkitu"; | ||
formatLoadMore: function (pageNumber) { | ||
return "Emaitza gehiago kargatzen..."; | ||
return "Emaitza gehiago kargatzen…"; | ||
}, | ||
formatSearching: function () { | ||
return "Bilatzen..."; | ||
return "Bilatzen…"; | ||
} | ||
}); | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['eu']); | ||
})(jQuery); |
/** | ||
* Select2 <fa> translation. | ||
* Select2 Persian translation. | ||
* | ||
* Author: Ali Choopan <choopan@arsh.co> | ||
* Author: Ebrahim Byagowi <ebrahim@gnu.org> | ||
*/ | ||
@@ -9,10 +10,13 @@ (function ($) { | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['fa'] = { | ||
formatMatches: function (matches) { return matches + " نتیجه موجود است، کلیدهای جهت بالا و پایین را برای گشتن استفاده کنید."; }, | ||
formatNoMatches: function () { return "نتیجهای یافت نشد."; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return " لطفا بیش از"+n+"کاراکتر وارد نمایید "; }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return " لطفا" + n + " کاراکتر را حذف کنید."; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "لطفاً " + n + " نویسه بیشتر وارد نمایید"; }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "لطفاً " + n + " نویسه را حذف کنید."; }, | ||
formatSelectionTooBig: function (limit) { return "شما فقط میتوانید " + limit + " مورد را انتخاب کنید"; }, | ||
formatLoadMore: function (pageNumber) { return "در حال بارگذاری موارد بیشتر ..."; }, | ||
formatSearching: function () { return "در حال جستجو"; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "در حال بارگیری موارد بیشتر…"; }, | ||
formatSearching: function () { return "در حال جستجو…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['fa']); | ||
})(jQuery); |
@@ -6,3 +6,3 @@ /** | ||
"use strict"; | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['fi'] = { | ||
formatNoMatches: function () { | ||
@@ -23,8 +23,10 @@ return "Ei tuloksia"; | ||
formatLoadMore: function (pageNumber) { | ||
return "Ladataan lisää tuloksia..."; | ||
return "Ladataan lisää tuloksia…"; | ||
}, | ||
formatSearching: function () { | ||
return "Etsitään..."; | ||
return "Etsitään…"; | ||
} | ||
}); | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['fi']); | ||
})(jQuery); |
@@ -7,10 +7,13 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['fr'] = { | ||
formatMatches: function (matches) { return matches + " résultats sont disponibles, utilisez les flèches haut et bas pour naviguer."; }, | ||
formatNoMatches: function () { return "Aucun résultat trouvé"; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Merci de saisir " + n + " caractère" + (n == 1? "" : "s") + " de plus"; }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Merci de supprimer " + n + " caractère" + (n == 1? "" : "s"); }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Saisissez " + n + " caractère" + (n == 1? "" : "s") + " supplémentaire" + (n == 1? "" : "s") ; }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Supprimez " + n + " caractère" + (n == 1? "" : "s"); }, | ||
formatSelectionTooBig: function (limit) { return "Vous pouvez seulement sélectionner " + limit + " élément" + (limit == 1 ? "" : "s"); }, | ||
formatLoadMore: function (pageNumber) { return "Chargement de résultats supplémentaires..."; }, | ||
formatSearching: function () { return "Recherche en cours..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "Chargement de résultats supplémentaires…"; }, | ||
formatSearching: function () { return "Recherche en cours…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['fr']); | ||
})(jQuery); |
@@ -9,3 +9,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['gl'] = { | ||
formatNoMatches: function () { | ||
@@ -38,8 +38,10 @@ return "Non se atoparon resultados"; | ||
formatLoadMore: function (pageNumber) { | ||
return "Cargando máis resultados..."; | ||
return "Cargando máis resultados…"; | ||
}, | ||
formatSearching: function () { | ||
return "Buscando..."; | ||
return "Buscando…"; | ||
} | ||
}); | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['gl']); | ||
})(jQuery); |
@@ -9,3 +9,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['he'] = { | ||
formatNoMatches: function () { return "לא נמצאו התאמות"; }, | ||
@@ -15,5 +15,7 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "נא להזין עוד " + n + " תווים נוספים"; }, | ||
formatSelectionTooBig: function (limit) { return "ניתן לבחור " + limit + " פריטים"; }, | ||
formatLoadMore: function (pageNumber) { return "טוען תוצאות נוספות..."; }, | ||
formatSearching: function () { return "מחפש..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "טוען תוצאות נוספות…"; }, | ||
formatSearching: function () { return "מחפש…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['he']); | ||
})(jQuery); |
/** | ||
* Select2 Croatian translation. | ||
* | ||
* Author: Edi Modrić <edi.modric@gmail.com> | ||
* @author Edi Modrić <edi.modric@gmail.com> | ||
* @author Uriy Efremochkin <efremochkin@uriy.me> | ||
*/ | ||
@@ -9,35 +10,16 @@ (function ($) { | ||
var specialNumbers = { | ||
1: function(n) { return (n % 100 != 11 ? "znak" : "znakova"); }, | ||
2: function(n) { return (n % 100 != 12 ? "znaka" : "znakova"); }, | ||
3: function(n) { return (n % 100 != 13 ? "znaka" : "znakova"); }, | ||
4: function(n) { return (n % 100 != 14 ? "znaka" : "znakova"); } | ||
$.fn.select2.locales['hr'] = { | ||
formatNoMatches: function () { return "Nema rezultata"; }, | ||
formatInputTooShort: function (input, min) { return "Unesite još" + character(min - input.length); }, | ||
formatInputTooLong: function (input, max) { return "Unesite" + character(input.length - max) + " manje"; }, | ||
formatSelectionTooBig: function (limit) { return "Maksimalan broj odabranih stavki je " + limit; }, | ||
formatLoadMore: function (pageNumber) { return "Učitavanje rezultata…"; }, | ||
formatSearching: function () { return "Pretraga…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, { | ||
formatNoMatches: function () { return "Nema rezultata"; }, | ||
formatInputTooShort: function (input, min) { | ||
var n = min - input.length; | ||
var nMod10 = n % 10; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['hr']); | ||
if (nMod10 > 0 && nMod10 < 5) { | ||
return "Unesite još " + n + " " + specialNumbers[nMod10](n); | ||
} | ||
return "Unesite još " + n + " znakova"; | ||
}, | ||
formatInputTooLong: function (input, max) { | ||
var n = input.length - max; | ||
var nMod10 = n % 10; | ||
if (nMod10 > 0 && nMod10 < 5) { | ||
return "Unesite " + n + " " + specialNumbers[nMod10](n) + " manje"; | ||
} | ||
return "Unesite " + n + " znakova manje"; | ||
}, | ||
formatSelectionTooBig: function (limit) { return "Maksimalan broj odabranih stavki je " + limit; }, | ||
formatLoadMore: function (pageNumber) { return "Učitavanje rezultata..."; }, | ||
formatSearching: function () { return "Pretraga..."; } | ||
}); | ||
function character (n) { | ||
return " " + n + " znak" + (n%10 < 5 && n%10 > 0 && (n%100 < 5 || n%100 > 19) ? n%10 > 1 ? "a" : "" : "ova"); | ||
} | ||
})(jQuery); |
@@ -7,10 +7,12 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['hu'] = { | ||
formatNoMatches: function () { return "Nincs találat."; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Túl rövid. Még " + n + " karakter hiányzik."; }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Túl hosszú. " + n + " kerekterrel több mint kellene."; }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Túl hosszú. " + n + " karakterrel több, mint kellene."; }, | ||
formatSelectionTooBig: function (limit) { return "Csak " + limit + " elemet lehet kiválasztani."; }, | ||
formatLoadMore: function (pageNumber) { return "Töltés..."; }, | ||
formatSearching: function () { return "Keresés..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "Töltés…"; }, | ||
formatSearching: function () { return "Keresés…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['hu']); | ||
})(jQuery); |
@@ -9,3 +9,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['id'] = { | ||
formatNoMatches: function () { return "Tidak ada data yang sesuai"; }, | ||
@@ -15,5 +15,7 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "Masukkan " + n + " huruf lagi" + (n == 1 ? "" : "s"); }, | ||
formatSelectionTooBig: function (limit) { return "Anda hanya dapat memilih " + limit + " pilihan" + (limit == 1 ? "" : "s"); }, | ||
formatLoadMore: function (pageNumber) { return "Mengambil data..."; }, | ||
formatSearching: function () { return "Mencari..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "Mengambil data…"; }, | ||
formatSearching: function () { return "Mencari…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['id']); | ||
})(jQuery); |
/** | ||
* Select2 Icelandic translation. | ||
* | ||
*/ | ||
@@ -8,10 +7,12 @@ (function ($) { | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['is'] = { | ||
formatNoMatches: function () { return "Ekkert fannst"; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vinsamlegast skrifið " + n + " staf" + (n == 1 ? "" : "i") + " í viðbót"; }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vinsamlegast styttið texta um " + n + " staf" + (n == 1 ? "" : "i"); }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vinsamlegast skrifið " + n + " staf" + (n > 1 ? "i" : "") + " í viðbót"; }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vinsamlegast styttið texta um " + n + " staf" + (n > 1 ? "i" : ""); }, | ||
formatSelectionTooBig: function (limit) { return "Þú getur aðeins valið " + limit + " atriði"; }, | ||
formatLoadMore: function (pageNumber) { return "Sæki fleiri niðurstöður..."; }, | ||
formatSearching: function () { return "Leita..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "Sæki fleiri niðurstöður…"; }, | ||
formatSearching: function () { return "Leita…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['is']); | ||
})(jQuery); |
@@ -7,3 +7,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['it'] = { | ||
formatNoMatches: function () { return "Nessuna corrispondenza trovata"; }, | ||
@@ -13,5 +13,7 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "Inserisci ancora " + n + " caratter" + (n == 1? "e" : "i"); }, | ||
formatSelectionTooBig: function (limit) { return "Puoi selezionare solo " + limit + " element" + (limit == 1 ? "o" : "i"); }, | ||
formatLoadMore: function (pageNumber) { return "Caricamento in corso..."; }, | ||
formatSearching: function () { return "Ricerca..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "Caricamento in corso…"; }, | ||
formatSearching: function () { return "Ricerca…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['it']); | ||
})(jQuery); |
@@ -7,3 +7,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['ja'] = { | ||
formatNoMatches: function () { return "該当なし"; }, | ||
@@ -15,3 +15,5 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "後" + n + "文字入れてください"; }, | ||
formatSearching: function () { return "検索中・・・"; } | ||
}); | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['ja']); | ||
})(jQuery); |
@@ -9,10 +9,12 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['ka'] = { | ||
formatNoMatches: function () { return "ვერ მოიძებნა"; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "გთხოვთ შეიყვანოთ კიდევ " + n + " სიმბოლო"); }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "გთხოვთ წაშალოთ " + n + " სიმბოლო"); }, | ||
formatSelectionTooBig: function (limit) { return "თქვენ შეგიძლიათ მხოლოდ " + limit + " ჩანაწერის მონიშვნა"); }, | ||
formatLoadMore: function (pageNumber) { return "შედეგის ჩატვირთვა..."; }, | ||
formatSearching: function () { return "ძებნა..."; } | ||
}); | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "გთხოვთ შეიყვანოთ კიდევ " + n + " სიმბოლო"; }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "გთხოვთ წაშალოთ " + n + " სიმბოლო"; }, | ||
formatSelectionTooBig: function (limit) { return "თქვენ შეგიძლიათ მხოლოდ " + limit + " ჩანაწერის მონიშვნა"; }, | ||
formatLoadMore: function (pageNumber) { return "შედეგის ჩატვირთვა…"; }, | ||
formatSearching: function () { return "ძებნა…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['ka']); | ||
})(jQuery); |
/** | ||
* Select2 <Language> translation. | ||
* Select2 Korean translation. | ||
* | ||
* Author: Swen Mun <longfinfunnel@gmail.com> | ||
* @author Swen Mun <longfinfunnel@gmail.com> | ||
*/ | ||
@@ -9,3 +9,3 @@ (function ($) { | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['ko'] = { | ||
formatNoMatches: function () { return "결과 없음"; }, | ||
@@ -17,3 +17,5 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "너무 짧습니다. "+n+"글자 더 입력해주세요."; }, | ||
formatSearching: function () { return "검색 중…"; } | ||
}); | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['ko']); | ||
})(jQuery); |
/** | ||
* Select2 lithuanian translation. | ||
* Select2 Lithuanian translation. | ||
* | ||
* Author: CRONUS Karmalakas <cronus dot karmalakas at gmail dot com> | ||
* @author CRONUS Karmalakas <cronus dot karmalakas at gmail dot com> | ||
* @author Uriy Efremochkin <efremochkin@uriy.me> | ||
*/ | ||
@@ -9,22 +10,18 @@ (function ($) { | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['lt'] = { | ||
formatNoMatches: function () { return "Atitikmenų nerasta"; }, | ||
formatInputTooShort: function (input, min) { | ||
var n = min - input.length, | ||
suffix = (n % 10 == 1) && (n % 100 != 11) ? 'į' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'ius' : 'ių'); | ||
return "Įrašykite dar " + n + " simbol" + suffix; | ||
}, | ||
formatInputTooLong: function (input, max) { | ||
var n = input.length - max, | ||
suffix = (n % 10 == 1) && (n % 100 != 11) ? 'į' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'ius' : 'ių'); | ||
return "Pašalinkite " + n + " simbol" + suffix; | ||
}, | ||
formatInputTooShort: function (input, min) { return "Įrašykite dar" + character(min - input.length); }, | ||
formatInputTooLong: function (input, max) { return "Pašalinkite" + character(input.length - max); }, | ||
formatSelectionTooBig: function (limit) { | ||
var n = limit, | ||
suffix = (n % 10 == 1) && (n % 100 != 11) ? 'ą' : (((n % 10 >= 2) && ((n % 100 < 10) || (n % 100 >= 20))) ? 'us' : 'ų'); | ||
return "Jūs galite pasirinkti tik " + limit + " element" + suffix; | ||
return "Jūs galite pasirinkti tik " + limit + " element" + ((limit%100 > 9 && limit%100 < 21) || limit%10 == 0 ? "ų" : limit%10 > 1 ? "us" : "ą"); | ||
}, | ||
formatLoadMore: function (pageNumber) { return "Kraunama daugiau rezultatų..."; }, | ||
formatSearching: function () { return "Ieškoma..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "Kraunama daugiau rezultatų…"; }, | ||
formatSearching: function () { return "Ieškoma…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['lt']); | ||
function character (n) { | ||
return " " + n + " simbol" + ((n%100 > 9 && n%100 < 21) || n%10 == 0 ? "ių" : n%10 > 1 ? "ius" : "į"); | ||
} | ||
})(jQuery); |
/** | ||
* Select2 Latvian translation | ||
* Select2 Latvian translation. | ||
* | ||
* @author Uriy Efremochkin <efremochkin@uriy.me> | ||
*/ | ||
@@ -7,11 +9,12 @@ (function ($) { | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['lv'] = { | ||
formatNoMatches: function () { return "Sakritību nav"; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Lūdzu ievadiet vēl " + n + " simbol" + (n == 11 ? "us" : (/^\d*[1]$/im.test(n)? "u" : "us")); }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Lūdzu ievadiet par " + n + " simbol" + (n == 11 ? "iem" : (/^\d*[1]$/im.test(n)? "u" : "iem")) + " mazāk"; }, | ||
formatSelectionTooBig: function (limit) { return "Jūs varat izvēlēties ne vairāk kā " + limit + " element" + (limit == 11 ? "us" : (/^\d*[1]$/im.test(limit)? "u" : "us")); }, | ||
formatLoadMore: function (pageNumber) { return "Datu ielāde..."; }, | ||
formatSearching: function () { return "Meklēšana..."; } | ||
}); | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Lūdzu ievadiet vēl " + n + " simbol" + (n == 11 ? "us" : n%10 == 1 ? "u" : "us"); }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Lūdzu ievadiet par " + n + " simbol" + (n == 11 ? "iem" : n%10 == 1 ? "u" : "iem") + " mazāk"; }, | ||
formatSelectionTooBig: function (limit) { return "Jūs varat izvēlēties ne vairāk kā " + limit + " element" + (limit == 11 ? "us" : limit%10 == 1 ? "u" : "us"); }, | ||
formatLoadMore: function (pageNumber) { return "Datu ielāde…"; }, | ||
formatSearching: function () { return "Meklēšana…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['lv']); | ||
})(jQuery); |
@@ -9,3 +9,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['mk'] = { | ||
formatNoMatches: function () { return "Нема пронајдено совпаѓања"; }, | ||
@@ -15,5 +15,7 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "Ве молиме внесете уште " + n + " карактер" + (n == 1 ? "" : "и"); }, | ||
formatSelectionTooBig: function (limit) { return "Можете да изберете само " + limit + " ставк" + (limit == 1 ? "а" : "и"); }, | ||
formatLoadMore: function (pageNumber) { return "Вчитување резултати..."; }, | ||
formatSearching: function () { return "Пребарување..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "Вчитување резултати…"; }, | ||
formatSearching: function () { return "Пребарување…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['mk']); | ||
})(jQuery); |
@@ -9,3 +9,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['ms'] = { | ||
formatNoMatches: function () { return "Tiada padanan yang ditemui"; }, | ||
@@ -15,5 +15,7 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "Sila masukkan " + n + " aksara lagi"; }, | ||
formatSelectionTooBig: function (limit) { return "Anda hanya boleh memilih " + limit + " pilihan"; }, | ||
formatLoadMore: function (pageNumber) { return "Sedang memuatkan keputusan..."; }, | ||
formatSearching: function () { return "Mencari..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "Sedang memuatkan keputusan…"; }, | ||
formatSearching: function () { return "Mencari…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['ms']); | ||
})(jQuery); |
@@ -7,10 +7,12 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['nl'] = { | ||
formatNoMatches: function () { return "Geen resultaten gevonden"; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vul " + n + " karakter" + (n == 1? "" : "s") + " meer in"; }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vul " + n + " karakter" + (n == 1? "" : "s") + " minder in"; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vul nog " + n + " karakter" + (n == 1? "" : "s") + " in"; }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Haal " + n + " karakter" + (n == 1? "" : "s") + " weg"; }, | ||
formatSelectionTooBig: function (limit) { return "Maximaal " + limit + " item" + (limit == 1 ? "" : "s") + " toegestaan"; }, | ||
formatLoadMore: function (pageNumber) { return "Meer resultaten laden..."; }, | ||
formatSearching: function () { return "Zoeken..."; } | ||
}); | ||
})(jQuery); | ||
formatLoadMore: function (pageNumber) { return "Meer resultaten laden…"; }, | ||
formatSearching: function () { return "Zoeken…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['nl']); | ||
})(jQuery); |
@@ -9,3 +9,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['no'] = { | ||
formatNoMatches: function () { return "Ingen treff"; }, | ||
@@ -15,6 +15,8 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "Vennligst skriv inn " + n + (n>1 ? " flere tegn" : " tegn til"); }, | ||
formatSelectionTooBig: function (limit) { return "Du kan velge maks " + limit + " elementer"; }, | ||
formatLoadMore: function (pageNumber) { return "Laster flere resultater..."; }, | ||
formatSearching: function () { return "Søker..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "Laster flere resultater…"; }, | ||
formatSearching: function () { return "Søker…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['no']); | ||
})(jQuery); | ||
/** | ||
* Select2 Polish translation. | ||
* | ||
* Author: Jan Kondratowicz <jan@kondratowicz.pl> | ||
* @author Jan Kondratowicz <jan@kondratowicz.pl> | ||
* @author Uriy Efremochkin <efremochkin@uriy.me> | ||
* @author Michał Połtyn <mike@poltyn.com> | ||
*/ | ||
(function ($) { | ||
"use strict"; | ||
var pl_suffix = function(n) { | ||
if(n == 1) return ""; | ||
if((n%100 > 1 && n%100 < 5) || (n%100 > 20 && n%10 > 1 && n%10 < 5)) return "i"; | ||
return "ów"; | ||
$.fn.select2.locales['pl'] = { | ||
formatNoMatches: function () { return "Brak wyników"; }, | ||
formatInputTooShort: function (input, min) { return "Wpisz co najmniej" + character(min - input.length, "znak", "i"); }, | ||
formatInputTooLong: function (input, max) { return "Wpisana fraza jest za długa o" + character(input.length - max, "znak", "i"); }, | ||
formatSelectionTooBig: function (limit) { return "Możesz zaznaczyć najwyżej" + character(limit, "element", "y"); }, | ||
formatLoadMore: function (pageNumber) { return "Ładowanie wyników…"; }, | ||
formatSearching: function () { return "Szukanie…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, { | ||
formatNoMatches: function () { | ||
return "Brak wyników."; | ||
}, | ||
formatInputTooShort: function (input, min) { | ||
var n = min - input.length; | ||
return "Wpisz jeszcze " + n + " znak" + pl_suffix(n) + "."; | ||
}, | ||
formatInputTooLong: function (input, max) { | ||
var n = input.length - max; | ||
return "Wpisana fraza jest za długa o " + n + " znak" + pl_suffix(n) + "."; | ||
}, | ||
formatSelectionTooBig: function (limit) { | ||
return "Możesz zaznaczyć najwyżej " + limit + " element" + pl_suffix(limit) + "."; | ||
}, | ||
formatLoadMore: function (pageNumber) { | ||
return "Ładowanie wyników..."; | ||
}, | ||
formatSearching: function () { | ||
return "Szukanie..."; | ||
} | ||
}); | ||
})(jQuery); | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['pl']); | ||
function character (n, word, pluralSuffix) { | ||
return " " + n + " " + word + (n == 1 ? "" : n%10 < 5 && n%10 > 1 && (n%100 < 5 || n%100 > 20) ? pluralSuffix : "ów"); | ||
} | ||
})(jQuery); |
@@ -7,10 +7,12 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['pt-BR'] = { | ||
formatNoMatches: function () { return "Nenhum resultado encontrado"; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Informe " + n + " caractere" + (n == 1? "" : "s"); }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " caractere" + (n == 1? "" : "s"); }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Digite mais " + n + " caracter" + (n == 1? "" : "es"); }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " caracter" + (n == 1? "" : "es"); }, | ||
formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); }, | ||
formatLoadMore: function (pageNumber) { return "Carregando mais resultados..."; }, | ||
formatSearching: function () { return "Buscando..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "Carregando mais resultados…"; }, | ||
formatSearching: function () { return "Buscando…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['pt-BR']); | ||
})(jQuery); |
@@ -7,3 +7,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['pt-PT'] = { | ||
formatNoMatches: function () { return "Nenhum resultado encontrado"; }, | ||
@@ -13,5 +13,7 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "Introduza " + n + " car" + (n == 1 ? "ácter" : "acteres"); }, | ||
formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); }, | ||
formatLoadMore: function (pageNumber) { return "A carregar mais resultados..."; }, | ||
formatSearching: function () { return "A pesquisar..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "A carregar mais resultados…"; }, | ||
formatSearching: function () { return "A pesquisar…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['pt-PT']); | ||
})(jQuery); |
@@ -7,3 +7,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['ro'] = { | ||
formatNoMatches: function () { return "Nu a fost găsit nimic"; }, | ||
@@ -13,5 +13,7 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "Vă rugăm să introduceți incă " + n + " caracter" + (n == 1 ? "" : "e"); }, | ||
formatSelectionTooBig: function (limit) { return "Aveți voie să selectați cel mult " + limit + " element" + (limit == 1 ? "" : "e"); }, | ||
formatLoadMore: function (pageNumber) { return "Se încarcă..."; }, | ||
formatSearching: function () { return "Căutare..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "Se încarcă…"; }, | ||
formatSearching: function () { return "Căutare…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['ro']); | ||
})(jQuery); |
/** | ||
* Select2 Russian translation | ||
* Select2 Russian translation. | ||
* | ||
* @author Uriy Efremochkin <efremochkin@uriy.me> | ||
*/ | ||
@@ -7,10 +9,16 @@ (function ($) { | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['ru'] = { | ||
formatNoMatches: function () { return "Совпадений не найдено"; }, | ||
formatInputTooShort: function (input, min) { var n = min - input.length; return "Пожалуйста, введите еще " + n + " символ" + (n == 1 ? "" : ((n > 1)&&(n < 5) ? "а" : "ов")); }, | ||
formatInputTooLong: function (input, max) { var n = input.length - max; return "Пожалуйста, введите на " + n + " символ" + (n == 1 ? "" : ((n > 1)&&(n < 5)? "а" : "ов")) + " меньше"; }, | ||
formatSelectionTooBig: function (limit) { return "Вы можете выбрать не более " + limit + " элемент" + (limit == 1 ? "а" : "ов"); }, | ||
formatLoadMore: function (pageNumber) { return "Загрузка данных..."; }, | ||
formatSearching: function () { return "Поиск..."; } | ||
}); | ||
formatInputTooShort: function (input, min) { return "Пожалуйста, введите еще хотя бы" + character(min - input.length); }, | ||
formatInputTooLong: function (input, max) { return "Пожалуйста, введите на" + character(input.length - max) + " меньше"; }, | ||
formatSelectionTooBig: function (limit) { return "Вы можете выбрать не более " + limit + " элемент" + (limit%10 == 1 && limit%100 != 11 ? "а" : "ов"); }, | ||
formatLoadMore: function (pageNumber) { return "Загрузка данных…"; }, | ||
formatSearching: function () { return "Поиск…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['ru']); | ||
function character (n) { | ||
return " " + n + " символ" + (n%10 < 5 && n%10 > 0 && (n%100 < 5 || n%100 > 20) ? n%10 > 1 ? "a" : "" : "ов"); | ||
} | ||
})(jQuery); |
@@ -13,4 +13,4 @@ /** | ||
4: function() { return "štyri"; } | ||
} | ||
$.extend($.fn.select2.defaults, { | ||
}; | ||
$.fn.select2.locales['sk'] = { | ||
formatNoMatches: function () { return "Nenašli sa žiadne položky"; }, | ||
@@ -20,7 +20,7 @@ formatInputTooShort: function (input, min) { | ||
if (n == 1) { | ||
return "Prosím zadajte ešte jeden znak"; | ||
return "Prosím, zadajte ešte jeden znak"; | ||
} else if (n <= 4) { | ||
return "Prosím zadajte ešte ďalšie "+smallNumbers[n](true)+" znaky"; | ||
return "Prosím, zadajte ešte ďalšie "+smallNumbers[n](true)+" znaky"; | ||
} else { | ||
return "Prosím zadajte ešte ďalších "+n+" znakov"; | ||
return "Prosím, zadajte ešte ďalších "+n+" znakov"; | ||
} | ||
@@ -31,7 +31,7 @@ }, | ||
if (n == 1) { | ||
return "Prosím zadajte o jeden znak menej"; | ||
return "Prosím, zadajte o jeden znak menej"; | ||
} else if (n <= 4) { | ||
return "Prosím zadajte o "+smallNumbers[n](true)+" znaky menej"; | ||
return "Prosím, zadajte o "+smallNumbers[n](true)+" znaky menej"; | ||
} else { | ||
return "Prosím zadajte o "+n+" znakov menej"; | ||
return "Prosím, zadajte o "+n+" znakov menej"; | ||
} | ||
@@ -48,5 +48,7 @@ }, | ||
}, | ||
formatLoadMore: function (pageNumber) { return "Načítavajú sa ďalšie výsledky..."; }, | ||
formatSearching: function () { return "Vyhľadávanie..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "Načítavajú sa ďalšie výsledky…"; }, | ||
formatSearching: function () { return "Vyhľadávanie…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['sk']); | ||
})(jQuery); |
@@ -9,3 +9,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['sv'] = { | ||
formatNoMatches: function () { return "Inga träffar"; }, | ||
@@ -15,5 +15,7 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "Var god skriv in " + n + (n>1 ? " till tecken" : " tecken till"); }, | ||
formatSelectionTooBig: function (limit) { return "Du kan max välja " + limit + " element"; }, | ||
formatLoadMore: function (pageNumber) { return "Laddar fler resultat..."; }, | ||
formatSearching: function () { return "Söker..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "Laddar fler resultat…"; }, | ||
formatSearching: function () { return "Söker…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['sv']); | ||
})(jQuery); |
@@ -9,3 +9,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['th'] = { | ||
formatNoMatches: function () { return "ไม่พบข้อมูล"; }, | ||
@@ -15,5 +15,7 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "โปรดพิมพ์เพิ่มอีก " + n + " ตัวอักษร"; }, | ||
formatSelectionTooBig: function (limit) { return "คุณสามารถเลือกได้ไม่เกิน " + limit + " รายการ"; }, | ||
formatLoadMore: function (pageNumber) { return "กำลังค้นข้อมูลเพิ่ม..."; }, | ||
formatSearching: function () { return "กำลังค้นข้อมูล..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "กำลังค้นข้อมูลเพิ่ม…"; }, | ||
formatSearching: function () { return "กำลังค้นข้อมูล…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['th']); | ||
})(jQuery); |
@@ -9,3 +9,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['tr'] = { | ||
formatNoMatches: function () { return "Sonuç bulunamadı"; }, | ||
@@ -15,5 +15,7 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "En az " + n + " karakter daha girmelisiniz"; }, | ||
formatSelectionTooBig: function (limit) { return "Sadece " + limit + " seçim yapabilirsiniz"; }, | ||
formatLoadMore: function (pageNumber) { return "Daha fazla..."; }, | ||
formatSearching: function () { return "Aranıyor..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "Daha fazla…"; }, | ||
formatSearching: function () { return "Aranıyor…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['tr']); | ||
})(jQuery); |
@@ -9,3 +9,3 @@ /** | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['vi'] = { | ||
formatNoMatches: function () { return "Không tìm thấy kết quả"; }, | ||
@@ -15,6 +15,8 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "Vui lòng nhập nhiều hơn " + n + " ký tự" + (n == 1 ? "" : "s"); }, | ||
formatSelectionTooBig: function (limit) { return "Chỉ có thể chọn được " + limit + " tùy chọn" + (limit == 1 ? "" : "s"); }, | ||
formatLoadMore: function (pageNumber) { return "Đang lấy thêm kết quả..."; }, | ||
formatSearching: function () { return "Đang tìm..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "Đang lấy thêm kết quả…"; }, | ||
formatSearching: function () { return "Đang tìm…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['vi']); | ||
})(jQuery); | ||
@@ -6,3 +6,3 @@ /** | ||
"use strict"; | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['zh-CN'] = { | ||
formatNoMatches: function () { return "没有找到匹配项"; }, | ||
@@ -12,5 +12,7 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "请再输入" + n + "个字符";}, | ||
formatSelectionTooBig: function (limit) { return "你只能选择最多" + limit + "项"; }, | ||
formatLoadMore: function (pageNumber) { return "加载结果中..."; }, | ||
formatSearching: function () { return "搜索中..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "加载结果中…"; }, | ||
formatSearching: function () { return "搜索中…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['zh-CN']); | ||
})(jQuery); |
@@ -6,3 +6,3 @@ /** | ||
"use strict"; | ||
$.extend($.fn.select2.defaults, { | ||
$.fn.select2.locales['zh-TW'] = { | ||
formatNoMatches: function () { return "沒有找到相符的項目"; }, | ||
@@ -12,5 +12,7 @@ formatInputTooShort: function (input, min) { var n = min - input.length; return "請再輸入" + n + "個字元";}, | ||
formatSelectionTooBig: function (limit) { return "你只能選擇最多" + limit + "項"; }, | ||
formatLoadMore: function (pageNumber) { return "載入中..."; }, | ||
formatSearching: function () { return "搜尋中..."; } | ||
}); | ||
formatLoadMore: function (pageNumber) { return "載入中…"; }, | ||
formatSearching: function () { return "搜尋中…"; } | ||
}; | ||
$.extend($.fn.select2.defaults, $.fn.select2.locales['zh-TW']); | ||
})(jQuery); |
@@ -14,3 +14,3 @@ { | ||
], | ||
"version": "3.4.5", | ||
"version": "3.5.1", | ||
"author": { | ||
@@ -17,0 +17,0 @@ "name": "Igor Vaynberg", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
231956
61
4677
1
0
105