define(function () {
// Latvian
function ending (count, eleven, singular, other) {
if (count === 11) {
return eleven;
}
if (count % 10 === 1) {
return singular;
}
return other;
}
return {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;
var message = 'L?dzu ievadiet par ' + overChars;
message += ' simbol' + ending(overChars, 'iem', 'u', 'iem');
return message + ' maz?k';
},
inputTooShort: function (args) {
var remainingChars = args.minimum - args.input.length;
var message = 'L?dzu ievadiet v?l ' + remainingChars;
message += ' simbol' + ending(remainingChars, 'us', 'u', 'us');
return message;
},
loadingMore: function () {
return 'Datu iel?de?';
},
maximumSelected: function (args) {
var message = 'J?s varat izv?l?ties ne vair?k k? ' + args.maximum;
message += ' element' + ending(args.maximum, 'us', 'u', 'us');
return message;
},
noResults: function () {
return 'Sakrit?bu nav';
},
searching: function () {
return 'Mekl??ana?';
}
};
});
|