2013-03-25 16:25:16 +04:00
|
|
|
/**
|
|
|
|
* Select2 Croatian translation.
|
|
|
|
*
|
2014-01-08 12:43:05 +04:00
|
|
|
* @author Edi Modrić <edi.modric@gmail.com>
|
|
|
|
* @author Uriy Efremochkin <efremochkin@uriy.me>
|
2013-03-25 16:25:16 +04:00
|
|
|
*/
|
|
|
|
(function ($) {
|
|
|
|
"use strict";
|
|
|
|
|
2014-04-15 11:20:22 +04:00
|
|
|
$.fn.select2.locales['hr'] = {
|
2013-03-25 16:25:16 +04:00
|
|
|
formatNoMatches: function () { return "Nema rezultata"; },
|
2014-01-08 12:43:05 +04:00
|
|
|
formatInputTooShort: function (input, min) { return "Unesite još" + character(min - input.length); },
|
|
|
|
formatInputTooLong: function (input, max) { return "Unesite" + character(input.length - max) + " manje"; },
|
2013-03-25 16:25:16 +04:00
|
|
|
formatSelectionTooBig: function (limit) { return "Maksimalan broj odabranih stavki je " + limit; },
|
2014-01-08 13:35:47 +04:00
|
|
|
formatLoadMore: function (pageNumber) { return "Učitavanje rezultata…"; },
|
|
|
|
formatSearching: function () { return "Pretraga…"; }
|
2014-05-15 14:55:44 +04:00
|
|
|
}
|
|
|
|
|
2014-05-16 13:02:10 +04:00
|
|
|
$.extend($.fn.select2.defaults, $.fn.select2.locales['hr']);
|
2014-01-08 12:43:05 +04:00
|
|
|
|
|
|
|
function character (n) {
|
|
|
|
return " " + n + " znak" + (n%10 < 5 && n%10 > 0 && (n%100 < 5 || n%100 > 19) ? n%10 > 1 ? "a" : "" : "ova");
|
|
|
|
}
|
2013-03-25 16:25:16 +04:00
|
|
|
})(jQuery);
|