Project

General

Profile

1
/**
2
 * Select2 Vietnamese translation.
3
 * 
4
 * Author: Long Nguyen <olragon@gmail.com>, Nguyen Chien Cong
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ự"; },
12
        formatInputTooLong: function (input, max) { var n = input.length - max; return "Vui lòng nhập ít hơn " + n + " ký tự"; },
13
        formatSelectionTooBig: function (limit) { return "Chỉ có thể chọn được " + limit + " lựa chọn"; },
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

    
(59-59/62)