define(function () {
// Upper Sorbian
var charsWords = ['znamje?ko', 'znamje?ce', 'znamje?ka','znamje?kow'];
var itemsWords = ['zapisk', 'zapiskaj', 'zapiski','zapiskow'];
var pluralWord = function pluralWord(numberOfChars, words) {
if (numberOfChars === 1) {
return words[0];
} else if (numberOfChars === 2) {
return words[1];
} else if (numberOfChars > 2 && numberOfChars <= 4) {
return words[2];
} else if (numberOfChars >= 5) {
return words[3];
}
};
return {
errorLoading: function () {
return 'Wusl?dki njedachu so za?ita?.';
},
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;
return 'Pro?u zha?ej ' + overChars + ' ' +
pluralWord(overChars, charsWords);
},
inputTooShort: function (args) {
var remainingChars = args.minimum - args.input.length;
return 'Pro?u zapodaj znajmje??a ' + remainingChars + ' ' +
pluralWord(remainingChars, charsWords);
},
loadingMore: function () {
return 'Dal?e wusl?dki so za?itaja?';
},
maximumSelected: function (args) {
return 'Mó?e? jeno? ' + args.maximum + ' ' +
pluralWord(args.maximum, itemsWords) + 'wubra?';
},
noResults: function () {
return '?ane wusl?dki namakane';
},
searching: function () {
return 'Pyta so?';
},
removeAllItems: function () {
// To DO : in Upper Sorbian.
return 'Remove all items';
}
};
});
|