1
0
mirror of synced 2024-11-22 21:16:10 +03:00

Add a few translations, label the others

This commit is contained in:
Kevin Brown 2015-01-07 20:39:29 -05:00
parent e111ea0420
commit 063859160d
35 changed files with 156 additions and 1 deletions

1
dist/js/i18n/sr.js vendored Normal file
View 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
View 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
View 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}}();

View File

@ -3237,6 +3237,7 @@ define('select2/dropdown/minimumResultsForSearch',[
});
define('select2/i18n/en',[],function () {
// English
return {
errorLoading: function () {
return 'The results could not be loaded.';

View File

@ -3237,6 +3237,7 @@ define('select2/dropdown/minimumResultsForSearch',[
});
define('select2/i18n/en',[],function () {
// English
return {
errorLoading: function () {
return 'The results could not be loaded.';

View File

@ -12772,6 +12772,7 @@ define('select2/dropdown/minimumResultsForSearch',[
});
define('select2/i18n/en',[],function () {
// English
return {
errorLoading: function () {
return 'The results could not be loaded.';

1
dist/js/select2.js vendored
View File

@ -3665,6 +3665,7 @@ define('select2/dropdown/minimumResultsForSearch',[
});
define('select2/i18n/en',[],function () {
// English
return {
errorLoading: function () {
return 'The results could not be loaded.';

View File

@ -1,4 +1,5 @@
define(function () {
// Azerbaijani
return {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;

View File

@ -1,4 +1,5 @@
define(function () {
// Bulgarian
return {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;

View File

@ -1,4 +1,5 @@
define(function () {
// Danish
return {
errorLoading: function () {
return 'The results could not be loaded.';

View File

@ -1,4 +1,5 @@
define(function () {
// German
return {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;

View File

@ -1,4 +1,5 @@
define(function () {
// English
return {
errorLoading: function () {
return 'The results could not be loaded.';

View File

@ -1,4 +1,5 @@
define(function () {
// Spanish
return {
errorLoading: function () {
return 'La carga falló';

View File

@ -1,4 +1,5 @@
define(function () {
// Estonian
return {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;

View File

@ -1,4 +1,5 @@
define(function () {
// Basque
return {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;

View File

@ -1,4 +1,5 @@
define(function () {
// Finnish
return {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;

View File

@ -1,4 +1,5 @@
define(function () {
// French
return {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;

View File

@ -1,4 +1,5 @@
define(function () {
// Galician
return {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;

View File

@ -1,4 +1,5 @@
define(function () {
// Croatian
function character (n) {
var message = ' ' + n + ' znak';

View File

@ -1,4 +1,5 @@
define(function () {
// Hungarian
return {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;

View File

@ -1,4 +1,5 @@
define(function () {
// Indonesian
return {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;

View File

@ -1,4 +1,5 @@
define(function () {
// Icelandic
return {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;

View File

@ -1,4 +1,5 @@
define(function () {
// Italian
function ending (count, first, second, third) {
if ((count % 100 > 9 && count % 100 < 21) || count % 10 === 0) {
if (count % 10 > 1) {

View File

@ -1,4 +1,5 @@
define(function () {
// Latvian
function ending (count, eleven, singular, other) {
if (count === 11) {
return eleven;

View File

@ -1,4 +1,5 @@
define(function () {
// Macedonian
return {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;

View File

@ -1,4 +1,5 @@
define(function () {
// Norwegian (Bokmål)
return {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;

View File

@ -1,4 +1,5 @@
define(function () {
// Romanian
return {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;

View File

@ -1,4 +1,5 @@
define(function () {
// Russian
function ending (count, one, couple, more) {
if (n % 10 < 5 && n % 10 > 0 && n % 100 < 5 || n % 100 > 20) {
if (n % 10 > 1) {

View File

@ -1,4 +1,6 @@
define(function () {
// Slovak
// use text for the numbers 2 through 4
var smallNumbers = {
2: function (masc) { return (masc ? 'dva' : 'dve'); },

52
src/js/select2/i18n/sr.js vendored Normal file
View 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…';
}
};
});

View File

@ -1,4 +1,5 @@
define(function () {
// Thai
return {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;

View File

@ -1,4 +1,5 @@
define(function () {
// Turkish
return {
inputTooLong: function (args) {
var overChars = args.input.length - args.maximum;

View File

@ -1,4 +1,5 @@
define(function () {
// Ukranian
function ending (count, one, couple, more) {
if ([11,12,13,14].indexOf(count % 100) !== -1) {
return more;

37
src/js/select2/i18n/vi.js vendored Normal file
View 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
View 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 '搜尋中…';
}
};
});