From b6aa7c847234ed985ec693c53633a7f0f3e2cd9c Mon Sep 17 00:00:00 2001 From: Mike Chen Date: Wed, 29 Jul 2009 00:01:16 +0800 Subject: merge Evgeny's English and Botum's Spanish translations --- templates/content/js/com.cnprog.utils.js | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) (limited to 'templates/content/js/com.cnprog.utils.js') diff --git a/templates/content/js/com.cnprog.utils.js b/templates/content/js/com.cnprog.utils.js index a5f0e982..683b7a3f 100644 --- a/templates/content/js/com.cnprog.utils.js +++ b/templates/content/js/com.cnprog.utils.js @@ -1,5 +1,6 @@ var showMessage = function(object, msg) { - var div = $('

' + msg + '

(点击消息框关闭)
'); + var div = $('

' + msg + '

(' + + $.i18n._('click to close') + ')
'); div.click(function(event) { $(".vote-notification").fadeOut("fast", function() { $(this).remove(); }); @@ -33,7 +34,12 @@ var notify = function() { } (); function appendLoader(containerSelector) { - $(containerSelector).append('读取中...'); + $(containerSelector).append(''
+		+$.i18n._('loading...')
+		+''); } function removeLoader() { @@ -96,16 +102,16 @@ var CPValidator = function(){ getQuestionFormMessages: function(){ return { tags: { - required: " 标签不能为空。", - maxlength: " 最多5个标签,每个标签长度小于20个字符。" + required: " " + $.i18n._('tags cannot be empty'), + maxlength: " " + $.i18n._('tablimits info'), }, text: { - required: " 内容不能为空。", - minlength: jQuery.format(" 请输入至少 {0} 字符。") + required: " " + $.i18n._('content cannot be empty'), + minlength: jQuery.format(' ' + $.i18n._('content minchars')) }, title: { - required: " 请输入标题。", - minlength: jQuery.format(" 请输入至少 {0} 字符。") + required: " " + $.i18n._('please enter title'), + minlength: jQuery.format(' ' + $.i18n._('title minchars')) } }; } -- cgit v1.2.3-1-g7c22