Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | /** |
| 2 | * Select2 Vietnamese translation. |
||
| 3 | * |
||
| 4 | * Author: Long Nguyen <olragon@gmail.com> |
||
| 5 | */ |
||
| 6 | (function ($) { |
||
| 7 | "use strict"; |
||
| 8 | |||
| 9 | $.fn.select2.locales['vi'] = { |
||
| 10 | formatNoMatches: function () { return "Không tìm thấy kết quả"; }, |
||
| 11 | formatInputTooShort: function (input, min) { var n = min - input.length; return "Vui lòng nhập nhiều hơn " + n + " ký tự" + (n == 1 ? "" : "s"); }, |
||
| 12 | formatInputTooLong: function (input, max) { var n = input.length - max; return "Vui lòng nhập ít hơn " + n + " ký tự" + (n == 1? "" : "s"); }, |
||
| 13 | formatSelectionTooBig: function (limit) { return "Chỉ có thể chọn được " + limit + " tùy chọn" + (limit == 1 ? "" : "s"); }, |
||
| 14 | formatLoadMore: function (pageNumber) { return "Đang lấy thêm kết quả…"; }, |
||
| 15 | formatSearching: function () { return "Đang tìm…"; } |
||
| 16 | }; |
||
| 17 | |||
| 18 | $.extend($.fn.select2.defaults, $.fn.select2.locales['vi']); |
||
| 19 | })(jQuery); |
||
| 20 |