Permalink
Browse files

Chinese Locale Added

  • Loading branch information...
jackyyf committed Mar 3, 2013
1 parent 3fe95ac commit 4e676af9f271d6818e47ee991e8f584dbb48a633
Showing with 14 additions and 0 deletions.
  1. +14 −0 select2_locale_zh-CN.js
View
@@ -0,0 +1,14 @@
+/**
+ * Select2 Chinese translation
+ */
+(function ($) {
+ "use strict";
+ $.extend($.fn.select2.defaults, {
+ formatNoMatches: function () { return "没有找到匹配项"; },
+ formatInputTooShort: function (input, min) { var n = min - input.length; return "请再输入" + n + "个字符";},
+ formatInputTooLong: function (input, max) { var n = input.length - max; return "请删掉" + n + "个字符";},
+ formatSelectionTooBig: function (limit) { return "你只能选择最多" + limit + ""; },
+ formatLoadMore: function (pageNumber) { return "加载结果中..."; },
+ formatSearching: function () { return "搜索中..."; }
+ });
+})(jQuery);

0 comments on commit 4e676af

Please sign in to comment.