From c3c5f360fc6a89d9266883eb94ca70b5c0da2b83 Mon Sep 17 00:00:00 2001 From: Erick Guan Date: Fri, 13 Feb 2015 19:56:40 +0800 Subject: [PATCH] Create zh-CN.js --- src/js/select2/i18n/zh-CN.js | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/js/select2/i18n/zh-CN.js diff --git a/src/js/select2/i18n/zh-CN.js b/src/js/select2/i18n/zh-CN.js new file mode 100644 index 00000000..4aaec39e --- /dev/null +++ b/src/js/select2/i18n/zh-CN.js @@ -0,0 +1,36 @@ +define(function () { + // Chinese (Simplified) + return { + errorLoading: function () { + 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 '搜索中…'; + } + }; +});