define(function () {
// Serbian Cyrilic
function ending (count, one, some, many) {
if (count % 10 == 1 && count % 100 != 11) {
return one;
}
if (count % 10 >= 2 && count % 10 <= 4 &&
(count % 100 < 12 || count % 100 > 14)) {
return some;
}
return many;
}
return {
errorLoading: function () {
return '?????????? ???? ??????.';
},
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;
var message = '???????? ' + overChars + ' ??????';
message += ending(overChars, '', '?', '?');
return message;
},
inputTooShort: function (args) {
var remainingChars = args.minimum - args.input.length;
var message = '???????? ??? ??? ' + remainingChars + ' ??????';
message += ending(remainingChars, '', '?', '?');
return message;
},
loadingMore: function () {
return '?????????? ??? ??????????';
},
maximumSelected: function (args) {
var message = '?????? ???????? ???? ' + args.maximum + ' ?????';
message += ending(args.maximum, '?', '?', '?');
return message;
},
noResults: function () {
return '????? ???? ?????????';
},
searching: function () {
return '?????????';
}
};
});
|