From 76d21b03bbc8fd86242fbd8d15150f535412fbd4 Mon Sep 17 00:00:00 2001 From: Limon Saturized Date: Fri, 10 Jan 2014 13:02:26 +0100 Subject: [PATCH] Added Serbian locale --- select2_locale_rs.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 select2_locale_rs.js diff --git a/select2_locale_rs.js b/select2_locale_rs.js new file mode 100644 index 00000000..300c01bc --- /dev/null +++ b/select2_locale_rs.js @@ -0,0 +1,17 @@ +/** + * Select2 Serbian translation. + * + * @author Limon Monte + */ +(function ($) { + "use strict"; + + $.extend($.fn.select2.defaults, { + formatNoMatches: function () { return "Ništa nije pronađeno"; }, + formatInputTooShort: function (input, min) { var n = min - input.length; return "Ukucajte bar još " + n + " simbol" + (n % 10 == 1 && n % 100 != 11 ? "" : "a"); }, + formatInputTooLong: function (input, max) { var n = input.length - max; return "Obrišite " + n + " simbol" + (n % 10 == 1 && n % 100 != 11 ? "" : "a"); }, + formatSelectionTooBig: function (limit) { return "Možete izabrati samo " + limit + " stavk" + (limit % 10 == 1 && limit % 100 != 11 ? "u" : (limit % 10 >= 2 && limit % 10 <= 4 && (limit % 100 < 12 || limit % 100 > 14)? "e" : "i")); }, + formatLoadMore: function (pageNumber) { return "Preuzimanje još rezultata…"; }, + formatSearching: function () { return "Pretraga…"; } + }); +})(jQuery);