From b405969d3e766b5506ee4d7e9271f799a9d0120e Mon Sep 17 00:00:00 2001 From: qiansen1386 Date: Thu, 9 Jan 2014 23:49:58 +0800 Subject: [PATCH 1/6] Add Chinese translation Signed-off-by: qiansen1386 --- framework/yii/messages/zh_cn/yii.php | 81 ++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 framework/yii/messages/zh_cn/yii.php diff --git a/framework/yii/messages/zh_cn/yii.php b/framework/yii/messages/zh_cn/yii.php new file mode 100644 index 0000000..c3096e7 --- /dev/null +++ b/framework/yii/messages/zh_cn/yii.php @@ -0,0 +1,81 @@ + '该输入',//TODO:Not so sure + '(not set)' => '(未设置)', + 'An internal server error occurred.' => '发生了一次服务器内部错误。', + 'Are you sure to delete this item?' => '确定要删除这条数据吗?', + 'Delete' => '删除', + 'Error' => '错误', + 'File upload failed.' => '文件上传失败。', + 'Home' => '首页', + 'Invalid data received for parameter "{param}".' => '"{param}"参数接收到无效的数据。', + 'Login Required' => '需要登录', + 'Missing required arguments: {params}' => '函数缺少参数:{params}', + 'Missing required parameters: {params}' => '缺少参数:{params}', + 'No' => 'Nein', + 'No help for unknown command "{command}".' => '命令 "{command}" 发生未知的错误。', + 'No help for unknown sub-command "{command}".' => '子命令 "{command}"发生未知的错误。', + 'No results found.' => '没有找到数据', + 'Only files with these extensions are allowed: {extensions}.' => '只允许使用以下文件扩展名的文件: {extensions}.', + 'Only files with these mimeTypes are allowed: {mimeTypes}.' => '只允许包含以下 mimeTypes 的文件: {mimeTypes}.', + 'Page not found.' => '页面未找到。', + 'Please fix the following errors:' => '请修复以下错误',//OR 请更正以下错误 + 'Please upload a file.' => '请上传一个文件。', + 'Showing {begin, number}-{end, number} of {totalCount, number} {totalCount, plural, one{item} other{items}}.' => '第 {begin, number}-{end, number} 条,共 {totalCount, number} 条数据.',//TODO:Not so sure + 'The file "{file}" is not an image.' => '文件 "{file}" 不是一个图像文件。', + 'The file "{file}" is too big. Its size cannot exceed {limit, number} {limit, plural, one{byte} other{bytes}}.' => '文件 "{file}" 太大。它的大小不能超过 {limit, number} 字节。',//TODO: Chinese do not have concept of plural + 'The file "{file}" is too small. Its size cannot be smaller than {limit, number} {limit, plural, one{byte} other{bytes}}.' => '该文件 "{file}" 太小。它的大小不得小于 {limit, number} 字节。',//TODO: Chinese do not have concept of plural + 'The format of {attribute} is invalid.' => '属性 {attribute} 的格式无效。', + 'The image "{file}" is too large. The height cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像 "{file}" 太大。他的高度不得超过 {limit, number} 像素。',//TODO: Chinese do not have concept of plural + 'The image "{file}" is too large. The width cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像 "{file}" 太大。他的宽度不得超过 {limit, number} 像素。',//TODO: Chinese do not have concept of plural + 'The image "{file}" is too small. The height cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像 "{file}" 太小。 他的高度不得小于 {limit, number} 像素。',//TODO: Chinese do not have concept of plural + 'The image "{file}" is too small. The width cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像 "{file}" 太小。 他的宽度不得小于 {limit, number} 像素。',//TODO: Chinese do not have concept of plural + 'The verification code is incorrect.' => '验证码不正确', + 'Total {count, number} {count, plural, one{item} other{items}}.' => '总计 {count, number} 条', + 'Unable to verify your data submission.' => '您提交的数据无法被验证', + 'Unknown command "{command}".' => '未知的命令: "{command}".',//TODO: Here missed a colon ":" + 'Unknown option: --{name}' => '未知的选项: --{name}', + 'Update' => '更新', + 'View' => '查看', + 'Yes' => '是', + 'You are not allowed to perform this action.' => '您没有执行此操作的权限', + 'You can upload at most {limit, number} {limit, plural, one{file} other{files}}.' => '您最多上传{limit, number}个文件。', + '{attribute} "{value}" has already been taken.' => '{attribute} "{value}"已经被占用了。', + '{attribute} cannot be blank.' => '{attribute}不能为空。', + '{attribute} is invalid.' => '{attribute}是无效的。', + '{attribute} is not a valid URL.' => '{attribute}不是一条有效的URL.', + '{attribute} is not a valid email address.' => '{attribute}不是有效的邮箱地址', + '{attribute} must be "{requiredValue}".' => '{attribute} 必须为 {requiredValue}。', + '{attribute} must be a number.' => '{attribute} 必须是一个数字。', + '{attribute} must be a string.' => '{attribute} 必须是一条字符串。', + '{attribute} must be an integer.' => '{attribute} 必须是整数', + '{attribute} must be either "{true}" or "{false}".' => '{attribute}的值必须要么为"{true}",要么为"{false}"。',//OR 要么为真,要么为假? + '{attribute} must be greater than "{compareValue}".' => '{attribute}的值必须大于"{compareValue}"。', + '{attribute} must be greater than or equal to "{compareValue}".' => '{attribute}的值必须大于或等于"{compareValue}"。', + '{attribute} must be less than "{compareValue}".' => '{attribute}的值必须小于"{compareValue}"。', + '{attribute} must be less than or equal to "{compareValue}".' => '{attribute}的值必须小于或等于"{compareValue}"。', + '{attribute} must be no greater than {max}.' => '{attribute}的值必须不大于{max}。', + '{attribute} must be no less than {min}.' => '{attribute}的值必须不小于{max}。', + '{attribute} must be repeated exactly.' => '{attribute}必须重复。',//TODO: A bit weird + '{attribute} must not be equal to "{compareValue}".' => '{attribute}的值不得等于"{compareValue}"。', + '{attribute} should contain at least {min, number} {min, plural, one{character} other{characters}}.' => '{attribute}应该包含至少{min, number}个字符。', + '{attribute} should contain at most {max, number} {max, plural, one{character} other{characters}}.' => '{attribute}只能包含至多{max, number}个字符。', + '{attribute} should contain {length, number} {length, plural, one{character} other{characters}}.' => '{attribute}应该包含{length, number}个字符。.', +); From 7f2280ac0adba075aa3f4d37815c3ef29e292143 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=9C=E6=96=B9=E5=AD=A4=E6=80=9D=E5=AD=90=EF=BC=88?= =?UTF-8?q?=E9=92=B1=E6=A3=AE=EF=BC=89?= Date: Fri, 10 Jan 2014 00:06:52 +0800 Subject: [PATCH 2/6] polish the Translation --- framework/yii/messages/zh_cn/yii.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/messages/zh_cn/yii.php b/framework/yii/messages/zh_cn/yii.php index c3096e7..a2ec84f 100644 --- a/framework/yii/messages/zh_cn/yii.php +++ b/framework/yii/messages/zh_cn/yii.php @@ -19,7 +19,7 @@ return array ( 'the input value' => '该输入',//TODO:Not so sure '(not set)' => '(未设置)', - 'An internal server error occurred.' => '发生了一次服务器内部错误。', + 'An internal server error occurred.' => '服务器内部错误。', 'Are you sure to delete this item?' => '确定要删除这条数据吗?', 'Delete' => '删除', 'Error' => '错误', From fff8e62113fee51be9e3e238034483ba6dae0c6d Mon Sep 17 00:00:00 2001 From: qiansen1386 Date: Fri, 10 Jan 2014 00:35:36 +0800 Subject: [PATCH 3/6] Continue to polish chinese Translation. Fix all the issue mentioned by @samdark. Removed all comments. Signed-off-by: qiansen1386 --- framework/yii/messages/zh_cn/yii.php | 56 ++++++++++++++++++------------------ 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/framework/yii/messages/zh_cn/yii.php b/framework/yii/messages/zh_cn/yii.php index a2ec84f..e863b43 100644 --- a/framework/yii/messages/zh_cn/yii.php +++ b/framework/yii/messages/zh_cn/yii.php @@ -17,7 +17,7 @@ * NOTE: this file must be saved in UTF-8 encoding. */ return array ( - 'the input value' => '该输入',//TODO:Not so sure + 'the input value' => '该输入', '(not set)' => '(未设置)', 'An internal server error occurred.' => '服务器内部错误。', 'Are you sure to delete this item?' => '确定要删除这条数据吗?', @@ -29,53 +29,53 @@ return array ( 'Login Required' => '需要登录', 'Missing required arguments: {params}' => '函数缺少参数:{params}', 'Missing required parameters: {params}' => '缺少参数:{params}', - 'No' => 'Nein', - 'No help for unknown command "{command}".' => '命令 "{command}" 发生未知的错误。', - 'No help for unknown sub-command "{command}".' => '子命令 "{command}"发生未知的错误。', + 'No' => '否', + 'No help for unknown command "{command}".' => '命令"{command}"发生未知的错误。', + 'No help for unknown sub-command "{command}".' => '子命令"{command}"发生未知的错误。', 'No results found.' => '没有找到数据', - 'Only files with these extensions are allowed: {extensions}.' => '只允许使用以下文件扩展名的文件: {extensions}.', - 'Only files with these mimeTypes are allowed: {mimeTypes}.' => '只允许包含以下 mimeTypes 的文件: {mimeTypes}.', + 'Only files with these extensions are allowed: {extensions}.' => '只允许使用以下文件扩展名的文件:{extensions}.', + 'Only files with these mimeTypes are allowed: {mimeTypes}.' => '只允许包含以下 mimeTypes 的文件:{mimeTypes}.', 'Page not found.' => '页面未找到。', - 'Please fix the following errors:' => '请修复以下错误',//OR 请更正以下错误 + 'Please fix the following errors:' => '请修复以下错误', 'Please upload a file.' => '请上传一个文件。', - 'Showing {begin, number}-{end, number} of {totalCount, number} {totalCount, plural, one{item} other{items}}.' => '第 {begin, number}-{end, number} 条,共 {totalCount, number} 条数据.',//TODO:Not so sure + 'Showing {begin, number}-{end, number} of {totalCount, number} {totalCount, plural, one{item} other{items}}.' => '第{begin, number}-{end, number}条,共{totalCount, number}条{totalCount, plural, one{数据} other{数据}}.', 'The file "{file}" is not an image.' => '文件 "{file}" 不是一个图像文件。', - 'The file "{file}" is too big. Its size cannot exceed {limit, number} {limit, plural, one{byte} other{bytes}}.' => '文件 "{file}" 太大。它的大小不能超过 {limit, number} 字节。',//TODO: Chinese do not have concept of plural - 'The file "{file}" is too small. Its size cannot be smaller than {limit, number} {limit, plural, one{byte} other{bytes}}.' => '该文件 "{file}" 太小。它的大小不得小于 {limit, number} 字节。',//TODO: Chinese do not have concept of plural + 'The file "{file}" is too big. Its size cannot exceed {limit, number} {limit, plural, one{byte} other{bytes}}.' => '文件"{file}"太大。它的大小不能超过{limit, number}{limit, plural, one{字节} other{字节}}。', + 'The file "{file}" is too small. Its size cannot be smaller than {limit, number} {limit, plural, one{byte} other{bytes}}.' => '该文件"{file}"太小。它的大小不得小于{limit, number}{limit, plural, one{字节} other{字节}}。', 'The format of {attribute} is invalid.' => '属性 {attribute} 的格式无效。', - 'The image "{file}" is too large. The height cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像 "{file}" 太大。他的高度不得超过 {limit, number} 像素。',//TODO: Chinese do not have concept of plural - 'The image "{file}" is too large. The width cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像 "{file}" 太大。他的宽度不得超过 {limit, number} 像素。',//TODO: Chinese do not have concept of plural - 'The image "{file}" is too small. The height cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像 "{file}" 太小。 他的高度不得小于 {limit, number} 像素。',//TODO: Chinese do not have concept of plural - 'The image "{file}" is too small. The width cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像 "{file}" 太小。 他的宽度不得小于 {limit, number} 像素。',//TODO: Chinese do not have concept of plural + 'The image "{file}" is too large. The height cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像"{file}"太大。他的高度不得超过{limit, number}{limit, plural, one{像素} other{像素}}。', + 'The image "{file}" is too large. The width cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像"{file}"太大。他的宽度不得超过{limit, number}{limit, plural, one{像素} other{像素}}。', + 'The image "{file}" is too small. The height cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像"{file}"太小。他的高度不得小于{limit, number}{limit, plural, one{像素} other{像素}}。', + 'The image "{file}" is too small. The width cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像"{file}"太小。他的宽度不得小于{limit, number}{limit, plural, one{像素} other{像素}}。', 'The verification code is incorrect.' => '验证码不正确', - 'Total {count, number} {count, plural, one{item} other{items}}.' => '总计 {count, number} 条', + 'Total {count, number} {count, plural, one{item} other{items}}.' => '总计{count, number}条{count, plural, one{数据} other{数据}}', 'Unable to verify your data submission.' => '您提交的数据无法被验证', - 'Unknown command "{command}".' => '未知的命令: "{command}".',//TODO: Here missed a colon ":" - 'Unknown option: --{name}' => '未知的选项: --{name}', + 'Unknown command "{command}".' => '未知的命令 "{command}".', + 'Unknown option: --{name}' => '未知的选项:--{name}', 'Update' => '更新', 'View' => '查看', 'Yes' => '是', 'You are not allowed to perform this action.' => '您没有执行此操作的权限', - 'You can upload at most {limit, number} {limit, plural, one{file} other{files}}.' => '您最多上传{limit, number}个文件。', - '{attribute} "{value}" has already been taken.' => '{attribute} "{value}"已经被占用了。', + 'You can upload at most {limit, number} {limit, plural, one{file} other{files}}.' => '您最多上传{limit, number}个{limit, plural, one{文件} other{文件}}。', + '{attribute} "{value}" has already been taken.' => '{attribute}的值"{value}"已经被占用了。', '{attribute} cannot be blank.' => '{attribute}不能为空。', '{attribute} is invalid.' => '{attribute}是无效的。', '{attribute} is not a valid URL.' => '{attribute}不是一条有效的URL.', '{attribute} is not a valid email address.' => '{attribute}不是有效的邮箱地址', - '{attribute} must be "{requiredValue}".' => '{attribute} 必须为 {requiredValue}。', - '{attribute} must be a number.' => '{attribute} 必须是一个数字。', - '{attribute} must be a string.' => '{attribute} 必须是一条字符串。', - '{attribute} must be an integer.' => '{attribute} 必须是整数', - '{attribute} must be either "{true}" or "{false}".' => '{attribute}的值必须要么为"{true}",要么为"{false}"。',//OR 要么为真,要么为假? + '{attribute} must be "{requiredValue}".' => '{attribute}必须为"{requiredValue}"。', + '{attribute} must be a number.' => '{attribute}必须是一个数字。', + '{attribute} must be a string.' => '{attribute}必须是一条字符串。', + '{attribute} must be an integer.' => '{attribute}必须是整数', + '{attribute} must be either "{true}" or "{false}".' => '{attribute}的值必须要么为"{true}",要么为"{false}"。', '{attribute} must be greater than "{compareValue}".' => '{attribute}的值必须大于"{compareValue}"。', '{attribute} must be greater than or equal to "{compareValue}".' => '{attribute}的值必须大于或等于"{compareValue}"。', '{attribute} must be less than "{compareValue}".' => '{attribute}的值必须小于"{compareValue}"。', '{attribute} must be less than or equal to "{compareValue}".' => '{attribute}的值必须小于或等于"{compareValue}"。', '{attribute} must be no greater than {max}.' => '{attribute}的值必须不大于{max}。', '{attribute} must be no less than {min}.' => '{attribute}的值必须不小于{max}。', - '{attribute} must be repeated exactly.' => '{attribute}必须重复。',//TODO: A bit weird + '{attribute} must be repeated exactly.' => '{attribute}必须重复。', '{attribute} must not be equal to "{compareValue}".' => '{attribute}的值不得等于"{compareValue}"。', - '{attribute} should contain at least {min, number} {min, plural, one{character} other{characters}}.' => '{attribute}应该包含至少{min, number}个字符。', - '{attribute} should contain at most {max, number} {max, plural, one{character} other{characters}}.' => '{attribute}只能包含至多{max, number}个字符。', - '{attribute} should contain {length, number} {length, plural, one{character} other{characters}}.' => '{attribute}应该包含{length, number}个字符。.', + '{attribute} should contain at least {min, number} {min, plural, one{character} other{characters}}.' => '{attribute}应该包含至少{min, number}个{min, plural, one{字符} other{字符}}。', + '{attribute} should contain at most {max, number} {max, plural, one{character} other{characters}}.' => '{attribute}只能包含至多{max, number}个{max, plural, one{字符} other{字符}}。', + '{attribute} should contain {length, number} {length, plural, one{character} other{characters}}.' => '{attribute}应该包含{length, number}个{length, plural, one{字符} other{字符}}。.', ); From f8f8903a7e6ea6b6869e2f3d733790875114b8e3 Mon Sep 17 00:00:00 2001 From: qiansen1386 Date: Fri, 10 Jan 2014 00:40:55 +0800 Subject: [PATCH 4/6] Polish Chinese translation. Symbols Signed-off-by: qiansen1386 --- framework/yii/messages/zh_cn/yii.php | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/framework/yii/messages/zh_cn/yii.php b/framework/yii/messages/zh_cn/yii.php index e863b43..a7ea162 100644 --- a/framework/yii/messages/zh_cn/yii.php +++ b/framework/yii/messages/zh_cn/yii.php @@ -32,9 +32,9 @@ return array ( 'No' => '否', 'No help for unknown command "{command}".' => '命令"{command}"发生未知的错误。', 'No help for unknown sub-command "{command}".' => '子命令"{command}"发生未知的错误。', - 'No results found.' => '没有找到数据', - 'Only files with these extensions are allowed: {extensions}.' => '只允许使用以下文件扩展名的文件:{extensions}.', - 'Only files with these mimeTypes are allowed: {mimeTypes}.' => '只允许包含以下 mimeTypes 的文件:{mimeTypes}.', + 'No results found.' => '没有找到数据。', + 'Only files with these extensions are allowed: {extensions}.' => '只允许使用以下文件扩展名的文件:{extensions}。', + 'Only files with these mimeTypes are allowed: {mimeTypes}.' => '只允许包含以下 mimeTypes 的文件:{mimeTypes}。', 'Page not found.' => '页面未找到。', 'Please fix the following errors:' => '请修复以下错误', 'Please upload a file.' => '请上传一个文件。', @@ -47,25 +47,25 @@ return array ( 'The image "{file}" is too large. The width cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像"{file}"太大。他的宽度不得超过{limit, number}{limit, plural, one{像素} other{像素}}。', 'The image "{file}" is too small. The height cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像"{file}"太小。他的高度不得小于{limit, number}{limit, plural, one{像素} other{像素}}。', 'The image "{file}" is too small. The width cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像"{file}"太小。他的宽度不得小于{limit, number}{limit, plural, one{像素} other{像素}}。', - 'The verification code is incorrect.' => '验证码不正确', - 'Total {count, number} {count, plural, one{item} other{items}}.' => '总计{count, number}条{count, plural, one{数据} other{数据}}', - 'Unable to verify your data submission.' => '您提交的数据无法被验证', - 'Unknown command "{command}".' => '未知的命令 "{command}".', + 'The verification code is incorrect.' => '验证码不正确。', + 'Total {count, number} {count, plural, one{item} other{items}}.' => '总计{count, number}条{count, plural, one{数据} other{数据}}。', + 'Unable to verify your data submission.' => '您提交的数据无法被验证。', + 'Unknown command "{command}".' => '未知的命令 "{command}"。', 'Unknown option: --{name}' => '未知的选项:--{name}', 'Update' => '更新', 'View' => '查看', 'Yes' => '是', - 'You are not allowed to perform this action.' => '您没有执行此操作的权限', + 'You are not allowed to perform this action.' => '您没有执行此操作的权限。', 'You can upload at most {limit, number} {limit, plural, one{file} other{files}}.' => '您最多上传{limit, number}个{limit, plural, one{文件} other{文件}}。', '{attribute} "{value}" has already been taken.' => '{attribute}的值"{value}"已经被占用了。', '{attribute} cannot be blank.' => '{attribute}不能为空。', '{attribute} is invalid.' => '{attribute}是无效的。', - '{attribute} is not a valid URL.' => '{attribute}不是一条有效的URL.', - '{attribute} is not a valid email address.' => '{attribute}不是有效的邮箱地址', + '{attribute} is not a valid URL.' => '{attribute}不是一条有效的URL。', + '{attribute} is not a valid email address.' => '{attribute}不是有效的邮箱地址。', '{attribute} must be "{requiredValue}".' => '{attribute}必须为"{requiredValue}"。', '{attribute} must be a number.' => '{attribute}必须是一个数字。', '{attribute} must be a string.' => '{attribute}必须是一条字符串。', - '{attribute} must be an integer.' => '{attribute}必须是整数', + '{attribute} must be an integer.' => '{attribute}必须是整数。', '{attribute} must be either "{true}" or "{false}".' => '{attribute}的值必须要么为"{true}",要么为"{false}"。', '{attribute} must be greater than "{compareValue}".' => '{attribute}的值必须大于"{compareValue}"。', '{attribute} must be greater than or equal to "{compareValue}".' => '{attribute}的值必须大于或等于"{compareValue}"。', @@ -77,5 +77,5 @@ return array ( '{attribute} must not be equal to "{compareValue}".' => '{attribute}的值不得等于"{compareValue}"。', '{attribute} should contain at least {min, number} {min, plural, one{character} other{characters}}.' => '{attribute}应该包含至少{min, number}个{min, plural, one{字符} other{字符}}。', '{attribute} should contain at most {max, number} {max, plural, one{character} other{characters}}.' => '{attribute}只能包含至多{max, number}个{max, plural, one{字符} other{字符}}。', - '{attribute} should contain {length, number} {length, plural, one{character} other{characters}}.' => '{attribute}应该包含{length, number}个{length, plural, one{字符} other{字符}}。.', + '{attribute} should contain {length, number} {length, plural, one{character} other{characters}}.' => '{attribute}应该包含{length, number}个{length, plural, one{字符} other{字符}}。', ); From 148fee982ae386e29292175eb7f396271c082783 Mon Sep 17 00:00:00 2001 From: qiansen1386 Date: Fri, 10 Jan 2014 00:46:59 +0800 Subject: [PATCH 5/6] Correction of chinese core message translation. Signed-off-by: qiansen1386 --- framework/yii/messages/zh_cn/yii.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/framework/yii/messages/zh_cn/yii.php b/framework/yii/messages/zh_cn/yii.php index a7ea162..0efd0f1 100644 --- a/framework/yii/messages/zh_cn/yii.php +++ b/framework/yii/messages/zh_cn/yii.php @@ -38,15 +38,15 @@ return array ( 'Page not found.' => '页面未找到。', 'Please fix the following errors:' => '请修复以下错误', 'Please upload a file.' => '请上传一个文件。', - 'Showing {begin, number}-{end, number} of {totalCount, number} {totalCount, plural, one{item} other{items}}.' => '第{begin, number}-{end, number}条,共{totalCount, number}条{totalCount, plural, one{数据} other{数据}}.', + 'Showing {begin, number}-{end, number} of {totalCount, number} {totalCount, plural, one{item} other{items}}.' => '第{begin, number}-{end, number}条,共{totalCount, number}条数据.', 'The file "{file}" is not an image.' => '文件 "{file}" 不是一个图像文件。', - 'The file "{file}" is too big. Its size cannot exceed {limit, number} {limit, plural, one{byte} other{bytes}}.' => '文件"{file}"太大。它的大小不能超过{limit, number}{limit, plural, one{字节} other{字节}}。', - 'The file "{file}" is too small. Its size cannot be smaller than {limit, number} {limit, plural, one{byte} other{bytes}}.' => '该文件"{file}"太小。它的大小不得小于{limit, number}{limit, plural, one{字节} other{字节}}。', + 'The file "{file}" is too big. Its size cannot exceed {limit, number} {limit, plural, one{byte} other{bytes}}.' => '文件"{file}"太大。它的大小不能超过{limit, number}字节。', + 'The file "{file}" is too small. Its size cannot be smaller than {limit, number} {limit, plural, one{byte} other{bytes}}.' => '该文件"{file}"太小。它的大小不得小于{limit, number}字节。', 'The format of {attribute} is invalid.' => '属性 {attribute} 的格式无效。', - 'The image "{file}" is too large. The height cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像"{file}"太大。他的高度不得超过{limit, number}{limit, plural, one{像素} other{像素}}。', - 'The image "{file}" is too large. The width cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像"{file}"太大。他的宽度不得超过{limit, number}{limit, plural, one{像素} other{像素}}。', - 'The image "{file}" is too small. The height cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像"{file}"太小。他的高度不得小于{limit, number}{limit, plural, one{像素} other{像素}}。', - 'The image "{file}" is too small. The width cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像"{file}"太小。他的宽度不得小于{limit, number}{limit, plural, one{像素} other{像素}}。', + 'The image "{file}" is too large. The height cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像"{file}"太大。他的高度不得超过{limit, number}像素。', + 'The image "{file}" is too large. The width cannot be larger than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像"{file}"太大。他的宽度不得超过{limit, number}像素。', + 'The image "{file}" is too small. The height cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像"{file}"太小。他的高度不得小于{limit, number}像素。', + 'The image "{file}" is too small. The width cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像"{file}"太小。他的宽度不得小于{limit, number}像素。', 'The verification code is incorrect.' => '验证码不正确。', 'Total {count, number} {count, plural, one{item} other{items}}.' => '总计{count, number}条{count, plural, one{数据} other{数据}}。', 'Unable to verify your data submission.' => '您提交的数据无法被验证。', @@ -56,7 +56,7 @@ return array ( 'View' => '查看', 'Yes' => '是', 'You are not allowed to perform this action.' => '您没有执行此操作的权限。', - 'You can upload at most {limit, number} {limit, plural, one{file} other{files}}.' => '您最多上传{limit, number}个{limit, plural, one{文件} other{文件}}。', + 'You can upload at most {limit, number} {limit, plural, one{file} other{files}}.' => '您最多上传{limit, number}个文件。', '{attribute} "{value}" has already been taken.' => '{attribute}的值"{value}"已经被占用了。', '{attribute} cannot be blank.' => '{attribute}不能为空。', '{attribute} is invalid.' => '{attribute}是无效的。', @@ -75,7 +75,7 @@ return array ( '{attribute} must be no less than {min}.' => '{attribute}的值必须不小于{max}。', '{attribute} must be repeated exactly.' => '{attribute}必须重复。', '{attribute} must not be equal to "{compareValue}".' => '{attribute}的值不得等于"{compareValue}"。', - '{attribute} should contain at least {min, number} {min, plural, one{character} other{characters}}.' => '{attribute}应该包含至少{min, number}个{min, plural, one{字符} other{字符}}。', - '{attribute} should contain at most {max, number} {max, plural, one{character} other{characters}}.' => '{attribute}只能包含至多{max, number}个{max, plural, one{字符} other{字符}}。', - '{attribute} should contain {length, number} {length, plural, one{character} other{characters}}.' => '{attribute}应该包含{length, number}个{length, plural, one{字符} other{字符}}。', + '{attribute} should contain at least {min, number} {min, plural, one{character} other{characters}}.' => '{attribute}应该包含至少{min, number}个字符。', + '{attribute} should contain at most {max, number} {max, plural, one{character} other{characters}}.' => '{attribute}只能包含至多{max, number}个字符。', + '{attribute} should contain {length, number} {length, plural, one{character} other{characters}}.' => '{attribute}应该包含{length, number}个字符。', ); From ac5b6b34a23dce0cd35d8d396b89c86011497403 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=9C=E6=96=B9=E5=AD=A4=E6=80=9D=E5=AD=90=EF=BC=88?= =?UTF-8?q?=E9=92=B1=E6=A3=AE=EF=BC=89?= Date: Fri, 10 Jan 2014 01:03:25 +0800 Subject: [PATCH 6/6] Update yii.php --- framework/yii/messages/zh_cn/yii.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/yii/messages/zh_cn/yii.php b/framework/yii/messages/zh_cn/yii.php index 0efd0f1..9d2ce17 100644 --- a/framework/yii/messages/zh_cn/yii.php +++ b/framework/yii/messages/zh_cn/yii.php @@ -48,7 +48,7 @@ return array ( 'The image "{file}" is too small. The height cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像"{file}"太小。他的高度不得小于{limit, number}像素。', 'The image "{file}" is too small. The width cannot be smaller than {limit, number} {limit, plural, one{pixel} other{pixels}}.' => '图像"{file}"太小。他的宽度不得小于{limit, number}像素。', 'The verification code is incorrect.' => '验证码不正确。', - 'Total {count, number} {count, plural, one{item} other{items}}.' => '总计{count, number}条{count, plural, one{数据} other{数据}}。', + 'Total {count, number} {count, plural, one{item} other{items}}.' => '总计{count, number}条数据。', 'Unable to verify your data submission.' => '您提交的数据无法被验证。', 'Unknown command "{command}".' => '未知的命令 "{command}"。', 'Unknown option: --{name}' => '未知的选项:--{name}',