1
0
mirror of synced 2024-11-25 14:26:03 +03:00

Syntax fix

Signed-off-by: Kevin Brown <kevin@kevinbrown.in>
This commit is contained in:
Jonas Pyfferoen 2014-05-16 10:55:03 +02:00 committed by Kevin Brown
parent 6b92b1c211
commit 8243f8191c
33 changed files with 34 additions and 67 deletions

View File

@ -13,8 +13,7 @@
formatSelectionTooBig: function (limit) { if (n == 1){ return "يمكنك أن تختار إختيار واحد فقط"; } return n == 2 ? "يمكنك أن تختار إختيارين فقط" : "يمكنك أن تختار " + n + " إختيارات فقط"; }, formatSelectionTooBig: function (limit) { if (n == 1){ return "يمكنك أن تختار إختيار واحد فقط"; } return n == 2 ? "يمكنك أن تختار إختيارين فقط" : "يمكنك أن تختار " + n + " إختيارات فقط"; },
formatLoadMore: function (pageNumber) { return "تحميل المزيد من النتائج…"; }, formatLoadMore: function (pageNumber) { return "تحميل المزيد من النتائج…"; },
formatSearching: function () { return "البحث…"; } formatSearching: function () { return "البحث…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['ar']); $.extend($.fn.select2.defaults, $.fn.select2.locales['ar']);
);
})(jQuery); })(jQuery);

View File

@ -14,8 +14,7 @@
formatSelectionTooBig: function (limit) { return "Можете да направите до " + limit + (limit > 1 ? " избора" : " избор"); }, formatSelectionTooBig: function (limit) { return "Можете да направите до " + limit + (limit > 1 ? " избора" : " избор"); },
formatLoadMore: function (pageNumber) { return "Зареждат се още…"; }, formatLoadMore: function (pageNumber) { return "Зареждат се още…"; },
formatSearching: function () { return "Търсене…"; } formatSearching: function () { return "Търсене…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['bg']); $.extend($.fn.select2.defaults, $.fn.select2.locales['bg']);
);
})(jQuery); })(jQuery);

View File

@ -13,8 +13,7 @@
formatSelectionTooBig: function (limit) { return "Només podeu seleccionar " + limit + " element" + (limit == 1 ? "" : "s"); }, formatSelectionTooBig: function (limit) { return "Només podeu seleccionar " + limit + " element" + (limit == 1 ? "" : "s"); },
formatLoadMore: function (pageNumber) { return "S'estan carregant més resultats…"; }, formatLoadMore: function (pageNumber) { return "S'estan carregant més resultats…"; },
formatSearching: function () { return "S'està cercant…"; } formatSearching: function () { return "S'està cercant…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['ca']); $.extend($.fn.select2.defaults, $.fn.select2.locales['ca']);
);
})(jQuery); })(jQuery);

View File

@ -45,8 +45,7 @@
}, },
formatLoadMore: function (pageNumber) { return "Načítají se další výsledky…"; }, formatLoadMore: function (pageNumber) { return "Načítají se další výsledky…"; },
formatSearching: function () { return "Vyhledávání…"; } formatSearching: function () { return "Vyhledávání…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['cs']); $.extend($.fn.select2.defaults, $.fn.select2.locales['cs']);
);
})(jQuery); })(jQuery);

View File

@ -13,8 +13,7 @@
formatSelectionTooBig: function (limit) { return "Du kan kun vælge " + limit + " emne" + (limit === 1 ? "" : "r"); }, formatSelectionTooBig: function (limit) { return "Du kan kun vælge " + limit + " emne" + (limit === 1 ? "" : "r"); },
formatLoadMore: function (pageNumber) { return "Indlæser flere resultater…"; }, formatLoadMore: function (pageNumber) { return "Indlæser flere resultater…"; },
formatSearching: function () { return "Søger…"; } formatSearching: function () { return "Søger…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['fi']); $.extend($.fn.select2.defaults, $.fn.select2.locales['fi']);
);
})(jQuery); })(jQuery);

View File

@ -12,8 +12,7 @@
formatLoadMore: function (pageNumber) { return "Lade mehr Ergebnisse…"; }, formatLoadMore: function (pageNumber) { return "Lade mehr Ergebnisse…"; },
formatSearching: function () { return "Suche…"; }, formatSearching: function () { return "Suche…"; },
formatMatches: function (matches) { return matches + " Ergebnis " + (matches > 1 ? "se" : "") + " verfügbar, zum Navigieren die Hoch-/Runter-Pfeiltasten verwenden."; } formatMatches: function (matches) { return matches + " Ergebnis " + (matches > 1 ? "se" : "") + " verfügbar, zum Navigieren die Hoch-/Runter-Pfeiltasten verwenden."; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['de']); $.extend($.fn.select2.defaults, $.fn.select2.locales['de']);
);
})(jQuery); })(jQuery);

View File

@ -13,8 +13,7 @@
formatSelectionTooBig: function (limit) { return "Μπορείτε να επιλέξετε μόνο " + limit + " αντικείμεν" + (limit > 1 ? "α" : "ο"); }, formatSelectionTooBig: function (limit) { return "Μπορείτε να επιλέξετε μόνο " + limit + " αντικείμεν" + (limit > 1 ? "α" : "ο"); },
formatLoadMore: function (pageNumber) { return "Φόρτωση περισσότερων…"; }, formatLoadMore: function (pageNumber) { return "Φόρτωση περισσότερων…"; },
formatSearching: function () { return "Αναζήτηση…"; } formatSearching: function () { return "Αναζήτηση…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['el']); $.extend($.fn.select2.defaults, $.fn.select2.locales['el']);
);
})(jQuery); })(jQuery);

View File

@ -14,8 +14,7 @@
formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); }, formatSelectionTooBig: function (limit) { return "You can only select " + limit + " item" + (limit == 1 ? "" : "s"); },
formatLoadMore: function (pageNumber) { return "Loading more results…"; }, formatLoadMore: function (pageNumber) { return "Loading more results…"; },
formatSearching: function () { return "Searching…"; } formatSearching: function () { return "Searching…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['en']); $.extend($.fn.select2.defaults, $.fn.select2.locales['en']);
);
})(jQuery); })(jQuery);

View File

@ -11,8 +11,7 @@
formatSelectionTooBig: function (limit) { return "Sólo puede seleccionar " + limit + " elemento" + (limit == 1 ? "" : "s"); }, formatSelectionTooBig: function (limit) { return "Sólo puede seleccionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
formatLoadMore: function (pageNumber) { return "Cargando más resultados…"; }, formatLoadMore: function (pageNumber) { return "Cargando más resultados…"; },
formatSearching: function () { return "Buscando…"; } formatSearching: function () { return "Buscando…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['es']); $.extend($.fn.select2.defaults, $.fn.select2.locales['es']);
);
})(jQuery); })(jQuery);

View File

@ -13,8 +13,7 @@
formatSelectionTooBig: function (limit) { return "Saad vaid " + limit + " tulemus" + (limit == 1 ? "e" : "t") + " valida"; }, formatSelectionTooBig: function (limit) { return "Saad vaid " + limit + " tulemus" + (limit == 1 ? "e" : "t") + " valida"; },
formatLoadMore: function (pageNumber) { return "Laen tulemusi.."; }, formatLoadMore: function (pageNumber) { return "Laen tulemusi.."; },
formatSearching: function () { return "Otsin.."; } formatSearching: function () { return "Otsin.."; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['et']); $.extend($.fn.select2.defaults, $.fn.select2.locales['et']);
);
})(jQuery); })(jQuery);

View File

@ -39,8 +39,7 @@
formatSearching: function () { formatSearching: function () {
return "Bilatzen…"; return "Bilatzen…";
} }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['eu']); $.extend($.fn.select2.defaults, $.fn.select2.locales['eu']);
);
})(jQuery); })(jQuery);

View File

@ -13,8 +13,7 @@
formatSelectionTooBig: function (limit) { return "თქვენ შეგიძლიათ მხოლოდ " + limit + " ჩანაწერის მონიშვნა"; }, formatSelectionTooBig: function (limit) { return "თქვენ შეგიძლიათ მხოლოდ " + limit + " ჩანაწერის მონიშვნა"; },
formatLoadMore: function (pageNumber) { return "შედეგის ჩატვირთვა…"; }, formatLoadMore: function (pageNumber) { return "შედეგის ჩატვირთვა…"; },
formatSearching: function () { return "ძებნა…"; } formatSearching: function () { return "ძებნა…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['ka']); $.extend($.fn.select2.defaults, $.fn.select2.locales['ka']);
);
})(jQuery); })(jQuery);

View File

@ -13,8 +13,7 @@
formatSelectionTooBig: function (limit) { return "최대 "+limit+"개까지만 선택하실 수 있습니다."; }, formatSelectionTooBig: function (limit) { return "최대 "+limit+"개까지만 선택하실 수 있습니다."; },
formatLoadMore: function (pageNumber) { return "불러오는 중…"; }, formatLoadMore: function (pageNumber) { return "불러오는 중…"; },
formatSearching: function () { return "검색 중…"; } formatSearching: function () { return "검색 중…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['ko']); $.extend($.fn.select2.defaults, $.fn.select2.locales['ko']);
);
})(jQuery); })(jQuery);

View File

@ -16,10 +16,9 @@
}, },
formatLoadMore: function (pageNumber) { return "Kraunama daugiau rezultatų…"; }, formatLoadMore: function (pageNumber) { return "Kraunama daugiau rezultatų…"; },
formatSearching: function () { return "Ieškoma…"; } formatSearching: function () { return "Ieškoma…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['lt']); $.extend($.fn.select2.defaults, $.fn.select2.locales['lt']);
);
function character (n) { function character (n) {
return " " + n + " simbol" + ((n%100 > 9 && n%100 < 21) || n%10 == 0 ? "ių" : n%10 > 1 ? "ius" : "į"); return " " + n + " simbol" + ((n%100 > 9 && n%100 < 21) || n%10 == 0 ? "ių" : n%10 > 1 ? "ius" : "į");

View File

@ -13,8 +13,7 @@
formatSelectionTooBig: function (limit) { return "Jūs varat izvēlēties ne vairāk kā " + limit + " element" + (limit == 11 ? "us" : limit%10 == 1 ? "u" : "us"); }, formatSelectionTooBig: function (limit) { return "Jūs varat izvēlēties ne vairāk kā " + limit + " element" + (limit == 11 ? "us" : limit%10 == 1 ? "u" : "us"); },
formatLoadMore: function (pageNumber) { return "Datu ielāde…"; }, formatLoadMore: function (pageNumber) { return "Datu ielāde…"; },
formatSearching: function () { return "Meklēšana…"; } formatSearching: function () { return "Meklēšana…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['lv']); $.extend($.fn.select2.defaults, $.fn.select2.locales['lv']);
);
})(jQuery); })(jQuery);

View File

@ -13,8 +13,7 @@
formatSelectionTooBig: function (limit) { return "Можете да изберете само " + limit + " ставк" + (limit == 1 ? "а" : "и"); }, formatSelectionTooBig: function (limit) { return "Можете да изберете само " + limit + " ставк" + (limit == 1 ? "а" : "и"); },
formatLoadMore: function (pageNumber) { return "Вчитување резултати…"; }, formatLoadMore: function (pageNumber) { return "Вчитување резултати…"; },
formatSearching: function () { return "Пребарување…"; } formatSearching: function () { return "Пребарување…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['mk']); $.extend($.fn.select2.defaults, $.fn.select2.locales['mk']);
);
})(jQuery); })(jQuery);

View File

@ -13,8 +13,7 @@
formatSelectionTooBig: function (limit) { return "Anda hanya boleh memilih " + limit + " pilihan"; }, formatSelectionTooBig: function (limit) { return "Anda hanya boleh memilih " + limit + " pilihan"; },
formatLoadMore: function (pageNumber) { return "Sedang memuatkan keputusan…"; }, formatLoadMore: function (pageNumber) { return "Sedang memuatkan keputusan…"; },
formatSearching: function () { return "Mencari…"; } formatSearching: function () { return "Mencari…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['ms']); $.extend($.fn.select2.defaults, $.fn.select2.locales['ms']);
);
})(jQuery); })(jQuery);

View File

@ -11,8 +11,7 @@
formatSelectionTooBig: function (limit) { return "Maximaal " + limit + " item" + (limit == 1 ? "" : "s") + " toegestaan"; }, formatSelectionTooBig: function (limit) { return "Maximaal " + limit + " item" + (limit == 1 ? "" : "s") + " toegestaan"; },
formatLoadMore: function (pageNumber) { return "Meer resultaten laden…"; }, formatLoadMore: function (pageNumber) { return "Meer resultaten laden…"; },
formatSearching: function () { return "Zoeken…"; } formatSearching: function () { return "Zoeken…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['nl']); $.extend($.fn.select2.defaults, $.fn.select2.locales['nl']);
);
})(jQuery); })(jQuery);

View File

@ -13,9 +13,8 @@
formatSelectionTooBig: function (limit) { return "Du kan velge maks " + limit + " elementer"; }, formatSelectionTooBig: function (limit) { return "Du kan velge maks " + limit + " elementer"; },
formatLoadMore: function (pageNumber) { return "Laster flere resultater…"; }, formatLoadMore: function (pageNumber) { return "Laster flere resultater…"; },
formatSearching: function () { return "Søker…"; } formatSearching: function () { return "Søker…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['no']); $.extend($.fn.select2.defaults, $.fn.select2.locales['no']);
);
})(jQuery); })(jQuery);

View File

@ -15,10 +15,9 @@
formatSelectionTooBig: function (limit) { return "Możesz zaznaczyć najwyżej" + character(limit, "element", "y"); }, formatSelectionTooBig: function (limit) { return "Możesz zaznaczyć najwyżej" + character(limit, "element", "y"); },
formatLoadMore: function (pageNumber) { return "Ładowanie wyników…"; }, formatLoadMore: function (pageNumber) { return "Ładowanie wyników…"; },
formatSearching: function () { return "Szukanie…"; } formatSearching: function () { return "Szukanie…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['pl']); $.extend($.fn.select2.defaults, $.fn.select2.locales['pl']);
);
function character (n, word, pluralSuffix) { function character (n, word, pluralSuffix) {
return " " + n + " " + word + (n == 1 ? "" : n%10 < 5 && n%10 > 1 && (n%100 < 5 || n%100 > 20) ? pluralSuffix : "ów"); return " " + n + " " + word + (n == 1 ? "" : n%10 < 5 && n%10 > 1 && (n%100 < 5 || n%100 > 20) ? pluralSuffix : "ów");

View File

@ -11,8 +11,7 @@
formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); }, formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
formatLoadMore: function (pageNumber) { return "Carregando mais resultados…"; }, formatLoadMore: function (pageNumber) { return "Carregando mais resultados…"; },
formatSearching: function () { return "Buscando…"; } formatSearching: function () { return "Buscando…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['pt-BR']); $.extend($.fn.select2.defaults, $.fn.select2.locales['pt-BR']);
);
})(jQuery); })(jQuery);

View File

@ -11,8 +11,7 @@
formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); }, formatSelectionTooBig: function (limit) { return "Só é possível selecionar " + limit + " elemento" + (limit == 1 ? "" : "s"); },
formatLoadMore: function (pageNumber) { return "A carregar mais resultados…"; }, formatLoadMore: function (pageNumber) { return "A carregar mais resultados…"; },
formatSearching: function () { return "A pesquisar…"; } formatSearching: function () { return "A pesquisar…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['pt-PT']); $.extend($.fn.select2.defaults, $.fn.select2.locales['pt-PT']);
);
})(jQuery); })(jQuery);

View File

@ -11,8 +11,7 @@
formatSelectionTooBig: function (limit) { return "Aveți voie să selectați cel mult " + limit + " element" + (limit == 1 ? "" : "e"); }, formatSelectionTooBig: function (limit) { return "Aveți voie să selectați cel mult " + limit + " element" + (limit == 1 ? "" : "e"); },
formatLoadMore: function (pageNumber) { return "Se încarcă…"; }, formatLoadMore: function (pageNumber) { return "Se încarcă…"; },
formatSearching: function () { return "Căutare…"; } formatSearching: function () { return "Căutare…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['ro']); $.extend($.fn.select2.defaults, $.fn.select2.locales['ro']);
);
})(jQuery); })(jQuery);

View File

@ -13,8 +13,7 @@
formatSelectionTooBig: function (limit) { return "Možete izabrati samo " + limit + " stavk" + (limit % 10 == 1 && limit % 100 != 11 ? "u" : (limit % 10 >= 2 && limit % 10 <= 4 && (limit % 100 < 12 || limit % 100 > 14)? "e" : "i")); }, formatSelectionTooBig: function (limit) { return "Možete izabrati samo " + limit + " stavk" + (limit % 10 == 1 && limit % 100 != 11 ? "u" : (limit % 10 >= 2 && limit % 10 <= 4 && (limit % 100 < 12 || limit % 100 > 14)? "e" : "i")); },
formatLoadMore: function (pageNumber) { return "Preuzimanje još rezultata…"; }, formatLoadMore: function (pageNumber) { return "Preuzimanje još rezultata…"; },
formatSearching: function () { return "Pretraga…"; } formatSearching: function () { return "Pretraga…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['rs']); $.extend($.fn.select2.defaults, $.fn.select2.locales['rs']);
);
})(jQuery); })(jQuery);

View File

@ -13,10 +13,9 @@
formatSelectionTooBig: function (limit) { return "Вы можете выбрать не более " + limit + " элемент" + (limit%10 == 1 && limit%100 != 11 ? "а" : "ов"); }, formatSelectionTooBig: function (limit) { return "Вы можете выбрать не более " + limit + " элемент" + (limit%10 == 1 && limit%100 != 11 ? "а" : "ов"); },
formatLoadMore: function (pageNumber) { return "Загрузка данных…"; }, formatLoadMore: function (pageNumber) { return "Загрузка данных…"; },
formatSearching: function () { return "Поиск…"; } formatSearching: function () { return "Поиск…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['ru']); $.extend($.fn.select2.defaults, $.fn.select2.locales['ru']);
);
function character (n) { function character (n) {
return " " + n + " символ" + (n%10 < 5 && n%10 > 0 && (n%100 < 5 || n%100 > 20) ? n%10 > 1 ? "a" : "" : "ов"); return " " + n + " символ" + (n%10 < 5 && n%10 > 0 && (n%100 < 5 || n%100 > 20) ? n%10 > 1 ? "a" : "" : "ов");

View File

@ -10,7 +10,7 @@
2: function(masc) { return (masc ? "dva" : "dve"); }, 2: function(masc) { return (masc ? "dva" : "dve"); },
3: function() { return "tri"; }, 3: function() { return "tri"; },
4: function() { return "štyri"; } 4: function() { return "štyri"; }
} };
$.fn.select2.locales['sk'] = { $.fn.select2.locales['sk'] = {
formatNoMatches: function () { return "Nenašli sa žiadne položky"; }, formatNoMatches: function () { return "Nenašli sa žiadne položky"; },
formatInputTooShort: function (input, min) { formatInputTooShort: function (input, min) {
@ -44,8 +44,7 @@
}, },
formatLoadMore: function (pageNumber) { return "Načítavajú sa ďalšie výsledky…"; }, formatLoadMore: function (pageNumber) { return "Načítavajú sa ďalšie výsledky…"; },
formatSearching: function () { return "Vyhľadávanie…"; } formatSearching: function () { return "Vyhľadávanie…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['sk']); $.extend($.fn.select2.defaults, $.fn.select2.locales['sk']);
);
})(jQuery); })(jQuery);

View File

@ -13,8 +13,7 @@
formatSelectionTooBig: function (limit) { return "Du kan max välja " + limit + " element"; }, formatSelectionTooBig: function (limit) { return "Du kan max välja " + limit + " element"; },
formatLoadMore: function (pageNumber) { return "Laddar fler resultat…"; }, formatLoadMore: function (pageNumber) { return "Laddar fler resultat…"; },
formatSearching: function () { return "Söker…"; } formatSearching: function () { return "Söker…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['sv']); $.extend($.fn.select2.defaults, $.fn.select2.locales['sv']);
);
})(jQuery); })(jQuery);

View File

@ -13,8 +13,7 @@
formatSelectionTooBig: function (limit) { return "คุณสามารถเลือกได้ไม่เกิน " + limit + " รายการ"; }, formatSelectionTooBig: function (limit) { return "คุณสามารถเลือกได้ไม่เกิน " + limit + " รายการ"; },
formatLoadMore: function (pageNumber) { return "กำลังค้นข้อมูลเพิ่ม…"; }, formatLoadMore: function (pageNumber) { return "กำลังค้นข้อมูลเพิ่ม…"; },
formatSearching: function () { return "กำลังค้นข้อมูล…"; } formatSearching: function () { return "กำลังค้นข้อมูล…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['th']); $.extend($.fn.select2.defaults, $.fn.select2.locales['th']);
);
})(jQuery); })(jQuery);

View File

@ -13,8 +13,7 @@
formatSelectionTooBig: function (limit) { return "Sadece " + limit + " seçim yapabilirsiniz"; }, formatSelectionTooBig: function (limit) { return "Sadece " + limit + " seçim yapabilirsiniz"; },
formatLoadMore: function (pageNumber) { return "Daha fazla…"; }, formatLoadMore: function (pageNumber) { return "Daha fazla…"; },
formatSearching: function () { return "Aranıyor…"; } formatSearching: function () { return "Aranıyor…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['tr']); $.extend($.fn.select2.defaults, $.fn.select2.locales['tr']);
);
})(jQuery); })(jQuery);

View File

@ -15,10 +15,9 @@
formatSelectionTooBig: function (limit) { return "Ви можете вибрати лише " + character(limit, "елемент"); }, formatSelectionTooBig: function (limit) { return "Ви можете вибрати лише " + character(limit, "елемент"); },
formatLoadMore: function (pageNumber) { return "Завантаження даних…"; }, formatLoadMore: function (pageNumber) { return "Завантаження даних…"; },
formatSearching: function () { return "Пошук…"; } formatSearching: function () { return "Пошук…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['uk']); $.extend($.fn.select2.defaults, $.fn.select2.locales['uk']);
);
function character (n, word) { function character (n, word) {
return n + " " + word + (n%10 < 5 && n%10 > 0 && (n%100 < 5 || n%100 > 19) ? n%10 > 1 ? "и" : "" : "ів"); return n + " " + word + (n%10 < 5 && n%10 > 0 && (n%100 < 5 || n%100 > 19) ? n%10 > 1 ? "и" : "" : "ів");

View File

@ -13,9 +13,8 @@
formatSelectionTooBig: function (limit) { return "Chỉ có thể chọn được " + limit + " tùy chọn" + (limit == 1 ? "" : "s"); }, formatSelectionTooBig: function (limit) { return "Chỉ có thể chọn được " + limit + " tùy chọn" + (limit == 1 ? "" : "s"); },
formatLoadMore: function (pageNumber) { return "Đang lấy thêm kết quả…"; }, formatLoadMore: function (pageNumber) { return "Đang lấy thêm kết quả…"; },
formatSearching: function () { return "Đang tìm…"; } formatSearching: function () { return "Đang tìm…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['vi']); $.extend($.fn.select2.defaults, $.fn.select2.locales['vi']);
);
})(jQuery); })(jQuery);

View File

@ -10,8 +10,7 @@
formatSelectionTooBig: function (limit) { return "你只能选择最多" + limit + "项"; }, formatSelectionTooBig: function (limit) { return "你只能选择最多" + limit + "项"; },
formatLoadMore: function (pageNumber) { return "加载结果中…"; }, formatLoadMore: function (pageNumber) { return "加载结果中…"; },
formatSearching: function () { return "搜索中…"; } formatSearching: function () { return "搜索中…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['zh-CN']); $.extend($.fn.select2.defaults, $.fn.select2.locales['zh-CN']);
);
})(jQuery); })(jQuery);

View File

@ -10,8 +10,7 @@
formatSelectionTooBig: function (limit) { return "你只能選擇最多" + limit + "項"; }, formatSelectionTooBig: function (limit) { return "你只能選擇最多" + limit + "項"; },
formatLoadMore: function (pageNumber) { return "載入中…"; }, formatLoadMore: function (pageNumber) { return "載入中…"; },
formatSearching: function () { return "搜尋中…"; } formatSearching: function () { return "搜尋中…"; }
} };
$.extend($.fn.select2.defaults, $.fn.select2.locales['zh-TW']); $.extend($.fn.select2.defaults, $.fn.select2.locales['zh-TW']);
);
})(jQuery); })(jQuery);