define(function () {
// Ukranian
function ending (count, one, couple, more) {
if (count % 100 > 10 && count % 100 < 15) {
return more;
}
if (count % 10 === 1) {
return one;
}
if (count % 10 > 1 && count % 10 < 5) {
return couple;
}
return more;
}
return {
errorLoading: function () {
return '????????? ??????????? ??????????';
},
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;
return '???? ?????, ???????? ' + overChars + ' ' +
ending(args.maximum, '??????', '??????', '?????');
},
inputTooShort: function (args) {
var remainingChars = args.minimum - args.input.length;
return '???? ?????, ??????? ' + remainingChars + ' ??? ?????? ?????';
},
loadingMore: function () {
return '???????????? ????? ????????????';
},
maximumSelected: function (args) {
return '?? ?????? ??????? ???? ' + args.maximum + ' ' +
ending(args.maximum, '?????', '??????', '???????');
},
noResults: function () {
return '?????? ?? ????????';
},
searching: function () {
return '??????';
}
};
});
|