From 095ece6243700e265df0fc732c997a5f1fcdd27b Mon Sep 17 00:00:00 2001 From: caiyundong Date: Fri, 7 Jul 2017 16:16:30 +0800 Subject: [PATCH] add Simplified Chinese and Traditional Chinese translation --- messages/message.php | 2 ++ messages/zh-CN/rbac.php | 51 +++++++++++++++++++++++++++++++++++++++++ messages/zh-TW/rbac.php | 51 +++++++++++++++++++++++++++++++++++++++++ 3 files changed, 104 insertions(+) create mode 100644 messages/zh-CN/rbac.php create mode 100644 messages/zh-TW/rbac.php diff --git a/messages/message.php b/messages/message.php index c8b598bf..66b33892 100644 --- a/messages/message.php +++ b/messages/message.php @@ -13,6 +13,8 @@ 'pt-BR', 'ru', 'uk', + 'zh-CN', + 'zh-TW', ], 'translator' => 'Yii::t', 'sort' => false, diff --git a/messages/zh-CN/rbac.php b/messages/zh-CN/rbac.php new file mode 100644 index 00000000..b286a3a9 --- /dev/null +++ b/messages/zh-CN/rbac.php @@ -0,0 +1,51 @@ + '子类', + 'Items' => '事项', + 'Rule' => '规则', + 'Rule class must extend "yii\rbac\Rule"' => '规则类必须继承于"yii\rbac\Rule"', + 'Classname of the rule associated with this item' => '事项相关的规则类名', + 'The item description (Optional).' => '事项描述(可选)', + 'The name of the item.' => '事项名称', + 'Assignments have been updated' => '授权已经更新', + 'Auth item with such name already exists' => '同名事项已经存在', + 'Class "{0}" does not exist' => '{0}类不存在', + 'Create' => '创建', + 'Create new permission' => '创建新权限', + 'Create new role' => '创建新角色', + 'Description' => '描述', + 'Invalid value' => '赋值不正确', + 'Item has been created' => '事项已创建', + 'Item has been updated' => '事项已更新', + 'Name' => '名称', + 'New permission' => '新权限', + 'New role' => '新角色', + 'New user' => '新用户', + 'Permissions' => '权限', + 'Roles' => '角色', + 'Rule class can not be instantiated' => '规则类不可以实例化', + 'Rule name' => '规则名称', + 'Save' => '保存', + 'There is neither role nor permission with name "{0}"' => '当前没有名为"{0}"的角色或者权限。', + 'Update assignments' => '更新授权', + 'Update permission' => '更新权限', + 'Update role' => '更新角色', + 'Users' => '用户', +]; diff --git a/messages/zh-TW/rbac.php b/messages/zh-TW/rbac.php new file mode 100644 index 00000000..5af47eab --- /dev/null +++ b/messages/zh-TW/rbac.php @@ -0,0 +1,51 @@ + '子類', + 'Items' => '事項', + 'Rule' => '規則', + 'Rule class must extend "yii\rbac\Rule"' => '規則類必須繼承于"yii\rbac\Rule"', + 'Classname of the rule associated with this item' => '事項相關的規則類名', + 'The item description (Optional).' => '事項描述(可選)', + 'The name of the item.' => '事項名稱', + 'Assignments have been updated' => '授權已經更新', + 'Auth item with such name already exists' => '同名事項已經存在', + 'Class "{0}" does not exist' => '{0}類不存在', + 'Create' => '創建', + 'Create new permission' => '創建新權限', + 'Create new role' => '創建新角色', + 'Description' => '描述', + 'Invalid value' => '賦值不正確', + 'Item has been created' => '事項已創建', + 'Item has been updated' => '事項已更新', + 'Name' => '名稱', + 'New permission' => '新權限', + 'New role' => '新角色', + 'New user' => '新用戶', + 'Permissions' => '權限', + 'Roles' => '角色', + 'Rule class can not be instantiated' => '規則類不可以實例化', + 'Rule name' => '規則名稱', + 'Save' => '保存', + 'There is neither role nor permission with name "{0}"' => '當前沒有名爲"{0}"的角色或者權限。', + 'Update assignments' => '更新授權', + 'Update permission' => '更新權限', + 'Update role' => '更新角色', + 'Users' => '用戶', +];