From 081eb3502f00bd9dcd0dd6f91d3653c5d10f7f74 Mon Sep 17 00:00:00 2001 From: darkwind Date: Fri, 14 May 2021 14:29:24 +0800 Subject: [PATCH] add Simplified Chinese lang --- .../forms/resources/lang/zh-CN/fields.php | 139 ++++++++++++++++++ .../resources/lang/zh-CN/pagination.php | 20 +++ .../tables/resources/lang/zh-CN/table.php | 57 +++++++ resources/lang/zh-CN/auth/login.php | 37 +++++ resources/lang/zh-CN/auth/logout.php | 9 ++ .../lang/zh-CN/auth/request-password.php | 36 +++++ resources/lang/zh-CN/auth/reset-password.php | 41 ++++++ resources/lang/zh-CN/dashboard.php | 41 ++++++ resources/lang/zh-CN/edit-account.php | 19 +++ resources/lang/zh-CN/layout.php | 7 + resources/lang/zh-CN/nav.php | 17 +++ .../zh-CN/resources/pages/create-record.php | 25 ++++ .../zh-CN/resources/pages/edit-record.php | 49 ++++++ .../zh-CN/resources/pages/list-records.php | 25 ++++ .../lang/zh-CN/resources/relation-manager.php | 131 +++++++++++++++++ .../lang/zh-CN/resources/user-resource.php | 84 +++++++++++ 16 files changed, 737 insertions(+) create mode 100644 packages/forms/resources/lang/zh-CN/fields.php create mode 100644 packages/tables/resources/lang/zh-CN/pagination.php create mode 100644 packages/tables/resources/lang/zh-CN/table.php create mode 100644 resources/lang/zh-CN/auth/login.php create mode 100644 resources/lang/zh-CN/auth/logout.php create mode 100644 resources/lang/zh-CN/auth/request-password.php create mode 100644 resources/lang/zh-CN/auth/reset-password.php create mode 100644 resources/lang/zh-CN/dashboard.php create mode 100644 resources/lang/zh-CN/edit-account.php create mode 100644 resources/lang/zh-CN/layout.php create mode 100644 resources/lang/zh-CN/nav.php create mode 100644 resources/lang/zh-CN/resources/pages/create-record.php create mode 100644 resources/lang/zh-CN/resources/pages/edit-record.php create mode 100644 resources/lang/zh-CN/resources/pages/list-records.php create mode 100644 resources/lang/zh-CN/resources/relation-manager.php create mode 100644 resources/lang/zh-CN/resources/user-resource.php diff --git a/packages/forms/resources/lang/zh-CN/fields.php b/packages/forms/resources/lang/zh-CN/fields.php new file mode 100644 index 0000000000..d3e378649a --- /dev/null +++ b/packages/forms/resources/lang/zh-CN/fields.php @@ -0,0 +1,139 @@ + [ + + 'abbreviatedDays' => [ + 'friday' => '周五', + 'monday' => '周一', + 'saturday' => '周六', + 'sunday' => '周日', + 'thursday' => '周四', + 'tuesday' => '周二', + 'wednesday' => '周三', + ], + + 'months' => [ + 'april' => '四月', + 'august' => '八月', + 'december' => '十二月', + 'february' => '二月', + 'january' => '一月', + 'july' => '七月', + 'june' => '六月', + 'march' => '三月', + 'may' => '五月', + 'november' => '十一月', + 'october' => '十月', + 'september' => '九月', + ], + + ], + + 'keyValue' => [ + + 'buttons' => [ + + 'add' => [ + 'label' => '添加行', + ], + + 'delete' => [ + 'label' => '删除行', + ], + + 'sort' => [ + 'label' => '排序', + ], + + ], + + 'fields' => [ + + 'key' => [ + 'label' => '键名', + 'placeholder' => '输入键名...', + ], + + 'value' => [ + 'label' => '值', + 'placeholder' => '输入值...', + ], + + ], + + ], + + 'markdownEditor' => [ + + 'toolbarButtons' => [ + 'attachFiles' => '附件', + 'bold' => '加粗', + 'bullet' => '普通列表', + 'code' => '代码', + 'italic' => '斜体', + 'link' => '链接', + 'number' => '数字列表', + 'preview' => '预览', + 'strike' => '文字中线', + 'write' => 'Write', + ], + + ], + + 'multiSelect' => [ + 'emptyOptionsMessage' => '没有可供选择的选项.', + 'noSearchResultsMessage' => '没有选项匹配您的搜索.', + 'placeholder' => '请选择', + ], + + 'richEditor' => [ + + 'dialogs' => [ + + 'link' => [ + + 'buttons' => [ + 'link' => '链接', + 'unlink' => '取消链接', + ], + + 'label' => 'URL', + + 'placeholder' => '输入URL', + + ], + + ], + + 'toolbarButtons' => [ + 'attachFiles' => '附件', + 'bold' => '加粗', + 'bullet' => '普通列表', + 'code' => '代码', + 'heading' => '标题', + 'italic' => '斜体', + 'link' => '链接', + 'number' => '数字列表', + 'quote' => '引用', + 'redo' => '下一步', + 'strike' => '文字中线', + 'subheading' => '副标题', + 'title' => '标题', + 'undo' => '上一步', + ], + + ], + + 'select' => [ + 'emptyOptionsMessage' => '搜索...', + 'noSearchResultsMessage' => '没有选项匹配您的搜索.', + 'placeholder' => '请选择', + ], + + 'tags' => [ + 'placeholder' => '新标签', + ], + +]; diff --git a/packages/tables/resources/lang/zh-CN/pagination.php b/packages/tables/resources/lang/zh-CN/pagination.php new file mode 100644 index 0000000000..d14f44a399 --- /dev/null +++ b/packages/tables/resources/lang/zh-CN/pagination.php @@ -0,0 +1,20 @@ + [ + 'goToPage' => '跳转到 :page', + 'next' => '下一页', + 'previous' => '上一页', + ], + + 'label' => '分页', + + 'overview' => [ + '显示', + '到', + '的', + '结果', + ], + +]; diff --git a/packages/tables/resources/lang/zh-CN/table.php b/packages/tables/resources/lang/zh-CN/table.php new file mode 100644 index 0000000000..02e05db7d4 --- /dev/null +++ b/packages/tables/resources/lang/zh-CN/table.php @@ -0,0 +1,57 @@ + [ + + 'button' => [ + 'label' => '删除选中', + ], + + 'modal' => [ + + 'buttons' => [ + + 'cancel' => [ + 'label' => '取消', + ], + + 'delete' => [ + 'label' => '删除选中', + ], + + ], + + 'description' => '您确定要删除所选记录吗?这一操作不能取消.', + + 'heading' => '删除所选记录?', + + ], + + ], + + 'filter' => [ + 'placeholder' => '筛选', + ], + + 'messages' => [ + 'noRecords' => '没有找到相关记录', + ], + + 'pagination' => [ + + 'fields' => [ + + 'recordsPerPage' => [ + 'label' => '每页', + ], + + ], + + ], + + 'search' => [ + 'placeholder' => '搜索', + ], + +]; diff --git a/resources/lang/zh-CN/auth/login.php b/resources/lang/zh-CN/auth/login.php new file mode 100644 index 0000000000..86d87e398b --- /dev/null +++ b/resources/lang/zh-CN/auth/login.php @@ -0,0 +1,37 @@ + [ + + 'submit' => [ + 'label' => '登录', + ], + + ], + + 'form' => [ + + 'email' => [ + 'label' => '邮箱地址', + ], + + 'password' => [ + 'hint' => '忘记密码?', + 'label' => '密码', + ], + + 'remember' => [ + 'label' => '记住账号', + ], + + ], + + 'messages' => [ + 'failed' => '用户名或密码错误.', + 'throttled' => '错误次数过多. 请在 :seconds 秒后重试.', + ], + + 'title' => '登录', + +]; diff --git a/resources/lang/zh-CN/auth/logout.php b/resources/lang/zh-CN/auth/logout.php new file mode 100644 index 0000000000..525f44f900 --- /dev/null +++ b/resources/lang/zh-CN/auth/logout.php @@ -0,0 +1,9 @@ + [ + 'label' => '退出', + ], + +]; diff --git a/resources/lang/zh-CN/auth/request-password.php b/resources/lang/zh-CN/auth/request-password.php new file mode 100644 index 0000000000..8bf5fbe4d4 --- /dev/null +++ b/resources/lang/zh-CN/auth/request-password.php @@ -0,0 +1,36 @@ + [ + + 'submit' => [ + 'label' => '发送密码重置链接', + ], + + ], + + 'form' => [ + + 'email' => [ + 'hint' => '回到登录', + 'label' => '邮箱地址', + ], + + ], + + 'messages' => [ + + 'throttled' => '错误次数过多. 请在 :seconds 秒后重试.', + + 'passwords' => [ + 'sent' => '我们已经向您的邮箱发送密码重置链接!', + 'throttled' => '请稍后重试.', + 'user' => '找不到您填写的邮箱.', + ], + + ], + + 'title' => '重置密码', + +]; diff --git a/resources/lang/zh-CN/auth/reset-password.php b/resources/lang/zh-CN/auth/reset-password.php new file mode 100644 index 0000000000..406b2a2da4 --- /dev/null +++ b/resources/lang/zh-CN/auth/reset-password.php @@ -0,0 +1,41 @@ + [ + + 'submit' => [ + 'label' => '重置密码', + ], + + ], + + 'form' => [ + + 'email' => [ + 'label' => '邮箱地址', + ], + + 'password' => [ + 'label' => '密码', + ], + + 'passwordConfirmation' => [ + 'label' => '密码确认', + ], + + ], + + 'messages' => [ + + 'passwords' => [ + 'throttled' => '请稍后重试.', + 'token' => '密码重置链接已经失效.', + 'user' => '找不到您填写的邮箱.', + ], + + ], + + 'title' => '重置密码', + +]; diff --git a/resources/lang/zh-CN/dashboard.php b/resources/lang/zh-CN/dashboard.php new file mode 100644 index 0000000000..86b68a802e --- /dev/null +++ b/resources/lang/zh-CN/dashboard.php @@ -0,0 +1,41 @@ + '首页', + + 'widgets' => [ + + 'account' => [ + + 'heading' => '欢迎, :name', + + 'links' => [ + + 'account' => [ + 'label' => '管理您的账户', + ], + + ], + + ], + + 'filament' => [ + + 'links' => [ + + 'documentation' => [ + 'label' => '查看文档', + ], + + 'repository' => [ + 'label' => '访问仓库', + ], + + ], + + ], + + ], + +]; diff --git a/resources/lang/zh-CN/edit-account.php b/resources/lang/zh-CN/edit-account.php new file mode 100644 index 0000000000..a694ace45f --- /dev/null +++ b/resources/lang/zh-CN/edit-account.php @@ -0,0 +1,19 @@ + [ + + 'save' => [ + 'label' => '保存', + ], + + ], + + 'messages' => [ + 'saved' => '保存成功!', + ], + + 'title' => '账户', + +]; diff --git a/resources/lang/zh-CN/layout.php b/resources/lang/zh-CN/layout.php new file mode 100644 index 0000000000..2124db9195 --- /dev/null +++ b/resources/lang/zh-CN/layout.php @@ -0,0 +1,7 @@ + 'ltr', + +]; diff --git a/resources/lang/zh-CN/nav.php b/resources/lang/zh-CN/nav.php new file mode 100644 index 0000000000..07d1f60e6c --- /dev/null +++ b/resources/lang/zh-CN/nav.php @@ -0,0 +1,17 @@ + [ + + 'account' => [ + 'label' => '个人信息', + ], + + 'users' => [ + 'label' => '管理用户', + ], + + ], + +]; diff --git a/resources/lang/zh-CN/resources/pages/create-record.php b/resources/lang/zh-CN/resources/pages/create-record.php new file mode 100644 index 0000000000..e629ce8139 --- /dev/null +++ b/resources/lang/zh-CN/resources/pages/create-record.php @@ -0,0 +1,25 @@ + [ + + 'cancel' => [ + 'label' => '取消', + ], + + 'create' => [ + 'label' => '添加', + ], + + 'createAnother' => [ + 'label' => '添加 & 添加下一个', + ], + + ], + + 'messages' => [ + 'created' => '添加成功!', + ], + +]; diff --git a/resources/lang/zh-CN/resources/pages/edit-record.php b/resources/lang/zh-CN/resources/pages/edit-record.php new file mode 100644 index 0000000000..53f20884b3 --- /dev/null +++ b/resources/lang/zh-CN/resources/pages/edit-record.php @@ -0,0 +1,49 @@ + [ + + 'cancel' => [ + 'label' => '取消', + ], + + 'delete' => [ + 'label' => '删除', + ], + + 'save' => [ + 'label' => '保存', + ], + + ], + + 'modals' => [ + + 'delete' => [ + + 'buttons' => [ + + 'cancel' => [ + 'label' => '取消', + ], + + 'confirm' => [ + 'label' => '确定', + ], + + ], + + 'description' => '您确定要删除此记录吗?这一操作不能取消.', + + 'heading' => '删除这个记录?', + + ], + + ], + + 'messages' => [ + 'saved' => '保存成功!', + ], + +]; diff --git a/resources/lang/zh-CN/resources/pages/list-records.php b/resources/lang/zh-CN/resources/pages/list-records.php new file mode 100644 index 0000000000..d3babc18bb --- /dev/null +++ b/resources/lang/zh-CN/resources/pages/list-records.php @@ -0,0 +1,25 @@ + [ + + 'create' => [ + 'label' => '添加', + ], + + ], + + 'table' => [ + + 'recordActions' => [ + + 'edit' => [ + 'label' => '编辑', + ], + + ], + + ], + +]; diff --git a/resources/lang/zh-CN/resources/relation-manager.php b/resources/lang/zh-CN/resources/relation-manager.php new file mode 100644 index 0000000000..5e64f1e368 --- /dev/null +++ b/resources/lang/zh-CN/resources/relation-manager.php @@ -0,0 +1,131 @@ + [ + + 'attach' => [ + 'label' => '绑定', + ], + + 'create' => [ + 'label' => '添加', + ], + + 'detach' => [ + 'label' => '解绑所选', + ], + + ], + + 'modals' => [ + + 'attach' => [ + + 'buttons' => [ + + 'cancel' => [ + 'label' => '取消', + ], + + 'attach' => [ + 'label' => '绑定', + ], + + 'attachAnother' => [ + 'label' => '绑定 & 绑定下一个', + ], + + ], + + 'form' => [ + + 'related' => [ + 'placeholder' => '搜索...', + ], + + ], + + 'heading' => '绑定', + + 'messages' => [ + 'attached' => '绑定成功!', + ], + + ], + + 'create' => [ + + 'buttons' => [ + + 'cancel' => [ + 'label' => '取消', + ], + + 'create' => [ + 'label' => '添加', + ], + + 'createAnother' => [ + 'label' => '添加 & 添加下一个', + ], + + ], + + 'heading' => '添加', + + 'messages' => [ + 'created' => '添加成功!', + ], + + ], + + 'detach' => [ + + 'buttons' => [ + + 'cancel' => [ + 'label' => '取消', + ], + + 'detach' => [ + 'label' => '解绑所选', + ], + + ], + + 'description' => '您确定要解绑选定的记录吗?这一操作不能取消.', + + 'heading' => '解绑所选的数据? ', + + 'messages' => [ + 'detached' => '解绑成功!', + ], + + ], + + 'edit' => [ + + 'buttons' => [ + + 'cancel' => [ + 'label' => '取消', + ], + + 'save' => [ + 'label' => '保存', + ], + + ], + + 'heading' => '编辑', + + 'messages' => [ + 'saved' => '保存成功!', + ], + + ], + + ], + +]; diff --git a/resources/lang/zh-CN/resources/user-resource.php b/resources/lang/zh-CN/resources/user-resource.php new file mode 100644 index 0000000000..8be7adecbe --- /dev/null +++ b/resources/lang/zh-CN/resources/user-resource.php @@ -0,0 +1,84 @@ + [ + + 'avatar' => [ + 'label' => '头像', + ], + + 'email' => [ + 'label' => '邮箱地址', + ], + + 'isAdmin' => [ + 'label' => '是否为Filament管理员?', + 'helpMessage' => 'Filament管理员能够访问的所有页面,并管理其他用户.', + ], + + 'isUser' => [ + 'label' => '是否为Filament用户?', + ], + + 'name' => [ + 'label' => '用户名', + ], + + 'password' => [ + + 'fieldset' => [ + + 'label' => [ + 'create' => '密码', + 'edit' => '设置一个新密码', + ], + + ], + + 'fields' => [ + + 'password' => [ + 'label' => '密码', + ], + + 'passwordConfirmation' => [ + 'label' => '确认密码', + ], + + ], + + ], + + 'roles' => [ + 'label' => '角色', + 'placeholder' => '选择一个角色', + ], + + ], + + 'table' => [ + + 'columns' => [ + + 'email' => [ + 'label' => '邮箱地址', + ], + + 'name' => [ + 'label' => '用户名', + ], + + ], + + 'filters' => [ + + 'administrators' => [ + 'label' => '管理员', + ], + + ], + + ], + +];