Skip to content

Commit 4847be1

Browse files
committed
Merge pull request select2#2027 from limonte/master
Added Serbian locale
2 parents aab3381 + 76d21b0 commit 4847be1

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

select2_locale_rs.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* Select2 Serbian translation.
3+
*
4+
* @author Limon Monte <limon.monte@gmail.com>
5+
*/
6+
(function ($) {
7+
"use strict";
8+
9+
$.extend($.fn.select2.defaults, {
10+
formatNoMatches: function () { return "Ništa nije pronađeno"; },
11+
formatInputTooShort: function (input, min) { var n = min - input.length; return "Ukucajte bar još " + n + " simbol" + (n % 10 == 1 && n % 100 != 11 ? "" : "a"); },
12+
formatInputTooLong: function (input, max) { var n = input.length - max; return "Obrišite " + n + " simbol" + (n % 10 == 1 && n % 100 != 11 ? "" : "a"); },
13+
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")); },
14+
formatLoadMore: function (pageNumber) { return "Preuzimanje još rezultata…"; },
15+
formatSearching: function () { return "Pretraga…"; }
16+
});
17+
})(jQuery);

0 commit comments

Comments
 (0)