1
0
mirror of synced 2024-11-29 16:16:02 +03:00

Create hsb.js

This commit is contained in:
milupo 2017-06-10 16:02:59 +02:00 committed by GitHub
parent c155ca5b60
commit a4a095bda8

47
src/js/select2/i18n/hsb.js vendored Normal file
View File

@ -0,0 +1,47 @@
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…';
}
};
});