Add a few translations, label the others
This commit is contained in:
parent
e111ea0420
commit
063859160d
1
dist/js/i18n/sr.js
vendored
Normal file
1
dist/js/i18n/sr.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
window.$=window.$||{},function(){$&&$.fn&&$.fn.select2&&$.fn.select2.amd&&(define=$.fn.select2.amd.define,require=$.fn.select2.amd.require),define("select2/i18n/sr",[],function(){function e(e,t,n,r){return e%10==1&&e%100!=11?t:e%10>=2&&e%10<=4&&(e%100<12||e%100>14)?n:r}return{inputTooLong:function(t){var n=t.input.length-t.maximum,r="Obrišite "+n+" simbol";return r+=e(n,"","a","a"),r},inputTooShort:function(t){var n=t.minimum-t.input.length,r="Ukucajte bar još "+n+" simbol";return r+=e(n,"","a","a"),r},loadingMore:function(){return"Preuzimanje još rezultata…"},maximumSelected:function(t){var n="Možete izabrati samo "+t.maximum+" stavk";return n+=e(t.maximum,"u","e","i"),n},noResults:function(){return"Ništa nije pronađeno"},searching:function(){return"Pretraga…"}}}),require("jquery.select2"),$.fn.select2.amd={define:define,require:require}}();
|
1
dist/js/i18n/vi.js
vendored
Normal file
1
dist/js/i18n/vi.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
window.$=window.$||{},function(){$&&$.fn&&$.fn.select2&&$.fn.select2.amd&&(define=$.fn.select2.amd.define,require=$.fn.select2.amd.require),define("select2/i18n/vi",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="Vui lòng nhập ít hơn "+t+" ký tự";return t!=1&&(n+="s"),n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="Vui lòng nhập nhiều hơn "+t+' ký tự"';return n},loadingMore:function(){return"Đang lấy thêm kết quả…"},maximumSelected:function(e){var t="Chỉ có thể chọn được "+e.maximum+" lựa chọn";return t},noResults:function(){return"Không tìm thấy kết quả"},searching:function(){return"Đang tìm…"}}}),require("jquery.select2"),$.fn.select2.amd={define:define,require:require}}();
|
1
dist/js/i18n/zh-TW.js
vendored
Normal file
1
dist/js/i18n/zh-TW.js
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
window.$=window.$||{},function(){$&&$.fn&&$.fn.select2&&$.fn.select2.amd&&(define=$.fn.select2.amd.define,require=$.fn.select2.amd.require),define("select2/i18n/zh-TW",[],function(){return{inputTooLong:function(e){var t=e.input.length-e.maximum,n="請刪掉"+t+"個字元";return n},inputTooShort:function(e){var t=e.minimum-e.input.length,n="請再輸入"+t+"個字元";return n},loadingMore:function(){return"載入中…"},maximumSelected:function(e){var t="你只能選擇最多"+e.maximum+"項";return t},noResults:function(){return"沒有找到相符的項目"},searching:function(){return"搜尋中…"}}}),require("jquery.select2"),$.fn.select2.amd={define:define,require:require}}();
|
1
dist/js/select2.amd.full.js
vendored
1
dist/js/select2.amd.full.js
vendored
@ -3237,6 +3237,7 @@ define('select2/dropdown/minimumResultsForSearch',[
|
|||||||
});
|
});
|
||||||
|
|
||||||
define('select2/i18n/en',[],function () {
|
define('select2/i18n/en',[],function () {
|
||||||
|
// English
|
||||||
return {
|
return {
|
||||||
errorLoading: function () {
|
errorLoading: function () {
|
||||||
return 'The results could not be loaded.';
|
return 'The results could not be loaded.';
|
||||||
|
1
dist/js/select2.amd.js
vendored
1
dist/js/select2.amd.js
vendored
@ -3237,6 +3237,7 @@ define('select2/dropdown/minimumResultsForSearch',[
|
|||||||
});
|
});
|
||||||
|
|
||||||
define('select2/i18n/en',[],function () {
|
define('select2/i18n/en',[],function () {
|
||||||
|
// English
|
||||||
return {
|
return {
|
||||||
errorLoading: function () {
|
errorLoading: function () {
|
||||||
return 'The results could not be loaded.';
|
return 'The results could not be loaded.';
|
||||||
|
1
dist/js/select2.full.js
vendored
1
dist/js/select2.full.js
vendored
@ -12772,6 +12772,7 @@ define('select2/dropdown/minimumResultsForSearch',[
|
|||||||
});
|
});
|
||||||
|
|
||||||
define('select2/i18n/en',[],function () {
|
define('select2/i18n/en',[],function () {
|
||||||
|
// English
|
||||||
return {
|
return {
|
||||||
errorLoading: function () {
|
errorLoading: function () {
|
||||||
return 'The results could not be loaded.';
|
return 'The results could not be loaded.';
|
||||||
|
1
dist/js/select2.js
vendored
1
dist/js/select2.js
vendored
@ -3665,6 +3665,7 @@ define('select2/dropdown/minimumResultsForSearch',[
|
|||||||
});
|
});
|
||||||
|
|
||||||
define('select2/i18n/en',[],function () {
|
define('select2/i18n/en',[],function () {
|
||||||
|
// English
|
||||||
return {
|
return {
|
||||||
errorLoading: function () {
|
errorLoading: function () {
|
||||||
return 'The results could not be loaded.';
|
return 'The results could not be loaded.';
|
||||||
|
1
src/js/select2/i18n/az.js
vendored
1
src/js/select2/i18n/az.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Azerbaijani
|
||||||
return {
|
return {
|
||||||
inputTooLong: function (args) {
|
inputTooLong: function (args) {
|
||||||
var overChars = args.input.length - args.maximum;
|
var overChars = args.input.length - args.maximum;
|
||||||
|
1
src/js/select2/i18n/bg.js
vendored
1
src/js/select2/i18n/bg.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Bulgarian
|
||||||
return {
|
return {
|
||||||
inputTooLong: function (args) {
|
inputTooLong: function (args) {
|
||||||
var overChars = args.input.length - args.maximum;
|
var overChars = args.input.length - args.maximum;
|
||||||
|
1
src/js/select2/i18n/da.js
vendored
1
src/js/select2/i18n/da.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Danish
|
||||||
return {
|
return {
|
||||||
errorLoading: function () {
|
errorLoading: function () {
|
||||||
return 'The results could not be loaded.';
|
return 'The results could not be loaded.';
|
||||||
|
1
src/js/select2/i18n/de.js
vendored
1
src/js/select2/i18n/de.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// German
|
||||||
return {
|
return {
|
||||||
inputTooLong: function (args) {
|
inputTooLong: function (args) {
|
||||||
var overChars = args.input.length - args.maximum;
|
var overChars = args.input.length - args.maximum;
|
||||||
|
1
src/js/select2/i18n/en.js
vendored
1
src/js/select2/i18n/en.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// English
|
||||||
return {
|
return {
|
||||||
errorLoading: function () {
|
errorLoading: function () {
|
||||||
return 'The results could not be loaded.';
|
return 'The results could not be loaded.';
|
||||||
|
1
src/js/select2/i18n/es.js
vendored
1
src/js/select2/i18n/es.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Spanish
|
||||||
return {
|
return {
|
||||||
errorLoading: function () {
|
errorLoading: function () {
|
||||||
return 'La carga falló';
|
return 'La carga falló';
|
||||||
|
1
src/js/select2/i18n/et.js
vendored
1
src/js/select2/i18n/et.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Estonian
|
||||||
return {
|
return {
|
||||||
inputTooLong: function (args) {
|
inputTooLong: function (args) {
|
||||||
var overChars = args.input.length - args.maximum;
|
var overChars = args.input.length - args.maximum;
|
||||||
|
1
src/js/select2/i18n/eu.js
vendored
1
src/js/select2/i18n/eu.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Basque
|
||||||
return {
|
return {
|
||||||
inputTooLong: function (args) {
|
inputTooLong: function (args) {
|
||||||
var overChars = args.input.length - args.maximum;
|
var overChars = args.input.length - args.maximum;
|
||||||
|
1
src/js/select2/i18n/fi.js
vendored
1
src/js/select2/i18n/fi.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Finnish
|
||||||
return {
|
return {
|
||||||
inputTooLong: function (args) {
|
inputTooLong: function (args) {
|
||||||
var overChars = args.input.length - args.maximum;
|
var overChars = args.input.length - args.maximum;
|
||||||
|
1
src/js/select2/i18n/fr.js
vendored
1
src/js/select2/i18n/fr.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// French
|
||||||
return {
|
return {
|
||||||
inputTooLong: function (args) {
|
inputTooLong: function (args) {
|
||||||
var overChars = args.input.length - args.maximum;
|
var overChars = args.input.length - args.maximum;
|
||||||
|
1
src/js/select2/i18n/gl.js
vendored
1
src/js/select2/i18n/gl.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Galician
|
||||||
return {
|
return {
|
||||||
inputTooLong: function (args) {
|
inputTooLong: function (args) {
|
||||||
var overChars = args.input.length - args.maximum;
|
var overChars = args.input.length - args.maximum;
|
||||||
|
1
src/js/select2/i18n/hr.js
vendored
1
src/js/select2/i18n/hr.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Croatian
|
||||||
function character (n) {
|
function character (n) {
|
||||||
var message = ' ' + n + ' znak';
|
var message = ' ' + n + ' znak';
|
||||||
|
|
||||||
|
1
src/js/select2/i18n/hu.js
vendored
1
src/js/select2/i18n/hu.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Hungarian
|
||||||
return {
|
return {
|
||||||
inputTooLong: function (args) {
|
inputTooLong: function (args) {
|
||||||
var overChars = args.input.length - args.maximum;
|
var overChars = args.input.length - args.maximum;
|
||||||
|
1
src/js/select2/i18n/id.js
vendored
1
src/js/select2/i18n/id.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Indonesian
|
||||||
return {
|
return {
|
||||||
inputTooLong: function (args) {
|
inputTooLong: function (args) {
|
||||||
var overChars = args.input.length - args.maximum;
|
var overChars = args.input.length - args.maximum;
|
||||||
|
1
src/js/select2/i18n/is.js
vendored
1
src/js/select2/i18n/is.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Icelandic
|
||||||
return {
|
return {
|
||||||
inputTooLong: function (args) {
|
inputTooLong: function (args) {
|
||||||
var overChars = args.input.length - args.maximum;
|
var overChars = args.input.length - args.maximum;
|
||||||
|
1
src/js/select2/i18n/lt.js
vendored
1
src/js/select2/i18n/lt.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Italian
|
||||||
function ending (count, first, second, third) {
|
function ending (count, first, second, third) {
|
||||||
if ((count % 100 > 9 && count % 100 < 21) || count % 10 === 0) {
|
if ((count % 100 > 9 && count % 100 < 21) || count % 10 === 0) {
|
||||||
if (count % 10 > 1) {
|
if (count % 10 > 1) {
|
||||||
|
1
src/js/select2/i18n/lv.js
vendored
1
src/js/select2/i18n/lv.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Latvian
|
||||||
function ending (count, eleven, singular, other) {
|
function ending (count, eleven, singular, other) {
|
||||||
if (count === 11) {
|
if (count === 11) {
|
||||||
return eleven;
|
return eleven;
|
||||||
|
1
src/js/select2/i18n/mk.js
vendored
1
src/js/select2/i18n/mk.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Macedonian
|
||||||
return {
|
return {
|
||||||
inputTooLong: function (args) {
|
inputTooLong: function (args) {
|
||||||
var overChars = args.input.length - args.maximum;
|
var overChars = args.input.length - args.maximum;
|
||||||
|
1
src/js/select2/i18n/nb.js
vendored
1
src/js/select2/i18n/nb.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Norwegian (Bokmål)
|
||||||
return {
|
return {
|
||||||
inputTooLong: function (args) {
|
inputTooLong: function (args) {
|
||||||
var overChars = args.input.length - args.maximum;
|
var overChars = args.input.length - args.maximum;
|
||||||
|
1
src/js/select2/i18n/ro.js
vendored
1
src/js/select2/i18n/ro.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Romanian
|
||||||
return {
|
return {
|
||||||
inputTooLong: function (args) {
|
inputTooLong: function (args) {
|
||||||
var overChars = args.input.length - args.maximum;
|
var overChars = args.input.length - args.maximum;
|
||||||
|
1
src/js/select2/i18n/ru.js
vendored
1
src/js/select2/i18n/ru.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Russian
|
||||||
function ending (count, one, couple, more) {
|
function ending (count, one, couple, more) {
|
||||||
if (n % 10 < 5 && n % 10 > 0 && n % 100 < 5 || n % 100 > 20) {
|
if (n % 10 < 5 && n % 10 > 0 && n % 100 < 5 || n % 100 > 20) {
|
||||||
if (n % 10 > 1) {
|
if (n % 10 > 1) {
|
||||||
|
2
src/js/select2/i18n/sk.js
vendored
2
src/js/select2/i18n/sk.js
vendored
@ -1,4 +1,6 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Slovak
|
||||||
|
|
||||||
// use text for the numbers 2 through 4
|
// use text for the numbers 2 through 4
|
||||||
var smallNumbers = {
|
var smallNumbers = {
|
||||||
2: function (masc) { return (masc ? 'dva' : 'dve'); },
|
2: function (masc) { return (masc ? 'dva' : 'dve'); },
|
||||||
|
52
src/js/select2/i18n/sr.js
vendored
Normal file
52
src/js/select2/i18n/sr.js
vendored
Normal file
@ -0,0 +1,52 @@
|
|||||||
|
define(function () {
|
||||||
|
// Serbian
|
||||||
|
function ending (count, one, some, many) {
|
||||||
|
if (count % 10 == 1 && count % 100 != 11) {
|
||||||
|
return one;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (count % 10 >= 2 && count % 10 <= 4 &&
|
||||||
|
(count % 100 < 12 || count % 100 > 14)) {
|
||||||
|
return some;
|
||||||
|
}
|
||||||
|
|
||||||
|
return many;
|
||||||
|
}
|
||||||
|
|
||||||
|
return {
|
||||||
|
inputTooLong: function (args) {
|
||||||
|
var overChars = args.input.length - args.maximum;
|
||||||
|
|
||||||
|
var message = 'Obrišite ' + overChars + ' simbol';
|
||||||
|
|
||||||
|
message += ending(overChars, '', 'a', 'a');
|
||||||
|
|
||||||
|
return message;
|
||||||
|
},
|
||||||
|
inputTooShort: function (args) {
|
||||||
|
var remainingChars = args.minimum - args.input.length;
|
||||||
|
|
||||||
|
var message = 'Ukucajte bar još ' + remainingChars + ' simbol';
|
||||||
|
|
||||||
|
message += ending(remainingChars, '', 'a', 'a');
|
||||||
|
|
||||||
|
return message;
|
||||||
|
},
|
||||||
|
loadingMore: function () {
|
||||||
|
return 'Preuzimanje još rezultata…';
|
||||||
|
},
|
||||||
|
maximumSelected: function (args) {
|
||||||
|
var message = 'Možete izabrati samo ' + args.maximum + ' stavk';
|
||||||
|
|
||||||
|
message += ending(args.maximum, 'u', 'e', 'i');
|
||||||
|
|
||||||
|
return message;
|
||||||
|
},
|
||||||
|
noResults: function () {
|
||||||
|
return 'Ništa nije pronađeno';
|
||||||
|
},
|
||||||
|
searching: function () {
|
||||||
|
return 'Pretraga…';
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
1
src/js/select2/i18n/th.js
vendored
1
src/js/select2/i18n/th.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Thai
|
||||||
return {
|
return {
|
||||||
inputTooLong: function (args) {
|
inputTooLong: function (args) {
|
||||||
var overChars = args.input.length - args.maximum;
|
var overChars = args.input.length - args.maximum;
|
||||||
|
1
src/js/select2/i18n/tr.js
vendored
1
src/js/select2/i18n/tr.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Turkish
|
||||||
return {
|
return {
|
||||||
inputTooLong: function (args) {
|
inputTooLong: function (args) {
|
||||||
var overChars = args.input.length - args.maximum;
|
var overChars = args.input.length - args.maximum;
|
||||||
|
1
src/js/select2/i18n/uk.js
vendored
1
src/js/select2/i18n/uk.js
vendored
@ -1,4 +1,5 @@
|
|||||||
define(function () {
|
define(function () {
|
||||||
|
// Ukranian
|
||||||
function ending (count, one, couple, more) {
|
function ending (count, one, couple, more) {
|
||||||
if ([11,12,13,14].indexOf(count % 100) !== -1) {
|
if ([11,12,13,14].indexOf(count % 100) !== -1) {
|
||||||
return more;
|
return more;
|
||||||
|
37
src/js/select2/i18n/vi.js
vendored
Normal file
37
src/js/select2/i18n/vi.js
vendored
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
define(function () {
|
||||||
|
// Vietnamese
|
||||||
|
return {
|
||||||
|
inputTooLong: function (args) {
|
||||||
|
var overChars = args.input.length - args.maximum;
|
||||||
|
|
||||||
|
var message = 'Vui lòng nhập ít hơn ' + overChars + ' ký tự';
|
||||||
|
|
||||||
|
if (overChars != 1) {
|
||||||
|
message += 's';
|
||||||
|
}
|
||||||
|
|
||||||
|
return message;
|
||||||
|
},
|
||||||
|
inputTooShort: function (args) {
|
||||||
|
var remainingChars = args.minimum - args.input.length;
|
||||||
|
|
||||||
|
var message = 'Vui lòng nhập nhiều hơn ' + remainingChars + ' ký tự"';
|
||||||
|
|
||||||
|
return message;
|
||||||
|
},
|
||||||
|
loadingMore: function () {
|
||||||
|
return 'Đang lấy thêm kết quả…';
|
||||||
|
},
|
||||||
|
maximumSelected: function (args) {
|
||||||
|
var message = 'Chỉ có thể chọn được ' + args.maximum + ' lựa chọn';
|
||||||
|
|
||||||
|
return message;
|
||||||
|
},
|
||||||
|
noResults: function () {
|
||||||
|
return 'Không tìm thấy kết quả';
|
||||||
|
},
|
||||||
|
searching: function () {
|
||||||
|
return 'Đang tìm…';
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
33
src/js/select2/i18n/zh-TW.js
vendored
Normal file
33
src/js/select2/i18n/zh-TW.js
vendored
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
define(function () {
|
||||||
|
// Chinese (Traditional)
|
||||||
|
return {
|
||||||
|
inputTooLong: function (args) {
|
||||||
|
var overChars = args.input.length - args.maximum;
|
||||||
|
|
||||||
|
var message = '請刪掉' + overChars + '個字元';
|
||||||
|
|
||||||
|
return message;
|
||||||
|
},
|
||||||
|
inputTooShort: function (args) {
|
||||||
|
var remainingChars = args.minimum - args.input.length;
|
||||||
|
|
||||||
|
var message = '請再輸入' + remainingChars + '個字元';
|
||||||
|
|
||||||
|
return message;
|
||||||
|
},
|
||||||
|
loadingMore: function () {
|
||||||
|
return '載入中…';
|
||||||
|
},
|
||||||
|
maximumSelected: function (args) {
|
||||||
|
var message = '你只能選擇最多' + args.maximum + '項';
|
||||||
|
|
||||||
|
return message;
|
||||||
|
},
|
||||||
|
noResults: function () {
|
||||||
|
return '沒有找到相符的項目';
|
||||||
|
},
|
||||||
|
searching: function () {
|
||||||
|
return '搜尋中…';
|
||||||
|
}
|
||||||
|
};
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user