Skip to content

Commit 8e6422c

Browse files
mitja-pkevin-brown
authored andcommitted
Add Slovene translation
This closes select2#4576.
1 parent 4df9652 commit 8e6422c

1 file changed

Lines changed: 54 additions & 0 deletions

File tree

src/js/select2/i18n/sl.js

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
define(function () {
2+
// Slovene
3+
return {
4+
errorLoading: function () {
5+
return 'Zadetkov iskanja ni bilo mogoče naložiti.';
6+
},
7+
inputTooLong: function (args) {
8+
var overChars = args.input.length - args.maximum;
9+
10+
var message = 'Prosim zbrišite ' + overChars + ' znak';
11+
12+
if (overChars == 2) {
13+
message += 'a';
14+
} else if (overChars != 1) {
15+
message += 'e';
16+
}
17+
18+
return message;
19+
},
20+
inputTooShort: function (args) {
21+
var remainingChars = args.minimum - args.input.length;
22+
23+
var message = 'Prosim vpišite še ' + remainingChars + ' znak';
24+
25+
if (remainingChars == 2) {
26+
message += 'a';
27+
} else if (remainingChars != 1) {
28+
message += 'e';
29+
}
30+
31+
return message;
32+
},
33+
loadingMore: function () {
34+
return 'Nalagam več zadetkov…';
35+
},
36+
maximumSelected: function (args) {
37+
var message = 'Označite lahko največ ' + args.maximum + ' predmet';
38+
39+
if (args.maximum == 2) {
40+
message += 'a';
41+
} else if (args.maximum != 1) {
42+
message += 'e';
43+
}
44+
45+
return message;
46+
},
47+
noResults: function () {
48+
return 'Ni zadetkov.';
49+
},
50+
searching: function () {
51+
return 'Iščem…';
52+
}
53+
};
54+
});

0 commit comments

Comments
 (0)