1
0
mirror of synced 2024-11-26 23:06:02 +03:00

Merge pull request #2020 from merkuriy/master

L10n files improved
This commit is contained in:
Igor Vaynberg 2014-01-08 15:05:23 -08:00
commit 3e5ad1334e
43 changed files with 162 additions and 190 deletions

View File

@ -52,7 +52,7 @@
"select2_locale_sv.js", "select2_locale_sv.js",
"select2_locale_th.js", "select2_locale_th.js",
"select2_locale_tr.js", "select2_locale_tr.js",
"select2_locale_ua.js", "select2_locale_uk.js",
"select2_locale_vi.js", "select2_locale_vi.js",
"select2_locale_zh-CN.js", "select2_locale_zh-CN.js",
"select2_locale_zh-TW.js" "select2_locale_zh-TW.js"

View File

@ -3246,8 +3246,8 @@ the specific language governing permissions and limitations under the Apache Lic
formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " more character" + (n == 1? "" : "s"); }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " more character" + (n == 1? "" : "s"); },
formatInputTooLong: function (input, max) { var n = input.length - max; return "Please delete " + n + " character" + (n == 1? "" : "s"); }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Please delete " + n + " character" + (n == 1? "" : "s"); },
formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); }, formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); },
formatLoadMore: function (pageNumber) { return "Loading more results..."; }, formatLoadMore: function (pageNumber) { return "Loading more results"; },
formatSearching: function () { return "Searching..."; }, formatSearching: function () { return "Searching"; },
minimumResultsForSearch: 0, minimumResultsForSearch: 0,
minimumInputLength: 0, minimumInputLength: 0,
maximumInputLength: null, maximumInputLength: null,

View File

@ -11,7 +11,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; if (n == 1){ return "الرجاء إدخال حرف واحد على الأكثر"; } return n == 2 ? "الرجاء إدخال حرفين على الأكثر" : "الجاء إدخال " + n + " على الأكثر"; }, 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 + " على الأقل "; }, 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 + " إختيارات فقط"; }, formatSelectionTooBig: function (limit) { if (n == 1){ return "يمكنك أن تختار إختيار واحد فقط"; } return n == 2 ? "يمكنك أن تختار إختيارين فقط" : "يمكنك أن تختار " + n + " إختيارات فقط"; },
formatLoadMore: function (pageNumber) { return "تحميل المزيد من النتائج..."; }, formatLoadMore: function (pageNumber) { return "تحميل المزيد من النتائج"; },
formatSearching: function () { return "البحث..."; } formatSearching: function () { return "البحث"; }
}); });
})(jQuery); })(jQuery);

View File

@ -1,17 +1,18 @@
/** /**
* Select2 <Language> translation. * Select2 Bulgarian translation.
* *
* Author: Lubomir Vikev <lubomirvikev@gmail.com> * @author Lubomir Vikev <lubomirvikev@gmail.com>
* @author Uriy Efremochkin <efremochkin@uriy.me>
*/ */
(function ($) { (function ($) {
"use strict"; "use strict";
$.extend($.fn.select2.defaults, { $.extend($.fn.select2.defaults, {
formatNoMatches: function () { return "Няма намерени съвпадения"; }, formatNoMatches: function () { return "Няма намерени съвпадения"; },
formatInputTooShort: function (input, min) { var n = min - input.length; return "Моля въведете още " + n + " символ" + (n == 1 ? "" : "а"); }, 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? "" : "а"); }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Моля въведете с " + n + " по-малко символ" + (n > 1 ? "а" : ""); },
formatSelectionTooBig: function (limit) { return "Можете да направите до " + limit + (limit == 1 ? " избор" : " избора"); }, formatSelectionTooBig: function (limit) { return "Можете да направите до " + limit + (limit > 1 ? " избора" : " избор"); },
formatLoadMore: function (pageNumber) { return "Зареждат се още..."; }, formatLoadMore: function (pageNumber) { return "Зареждат се още"; },
formatSearching: function () { return "Търсене..."; } formatSearching: function () { return "Търсене"; }
}); });
})(jQuery); })(jQuery);

View File

@ -11,7 +11,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "Introduïu " + n + " caràcter" + (n == 1 ? "" : "s") + " més"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Introduïu " + n + " caràcter" + (n == 1 ? "" : "s") + " més"; },
formatInputTooLong: function (input, max) { var n = input.length - max; return "Introduïu " + n + " caràcter" + (n == 1? "" : "s") + "menys"; }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Introduïu " + n + " caràcter" + (n == 1? "" : "s") + "menys"; },
formatSelectionTooBig: function (limit) { return "Només podeu seleccionar " + limit + " element" + (limit == 1 ? "" : "s"); }, formatSelectionTooBig: function (limit) { return "Només podeu seleccionar " + limit + " element" + (limit == 1 ? "" : "s"); },
formatLoadMore: function (pageNumber) { return "S'estan carregant més resultats..."; }, formatLoadMore: function (pageNumber) { return "S'estan carregant més resultats"; },
formatSearching: function () { return "S'està cercant..."; } formatSearching: function () { return "S'està cercant"; }
}); });
})(jQuery); })(jQuery);

View File

@ -43,7 +43,7 @@
return "Můžete zvolit maximálně "+limit+" položek"; return "Můžete zvolit maximálně "+limit+" položek";
} }
}, },
formatLoadMore: function (pageNumber) { return "Načítají se další výsledky..."; }, formatLoadMore: function (pageNumber) { return "Načítají se další výsledky"; },
formatSearching: function () { return "Vyhledávání..."; } formatSearching: function () { return "Vyhledávání"; }
}); });
})(jQuery); })(jQuery);

View File

@ -9,7 +9,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "Bitte " + n + " Zeichen mehr eingeben"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Bitte " + n + " Zeichen mehr eingeben"; },
formatInputTooLong: function (input, max) { var n = input.length - max; return "Bitte " + n + " Zeichen weniger eingeben"; }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Bitte " + n + " Zeichen weniger eingeben"; },
formatSelectionTooBig: function (limit) { return "Sie können nur " + limit + " Eintr" + (limit === 1 ? "ag" : "äge") + " auswählen"; }, formatSelectionTooBig: function (limit) { return "Sie können nur " + limit + " Eintr" + (limit === 1 ? "ag" : "äge") + " auswählen"; },
formatLoadMore: function (pageNumber) { return "Lade mehr Ergebnisse..."; }, formatLoadMore: function (pageNumber) { return "Lade mehr Ergebnisse"; },
formatSearching: function () { return "Suche..."; } formatSearching: function () { return "Suche"; }
}); });
})(jQuery); })(jQuery);

View File

@ -1,17 +1,17 @@
/** /**
* Select2 <Language> translation. * Select2 Greek translation.
* *
* Author: Your Name <your@email> * @author Uriy Efremochkin <efremochkin@uriy.me>
*/ */
(function ($) { (function ($) {
"use strict"; "use strict";
$.extend($.fn.select2.defaults, { $.extend($.fn.select2.defaults, {
formatNoMatches: function () { return "Δεν βρέθηκαν αποτελέσματα"; }, formatNoMatches: function () { return "Δεν βρέθηκαν αποτελέσματα"; },
formatInputTooShort: function (input, min) { var n = min - input.length; return "Παρακαλούμε εισάγετε " + n + " περισσότερο" + (n == 1 ? "" : "υς") + " χαρακτήρ" + (n == 1 ? "α" : "ες"); }, 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 ? "α" : "ες"); }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Παρακαλούμε διαγράψτε " + n + " χαρακτήρ" + (n > 1 ? "ες" : "α"); },
formatSelectionTooBig: function (limit) { return "Μπορείτε να επιλέξετε μόνο " + limit + " αντικείμεν" + (limit == 1 ? "ο" : "α"); }, formatSelectionTooBig: function (limit) { return "Μπορείτε να επιλέξετε μόνο " + limit + " αντικείμεν" + (limit > 1 ? "α" : "ο"); },
formatLoadMore: function (pageNumber) { return "Φόρτωση περισσότερων..."; }, formatLoadMore: function (pageNumber) { return "Φόρτωση περισσότερων"; },
formatSearching: function () { return "Αναζήτηση..."; } formatSearching: function () { return "Αναζήτηση"; }
}); });
})(jQuery); })(jQuery);

View File

@ -11,7 +11,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " more character" + (n == 1 ? "" : "s"); }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Please enter " + n + " more character" + (n == 1 ? "" : "s"); },
formatInputTooLong: function (input, max) { var n = input.length - max; return "Please delete " + n + " character" + (n == 1 ? "" : "s"); }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Please delete " + n + " character" + (n == 1 ? "" : "s"); },
formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); }, formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); },
formatLoadMore: function (pageNumber) { return "Loading more results..."; }, formatLoadMore: function (pageNumber) { return "Loading more results"; },
formatSearching: function () { return "Searching..."; } formatSearching: function () { return "Searching"; }
}); });
})(jQuery); })(jQuery);

View File

@ -6,10 +6,10 @@
$.extend($.fn.select2.defaults, { $.extend($.fn.select2.defaults, {
formatNoMatches: function () { return "No se encontraron resultados"; }, 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"); }, 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? " : "a") + "cter" + (n == 1? "" : "es"); }, 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"); }, formatSelectionTooBig: function (limit) { return "Sólo puede seleccionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
formatLoadMore: function (pageNumber) { return "Cargando más resultados..."; }, formatLoadMore: function (pageNumber) { return "Cargando más resultados"; },
formatSearching: function () { return "Buscando..."; } formatSearching: function () { return "Buscando"; }
}); });
})(jQuery); })(jQuery);

View File

@ -34,10 +34,10 @@
} }
}, },
formatLoadMore: function (pageNumber) { formatLoadMore: function (pageNumber) {
return "Emaitza gehiago kargatzen..."; return "Emaitza gehiago kargatzen";
}, },
formatSearching: function () { formatSearching: function () {
return "Bilatzen..."; return "Bilatzen";
} }
}); });
})(jQuery); })(jQuery);

View File

@ -1,5 +1,5 @@
/** /**
* Select2 <fa> translation. * Select2 Persian translation.
* *
* Author: Ali Choopan <choopan@arsh.co> * Author: Ali Choopan <choopan@arsh.co>
*/ */
@ -11,7 +11,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return " لطفا بیش از"+n+"کاراکتر وارد نمایید "; }, formatInputTooShort: function (input, min) { var n = min - input.length; return " لطفا بیش از"+n+"کاراکتر وارد نمایید "; },
formatInputTooLong: function (input, max) { var n = input.length - max; return " لطفا" + n + " کاراکتر را حذف کنید."; }, formatInputTooLong: function (input, max) { var n = input.length - max; return " لطفا" + n + " کاراکتر را حذف کنید."; },
formatSelectionTooBig: function (limit) { return "شما فقط می‌توانید " + limit + " مورد را انتخاب کنید"; }, formatSelectionTooBig: function (limit) { return "شما فقط می‌توانید " + limit + " مورد را انتخاب کنید"; },
formatLoadMore: function (pageNumber) { return "در حال بارگذاری موارد بیشتر ..."; }, formatLoadMore: function (pageNumber) { return "در حال بارگذاری موارد بیشتر "; },
formatSearching: function () { return "در حال جستجو"; } formatSearching: function () { return "در حال جستجو"; }
}); });
})(jQuery); })(jQuery);

View File

@ -19,10 +19,10 @@
return "Voit valita ainoastaan " + limit + " kpl"; return "Voit valita ainoastaan " + limit + " kpl";
}, },
formatLoadMore: function (pageNumber) { formatLoadMore: function (pageNumber) {
return "Ladataan lisää tuloksia..."; return "Ladataan lisää tuloksia";
}, },
formatSearching: function () { formatSearching: function () {
return "Etsitään..."; return "Etsitään";
} }
}); });
})(jQuery); })(jQuery);

View File

@ -9,7 +9,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "Merci de saisir " + n + " caractère" + (n == 1? "" : "s") + " de plus"; }, 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"); }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Merci de supprimer " + n + " caractère" + (n == 1? "" : "s"); },
formatSelectionTooBig: function (limit) { return "Vous pouvez seulement sélectionner " + limit + " élément" + (limit == 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..."; }, formatLoadMore: function (pageNumber) { return "Chargement de résultats supplémentaires"; },
formatSearching: function () { return "Recherche en cours..."; } formatSearching: function () { return "Recherche en cours"; }
}); });
})(jQuery); })(jQuery);

View File

@ -34,10 +34,10 @@
} }
}, },
formatLoadMore: function (pageNumber) { formatLoadMore: function (pageNumber) {
return "Cargando máis resultados..."; return "Cargando máis resultados";
}, },
formatSearching: function () { formatSearching: function () {
return "Buscando..."; return "Buscando";
} }
}); });
})(jQuery); })(jQuery);

View File

@ -11,7 +11,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "נא להזין עוד " + n + " תווים נוספים"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "נא להזין עוד " + n + " תווים נוספים"; },
formatInputTooLong: function (input, max) { var n = input.length - max; return "נא להזין פחות " + n + " תווים"; }, formatInputTooLong: function (input, max) { var n = input.length - max; return "נא להזין פחות " + n + " תווים"; },
formatSelectionTooBig: function (limit) { return "ניתן לבחור " + limit + " פריטים"; }, formatSelectionTooBig: function (limit) { return "ניתן לבחור " + limit + " פריטים"; },
formatLoadMore: function (pageNumber) { return "טוען תוצאות נוספות..."; }, formatLoadMore: function (pageNumber) { return "טוען תוצאות נוספות"; },
formatSearching: function () { return "מחפש..."; } formatSearching: function () { return "מחפש"; }
}); });
})(jQuery); })(jQuery);

View File

@ -1,42 +1,22 @@
/** /**
* Select2 Croatian translation. * Select2 Croatian translation.
* *
* Author: Edi Modrić <edi.modric@gmail.com> * @author Edi Modrić <edi.modric@gmail.com>
* @author Uriy Efremochkin <efremochkin@uriy.me>
*/ */
(function ($) { (function ($) {
"use strict"; "use strict";
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"); }
};
$.extend($.fn.select2.defaults, { $.extend($.fn.select2.defaults, {
formatNoMatches: function () { return "Nema rezultata"; }, formatNoMatches: function () { return "Nema rezultata"; },
formatInputTooShort: function (input, min) { formatInputTooShort: function (input, min) { return "Unesite još" + character(min - input.length); },
var n = min - input.length; formatInputTooLong: function (input, max) { return "Unesite" + character(input.length - max) + " manje"; },
var nMod10 = n % 10;
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; }, formatSelectionTooBig: function (limit) { return "Maksimalan broj odabranih stavki je " + limit; },
formatLoadMore: function (pageNumber) { return "Učitavanje rezultata..."; }, formatLoadMore: function (pageNumber) { return "Učitavanje rezultata…"; },
formatSearching: function () { return "Pretraga..."; } 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); })(jQuery);

View File

@ -9,7 +9,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "Túl rövid. Még " + n + " karakter hiányzik."; }, 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 + " kerekterrel több mint kellene."; },
formatSelectionTooBig: function (limit) { return "Csak " + limit + " elemet lehet kiválasztani."; }, formatSelectionTooBig: function (limit) { return "Csak " + limit + " elemet lehet kiválasztani."; },
formatLoadMore: function (pageNumber) { return "Töltés..."; }, formatLoadMore: function (pageNumber) { return "Töltés"; },
formatSearching: function () { return "Keresés..."; } formatSearching: function () { return "Keresés"; }
}); });
})(jQuery); })(jQuery);

View File

@ -11,7 +11,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "Masukkan " + n + " huruf lagi" + (n == 1 ? "" : "s"); }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Masukkan " + n + " huruf lagi" + (n == 1 ? "" : "s"); },
formatInputTooLong: function (input, max) { var n = input.length - max; return "Hapus " + n + " huruf" + (n == 1 ? "" : "s"); }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Hapus " + n + " huruf" + (n == 1 ? "" : "s"); },
formatSelectionTooBig: function (limit) { return "Anda hanya dapat memilih " + limit + " pilihan" + (limit == 1 ? "" : "s"); }, formatSelectionTooBig: function (limit) { return "Anda hanya dapat memilih " + limit + " pilihan" + (limit == 1 ? "" : "s"); },
formatLoadMore: function (pageNumber) { return "Mengambil data..."; }, formatLoadMore: function (pageNumber) { return "Mengambil data"; },
formatSearching: function () { return "Mencari..."; } formatSearching: function () { return "Mencari"; }
}); });
})(jQuery); })(jQuery);

View File

@ -1,16 +1,15 @@
/** /**
* Select2 Icelandic translation. * Select2 Icelandic translation.
*
*/ */
(function ($) { (function ($) {
"use strict"; "use strict";
$.extend($.fn.select2.defaults, { $.extend($.fn.select2.defaults, {
formatNoMatches: function () { return "Ekkert fannst"; }, 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"; }, 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"); }, 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"; }, formatSelectionTooBig: function (limit) { return "Þú getur aðeins valið " + limit + " atriði"; },
formatLoadMore: function (pageNumber) { return "Sæki fleiri niðurstöður..."; }, formatLoadMore: function (pageNumber) { return "Sæki fleiri niðurstöður…"; },
formatSearching: function () { return "Leita..."; } formatSearching: function () { return "Leita"; }
}); });
})(jQuery); })(jQuery);

View File

@ -9,7 +9,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "Inserisci ancora " + n + " caratter" + (n == 1? "e" : "i"); }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Inserisci ancora " + n + " caratter" + (n == 1? "e" : "i"); },
formatInputTooLong: function (input, max) { var n = input.length - max; return "Inserisci " + n + " caratter" + (n == 1? "e" : "i") + " in meno"; }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Inserisci " + n + " caratter" + (n == 1? "e" : "i") + " in meno"; },
formatSelectionTooBig: function (limit) { return "Puoi selezionare solo " + limit + " element" + (limit == 1 ? "o" : "i"); }, formatSelectionTooBig: function (limit) { return "Puoi selezionare solo " + limit + " element" + (limit == 1 ? "o" : "i"); },
formatLoadMore: function (pageNumber) { return "Caricamento in corso..."; }, formatLoadMore: function (pageNumber) { return "Caricamento in corso"; },
formatSearching: function () { return "Ricerca..."; } formatSearching: function () { return "Ricerca"; }
}); });
})(jQuery); })(jQuery);

View File

@ -11,7 +11,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "გთხოვთ შეიყვანოთ კიდევ " + n + " სიმბოლო"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "გთხოვთ შეიყვანოთ კიდევ " + n + " სიმბოლო"; },
formatInputTooLong: function (input, max) { var n = input.length - max; return "გთხოვთ წაშალოთ " + n + " სიმბოლო"; }, formatInputTooLong: function (input, max) { var n = input.length - max; return "გთხოვთ წაშალოთ " + n + " სიმბოლო"; },
formatSelectionTooBig: function (limit) { return "თქვენ შეგიძლიათ მხოლოდ " + limit + " ჩანაწერის მონიშვნა"; }, formatSelectionTooBig: function (limit) { return "თქვენ შეგიძლიათ მხოლოდ " + limit + " ჩანაწერის მონიშვნა"; },
formatLoadMore: function (pageNumber) { return "შედეგის ჩატვირთვა..."; }, formatLoadMore: function (pageNumber) { return "შედეგის ჩატვირთვა"; },
formatSearching: function () { return "ძებნა..."; } formatSearching: function () { return "ძებნა"; }
}); });
})(jQuery); })(jQuery);

View File

@ -1,7 +1,7 @@
/** /**
* Select2 <Language> translation. * Select2 Korean translation.
* *
* Author: Swen Mun <longfinfunnel@gmail.com> * @author Swen Mun <longfinfunnel@gmail.com>
*/ */
(function ($) { (function ($) {
"use strict"; "use strict";

View File

@ -1,29 +1,24 @@
/** /**
* 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>
*/ */
(function ($) { (function ($) {
"use strict"; "use strict";
$.extend($.fn.select2.defaults, { $.extend($.fn.select2.defaults, {
formatNoMatches: function () { return "Atitikmenų nerasta"; }, formatNoMatches: function () { return "Atitikmenų nerasta"; },
formatInputTooShort: function (input, min) { formatInputTooShort: function (input, min) { return "Įrašykite dar" + character(min - input.length); },
var n = min - input.length, formatInputTooLong: function (input, max) { return "Pašalinkite" + character(input.length - max); },
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;
},
formatSelectionTooBig: function (limit) { formatSelectionTooBig: function (limit) {
var n = limit, return "Jūs galite pasirinkti tik " + limit + " element" + ((limit%100 > 9 && limit%100 < 21) || limit%10 == 0 ? "ų" : limit%10 > 1 ? "us" : "ą");
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;
}, },
formatLoadMore: function (pageNumber) { return "Kraunama daugiau rezultatų..."; }, formatLoadMore: function (pageNumber) { return "Kraunama daugiau rezultatų…"; },
formatSearching: function () { return "Ieškoma..."; } formatSearching: function () { return "Ieškoma…"; }
}); });
function character (n) {
return " " + n + " simbol" + ((n%100 > 9 && n%100 < 21) || n%10 == 0 ? "ių" : n%10 > 1 ? "ius" : "į");
}
})(jQuery); })(jQuery);

View File

@ -1,16 +1,17 @@
/** /**
* Select2 Latvian translation * Select2 Latvian translation.
*
* @author Uriy Efremochkin <efremochkin@uriy.me>
*/ */
(function ($) { (function ($) {
"use strict"; "use strict";
$.extend($.fn.select2.defaults, { $.extend($.fn.select2.defaults, {
formatNoMatches: function () { return "Sakritību nav"; }, 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")); }, 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" : (/^\d*[1]$/im.test(n)? "u" : "iem")) + " mazāk"; }, 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" : (/^\d*[1]$/im.test(limit)? "u" : "us")); }, 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..."; }, formatLoadMore: function (pageNumber) { return "Datu ielāde"; },
formatSearching: function () { return "Meklēšana..."; } formatSearching: function () { return "Meklēšana"; }
}); });
})(jQuery); })(jQuery);

View File

@ -11,7 +11,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "Ве молиме внесете уште " + n + " карактер" + (n == 1 ? "" : "и"); }, 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? "" : "и"); }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Ве молиме внесете " + n + " помалку карактер" + (n == 1? "" : "и"); },
formatSelectionTooBig: function (limit) { return "Можете да изберете само " + limit + " ставк" + (limit == 1 ? "а" : "и"); }, formatSelectionTooBig: function (limit) { return "Можете да изберете само " + limit + " ставк" + (limit == 1 ? "а" : "и"); },
formatLoadMore: function (pageNumber) { return "Вчитување резултати..."; }, formatLoadMore: function (pageNumber) { return "Вчитување резултати"; },
formatSearching: function () { return "Пребарување..."; } formatSearching: function () { return "Пребарување"; }
}); });
})(jQuery); })(jQuery);

View File

@ -11,7 +11,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "Sila masukkan " + n + " aksara lagi"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Sila masukkan " + n + " aksara lagi"; },
formatInputTooLong: function (input, max) { var n = input.length - max; return "Sila hapuskan " + n + " aksara"; }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Sila hapuskan " + n + " aksara"; },
formatSelectionTooBig: function (limit) { return "Anda hanya boleh memilih " + limit + " pilihan"; }, formatSelectionTooBig: function (limit) { return "Anda hanya boleh memilih " + limit + " pilihan"; },
formatLoadMore: function (pageNumber) { return "Sedang memuatkan keputusan..."; }, formatLoadMore: function (pageNumber) { return "Sedang memuatkan keputusan"; },
formatSearching: function () { return "Mencari..."; } formatSearching: function () { return "Mencari"; }
}); });
})(jQuery); })(jQuery);

View File

@ -9,7 +9,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vul " + n + " karakter" + (n == 1? "" : "s") + " meer in"; }, 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"; }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Vul " + n + " karakter" + (n == 1? "" : "s") + " minder in"; },
formatSelectionTooBig: function (limit) { return "Maximaal " + limit + " item" + (limit == 1 ? "" : "s") + " toegestaan"; }, formatSelectionTooBig: function (limit) { return "Maximaal " + limit + " item" + (limit == 1 ? "" : "s") + " toegestaan"; },
formatLoadMore: function (pageNumber) { return "Meer resultaten laden..."; }, formatLoadMore: function (pageNumber) { return "Meer resultaten laden"; },
formatSearching: function () { return "Zoeken..."; } formatSearching: function () { return "Zoeken"; }
}); });
})(jQuery); })(jQuery);

View File

@ -11,8 +11,8 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vennligst skriv inn " + n + (n>1 ? " flere tegn" : " tegn til"); }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Vennligst skriv inn " + n + (n>1 ? " flere tegn" : " tegn til"); },
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vennligst fjern " + n + " tegn"; }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Vennligst fjern " + n + " tegn"; },
formatSelectionTooBig: function (limit) { return "Du kan velge maks " + limit + " elementer"; }, formatSelectionTooBig: function (limit) { return "Du kan velge maks " + limit + " elementer"; },
formatLoadMore: function (pageNumber) { return "Laster flere resultater..."; }, formatLoadMore: function (pageNumber) { return "Laster flere resultater"; },
formatSearching: function () { return "Søker..."; } formatSearching: function () { return "Søker"; }
}); });
})(jQuery); })(jQuery);

View File

@ -1,37 +1,22 @@
/** /**
* Select2 Polish translation. * Select2 Polish translation.
* *
* Author: Jan Kondratowicz <jan@kondratowicz.pl> * @author Jan Kondratowicz <jan@kondratowicz.pl>
* @author Uriy Efremochkin <efremochkin@uriy.me>
*/ */
(function ($) { (function ($) {
"use strict"; "use strict";
var pl_suffix = function(n, pluralSuffix) {
if(n == 1) return "";
if((n%100 > 1 && n%100 < 5) || (n%100 > 20 && n%10 > 1 && n%10 < 5)) return pluralSuffix;
return "ów";
};
$.extend($.fn.select2.defaults, { $.extend($.fn.select2.defaults, {
formatNoMatches: function () { formatNoMatches: function () { return "Brak wyników"; },
return "Brak wyników."; formatInputTooShort: function (input, min) { return "Wpisz jeszcze" + character(min - input.length, "znak", "i"); },
}, formatInputTooLong: function (input, max) { return "Wpisana fraza jest za długa o" + character(input.length - max, "znak", "i"); },
formatInputTooShort: function (input, min) { formatSelectionTooBig: function (limit) { return "Możesz zaznaczyć najwyżej" + character(limit, "element", "y"); },
var n = min - input.length; formatLoadMore: function (pageNumber) { return "Ładowanie wyników…"; },
return "Wpisz jeszcze " + n + " znak" + pl_suffix(n,'i') + "."; formatSearching: function () { return "Szukanie…"; }
},
formatInputTooLong: function (input, max) {
var n = input.length - max;
return "Wpisana fraza jest za długa o " + n + " znak" + pl_suffix(n,'i') + ".";
},
formatSelectionTooBig: function (limit) {
return "Możesz zaznaczyć najwyżej " + limit + " element" + pl_suffix(limit,'y') + ".";
},
formatLoadMore: function (pageNumber) {
return "Ładowanie wyników...";
},
formatSearching: function () {
return "Szukanie...";
}
}); });
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); })(jQuery);

View File

@ -9,7 +9,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "Informe " + n + " caractere" + (n == 1? "" : "s"); }, 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"); }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " caractere" + (n == 1? "" : "s"); },
formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); }, formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
formatLoadMore: function (pageNumber) { return "Carregando mais resultados..."; }, formatLoadMore: function (pageNumber) { return "Carregando mais resultados"; },
formatSearching: function () { return "Buscando..."; } formatSearching: function () { return "Buscando"; }
}); });
})(jQuery); })(jQuery);

View File

@ -9,7 +9,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "Introduza " + n + " car" + (n == 1 ? "ácter" : "acteres"); }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Introduza " + n + " car" + (n == 1 ? "ácter" : "acteres"); },
formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " car" + (n == 1 ? "ácter" : "acteres"); }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Apague " + n + " car" + (n == 1 ? "ácter" : "acteres"); },
formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); }, formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
formatLoadMore: function (pageNumber) { return "A carregar mais resultados..."; }, formatLoadMore: function (pageNumber) { return "A carregar mais resultados"; },
formatSearching: function () { return "A pesquisar..."; } formatSearching: function () { return "A pesquisar"; }
}); });
})(jQuery); })(jQuery);

View File

@ -9,7 +9,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "Vă rugăm să introduceți incă " + n + " caracter" + (n == 1 ? "" : "e"); }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Vă rugăm să introduceți incă " + n + " caracter" + (n == 1 ? "" : "e"); },
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vă rugăm să introduceți mai puțin de " + n + " caracter" + (n == 1? "" : "e"); }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Vă rugăm să introduceți mai puțin de " + n + " caracter" + (n == 1? "" : "e"); },
formatSelectionTooBig: function (limit) { return "Aveți voie să selectați cel mult " + limit + " element" + (limit == 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ă..."; }, formatLoadMore: function (pageNumber) { return "Se încarcă"; },
formatSearching: function () { return "Căutare..."; } formatSearching: function () { return "Căutare"; }
}); });
})(jQuery); })(jQuery);

View File

@ -1,15 +1,21 @@
/** /**
* Select2 Russian translation * Select2 Russian translation.
*
* @author Uriy Efremochkin <efremochkin@uriy.me>
*/ */
(function ($) { (function ($) {
"use strict"; "use strict";
$.extend($.fn.select2.defaults, { $.extend($.fn.select2.defaults, {
formatNoMatches: function () { return "Совпадений не найдено"; }, formatNoMatches: function () { return "Совпадений не найдено"; },
formatInputTooShort: function (input, min) { var n = min - input.length; return "Пожалуйста, введите еще " + n + " символ" + (n == 1 ? "" : ((n > 1)&&(n < 5) ? "а" : "ов")); }, formatInputTooShort: function (input, min) { return "Пожалуйста, введите еще" + character(min - input.length); },
formatInputTooLong: function (input, max) { var n = input.length - max; return "Пожалуйста, введите на " + n + " символ" + (n == 1 ? "" : ((n > 1)&&(n < 5)? "а" : "ов")) + " меньше"; }, formatInputTooLong: function (input, max) { return "Пожалуйста, введите на" + character(input.length - max) + " меньше"; },
formatSelectionTooBig: function (limit) { return "Вы можете выбрать не более " + limit + " элемент" + (limit == 1 ? "а" : "ов"); }, formatSelectionTooBig: function (limit) { return "Вы можете выбрать не более " + limit + " элемент" + (limit%10 == 1 && limit%100 != 11 ? "а" : "ов"); },
formatLoadMore: function (pageNumber) { return "Загрузка данных..."; }, formatLoadMore: function (pageNumber) { return "Загрузка данных"; },
formatSearching: function () { return "Поиск..."; } formatSearching: function () { return "Поиск"; }
}); });
function character (n) {
return " " + n + " символ" + (n%10 < 5 && n%10 > 0 && (n%100 < 5 || n%100 > 20) ? n%10 > 1 ? "a" : "" : "ов");
}
})(jQuery); })(jQuery);

View File

@ -42,7 +42,7 @@
return "Môžete zvoliť najviac "+limit+" položiek"; return "Môžete zvoliť najviac "+limit+" položiek";
} }
}, },
formatLoadMore: function (pageNumber) { return "Načítavajú sa ďalšie výsledky..."; }, formatLoadMore: function (pageNumber) { return "Načítavajú sa ďalšie výsledky"; },
formatSearching: function () { return "Vyhľadávanie..."; } formatSearching: function () { return "Vyhľadávanie"; }
}); });
})(jQuery); })(jQuery);

View File

@ -11,7 +11,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "Var god skriv in " + n + (n>1 ? " till tecken" : " tecken till"); }, formatInputTooShort: function (input, min) { var n = min - input.length; return "Var god skriv in " + n + (n>1 ? " till tecken" : " tecken till"); },
formatInputTooLong: function (input, max) { var n = input.length - max; return "Var god sudda ut " + n + " tecken"; }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Var god sudda ut " + n + " tecken"; },
formatSelectionTooBig: function (limit) { return "Du kan max välja " + limit + " element"; }, formatSelectionTooBig: function (limit) { return "Du kan max välja " + limit + " element"; },
formatLoadMore: function (pageNumber) { return "Laddar fler resultat..."; }, formatLoadMore: function (pageNumber) { return "Laddar fler resultat"; },
formatSearching: function () { return "Söker..."; } formatSearching: function () { return "Söker"; }
}); });
})(jQuery); })(jQuery);

View File

@ -11,7 +11,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "โปรดพิมพ์เพิ่มอีก " + n + " ตัวอักษร"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "โปรดพิมพ์เพิ่มอีก " + n + " ตัวอักษร"; },
formatInputTooLong: function (input, max) { var n = input.length - max; return "โปรดลบออก " + n + " ตัวอักษร"; }, formatInputTooLong: function (input, max) { var n = input.length - max; return "โปรดลบออก " + n + " ตัวอักษร"; },
formatSelectionTooBig: function (limit) { return "คุณสามารถเลือกได้ไม่เกิน " + limit + " รายการ"; }, formatSelectionTooBig: function (limit) { return "คุณสามารถเลือกได้ไม่เกิน " + limit + " รายการ"; },
formatLoadMore: function (pageNumber) { return "กำลังค้นข้อมูลเพิ่ม..."; }, formatLoadMore: function (pageNumber) { return "กำลังค้นข้อมูลเพิ่ม"; },
formatSearching: function () { return "กำลังค้นข้อมูล..."; } formatSearching: function () { return "กำลังค้นข้อมูล"; }
}); });
})(jQuery); })(jQuery);

View File

@ -11,7 +11,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "En az " + n + " karakter daha girmelisiniz"; }, formatInputTooShort: function (input, min) { var n = min - input.length; return "En az " + n + " karakter daha girmelisiniz"; },
formatInputTooLong: function (input, max) { var n = input.length - max; return n + " karakter azaltmalısınız"; }, formatInputTooLong: function (input, max) { var n = input.length - max; return n + " karakter azaltmalısınız"; },
formatSelectionTooBig: function (limit) { return "Sadece " + limit + " seçim yapabilirsiniz"; }, formatSelectionTooBig: function (limit) { return "Sadece " + limit + " seçim yapabilirsiniz"; },
formatLoadMore: function (pageNumber) { return "Daha fazla..."; }, formatLoadMore: function (pageNumber) { return "Daha fazla"; },
formatSearching: function () { return "Aranıyor..."; } formatSearching: function () { return "Aranıyor"; }
}); });
})(jQuery); })(jQuery);

View File

@ -1,17 +0,0 @@
/**
* Select2 <Language> translation.
*
* Author: bigmihail <bigmihail@bigmir.net>
*/
(function ($) {
"use strict";
$.extend($.fn.select2.defaults, {
formatNoMatches: function () { return "Нічого не знайдено"; },
formatInputTooShort: function (input, min) { var n = min - input.length, s = ["", "и", "ів"], p = [2,0,1,1,1,2]; return "Введіть буль ласка ще " + n + " символ" + s[ (n%100>4 && n%100<=20)? 2 : p[Math.min(n%10, 5)] ]; },
formatInputTooLong: function (input, max) { var n = input.length - max, s = ["", "и", "ів"], p = [2,0,1,1,1,2]; return "Введіть буль ласка на " + n + " символ" + s[ (n%100>4 && n%100<=20)? 2 : p[Math.min(n%10, 5)] ] + " менше"; },
formatSelectionTooBig: function (limit) {var s = ["", "и", "ів"], p = [2,0,1,1,1,2]; return "Ви можете вибрати лише " + limit + " елемент" + s[ (limit%100>4 && limit%100<=20)? 2 : p[Math.min(limit%10, 5)] ]; },
formatLoadMore: function (pageNumber) { return "Завантаження даних..."; },
formatSearching: function () { return "Пошук..."; }
});
})(jQuery);

22
select2_locale_uk.js Normal file
View File

@ -0,0 +1,22 @@
/**
* Select2 Ukrainian translation.
*
* @author bigmihail <bigmihail@bigmir.net>
* @author Uriy Efremochkin <efremochkin@uriy.me>
*/
(function ($) {
"use strict";
$.extend($.fn.select2.defaults, {
formatNoMatches: function () { return "Нічого не знайдено"; },
formatInputTooShort: function (input, min) { return "Введіть буль ласка ще" + character(min - input.length, "символ"); },
formatInputTooLong: function (input, max) { return "Введіть буль ласка на" + character(input.length - max, "символ") + " менше"; },
formatSelectionTooBig: function (limit) { return "Ви можете вибрати лише" + character(limit, "елемент"); },
formatLoadMore: function (pageNumber) { return "Завантаження даних…"; },
formatSearching: function () { return "Пошук…"; }
});
function character (n, word) {
return " " + n + " " + word + (n%10 < 5 && n%10 > 0 && (n%100 < 5 || n%100 > 19) ? n%10 > 1 ? "и" : "" : "ів");
}
})(jQuery);

View File

@ -11,8 +11,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"); }, 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"); },
formatInputTooLong: function (input, max) { var n = input.length - max; return "Vui lòng nhập ít hơn " + n + " ký tự" + (n == 1? "" : "s"); }, formatInputTooLong: function (input, max) { var n = input.length - max; return "Vui lòng nhập ít 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"); }, 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ả..."; }, formatLoadMore: function (pageNumber) { return "Đang lấy thêm kết quả"; },
formatSearching: function () { return "Đang tìm..."; } formatSearching: function () { return "Đang tìm"; }
}); });
})(jQuery); })(jQuery);

View File

@ -8,7 +8,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "请再输入" + n + "个字符";}, formatInputTooShort: function (input, min) { var n = min - input.length; return "请再输入" + n + "个字符";},
formatInputTooLong: function (input, max) { var n = input.length - max; return "请删掉" + n + "个字符";}, formatInputTooLong: function (input, max) { var n = input.length - max; return "请删掉" + n + "个字符";},
formatSelectionTooBig: function (limit) { return "你只能选择最多" + limit + "项"; }, formatSelectionTooBig: function (limit) { return "你只能选择最多" + limit + "项"; },
formatLoadMore: function (pageNumber) { return "加载结果中..."; }, formatLoadMore: function (pageNumber) { return "加载结果中"; },
formatSearching: function () { return "搜索中..."; } formatSearching: function () { return "搜索中"; }
}); });
})(jQuery); })(jQuery);

View File

@ -8,7 +8,7 @@
formatInputTooShort: function (input, min) { var n = min - input.length; return "請再輸入" + n + "個字元";}, formatInputTooShort: function (input, min) { var n = min - input.length; return "請再輸入" + n + "個字元";},
formatInputTooLong: function (input, max) { var n = input.length - max; return "請刪掉" + n + "個字元";}, formatInputTooLong: function (input, max) { var n = input.length - max; return "請刪掉" + n + "個字元";},
formatSelectionTooBig: function (limit) { return "你只能選擇最多" + limit + "項"; }, formatSelectionTooBig: function (limit) { return "你只能選擇最多" + limit + "項"; },
formatLoadMore: function (pageNumber) { return "載入中..."; }, formatLoadMore: function (pageNumber) { return "載入中"; },
formatSearching: function () { return "搜尋中..."; } formatSearching: function () { return "搜尋中"; }
}); });
})(jQuery); })(jQuery);