From f8279384a67c7e0e69e64f10464fe820bb3d823f Mon Sep 17 00:00:00 2001 From: jzoy Date: Tue, 19 Nov 2019 18:22:23 +0800 Subject: [PATCH 1/3] Simplified Chinese Translation Update --- resources/lang/zh_CN/auth.php | 20 +++++----- resources/lang/zh_CN/common.php | 28 +++++++------- resources/lang/zh_CN/entities.php | 48 +++++++++++------------ resources/lang/zh_CN/errors.php | 6 +-- resources/lang/zh_CN/settings.php | 60 ++++++++++++++--------------- resources/lang/zh_CN/validation.php | 48 +++++++++++------------ 6 files changed, 105 insertions(+), 105 deletions(-) diff --git a/resources/lang/zh_CN/auth.php b/resources/lang/zh_CN/auth.php index 62cd0c243..3cba7cb19 100644 --- a/resources/lang/zh_CN/auth.php +++ b/resources/lang/zh_CN/auth.php @@ -26,8 +26,8 @@ return [ 'remember_me' => '记住我', 'ldap_email_hint' => '请输入用于此帐户的电子邮件。', 'create_account' => '创建账户', - 'already_have_account' => 'Already have an account?', - 'dont_have_account' => 'Don\'t have an account?', + 'already_have_account' => '已有账号?', + 'dont_have_account' => '尚未注册账号?', 'social_login' => 'SNS登录', 'social_registration' => 'SNS注册', 'social_registration_text' => '其他服务注册/登录.', @@ -66,12 +66,12 @@ return [ 'email_not_confirmed_resend_button' => '重新发送确认Email', // User Invite - 'user_invite_email_subject' => 'You have been invited to join :appName!', - 'user_invite_email_greeting' => 'An account has been created for you on :appName.', - 'user_invite_email_text' => 'Click the button below to set an account password and gain access:', - 'user_invite_email_action' => 'Set Account Password', - 'user_invite_page_welcome' => 'Welcome to :appName!', - 'user_invite_page_text' => 'To finalise your account and gain access you need to set a password which will be used to log-in to :appName on future visits.', - 'user_invite_page_confirm_button' => 'Confirm Password', - 'user_invite_success' => 'Password set, you now have access to :appName!' + 'user_invite_email_subject' => '邀请您加入 :appName!', + 'user_invite_email_greeting' => '已为您创建 :appName 账户', + 'user_invite_email_text' => '点击下方按钮设置您的账户密码,以便获取访问权限。', + 'user_invite_email_action' => '设置登陆密码', + 'user_invite_page_welcome' => '欢迎访问 :appName!', + 'user_invite_page_text' => '请输入密码以便完成账号注册,并获取 :appName 的访问权限。', + 'user_invite_page_confirm_button' => '确认密码', + 'user_invite_success' => '密码设置成功,您可以注册访问 :appName!' ]; \ No newline at end of file diff --git a/resources/lang/zh_CN/common.php b/resources/lang/zh_CN/common.php index 04a826e6f..72dc64b7e 100644 --- a/resources/lang/zh_CN/common.php +++ b/resources/lang/zh_CN/common.php @@ -11,7 +11,7 @@ return [ 'save' => '保存', 'continue' => '继续', 'select' => '选择', - 'toggle_all' => 'Toggle All', + 'toggle_all' => '全选', 'more' => '更多', // Form Labels @@ -24,7 +24,7 @@ return [ // Actions 'actions' => '操作', 'view' => '浏览', - 'view_all' => 'View All', + 'view_all' => '查看全部', 'create' => '创建', 'update' => '更新', 'edit' => '编辑', @@ -40,13 +40,13 @@ return [ 'add' => '添加', // Sort Options - 'sort_options' => 'Sort Options', - 'sort_direction_toggle' => 'Sort Direction Toggle', - 'sort_ascending' => 'Sort Ascending', - 'sort_descending' => 'Sort Descending', - 'sort_name' => 'Name', - 'sort_created_at' => 'Created Date', - 'sort_updated_at' => 'Updated Date', + 'sort_options' => '排序选项', + 'sort_direction_toggle' => '切换排序方式', + 'sort_ascending' => '升序', + 'sort_descending' => '降序', + 'sort_name' => '名称', + 'sort_created_at' => '创建日期', + 'sort_updated_at' => '更新日期', // Misc 'deleted_user' => '删除用户', @@ -59,18 +59,18 @@ return [ 'grid_view' => '网格视图', 'list_view' => '列表视图', 'default' => '默认', - 'breadcrumb' => 'Breadcrumb', + 'breadcrumb' => '面包屑布局', // Header - 'profile_menu' => 'Profile Menu', + 'profile_menu' => '资料菜单', 'view_profile' => '查看资料', 'edit_profile' => '编辑资料', // Layout tabs - 'tab_info' => 'Info', - 'tab_content' => 'Content', + 'tab_info' => '信息', + 'tab_content' => '内容', // Email Content 'email_action_help' => '如果您无法点击“:actionText”按钮,请将下面的网址复制到您的浏览器中打开:', - 'email_rights' => 'All rights reserved', + 'email_rights' => '版权所有', ]; diff --git a/resources/lang/zh_CN/entities.php b/resources/lang/zh_CN/entities.php index 04e8e25bc..864b184b7 100644 --- a/resources/lang/zh_CN/entities.php +++ b/resources/lang/zh_CN/entities.php @@ -11,7 +11,7 @@ return [ 'recently_updated_pages' => '最新页面', 'recently_created_chapters' => '最近创建的章节', 'recently_created_books' => '最近创建的图书', - 'recently_created_shelves' => 'Recently Created Shelves', + 'recently_created_shelves' => '最近创建的书架', 'recently_update' => '最近更新', 'recently_viewed' => '最近查看', 'recent_activity' => '近期活动', @@ -74,7 +74,7 @@ return [ 'shelves_create' => '创建新书架', 'shelves_popular' => '热门书架', 'shelves_new' => '新书架', - 'shelves_new_action' => 'New Shelf', + 'shelves_new_action' => '新建书架', 'shelves_popular_empty' => '最热门的书架', 'shelves_new_empty' => '最新创建的书架', 'shelves_save' => '保存书架', @@ -105,7 +105,7 @@ return [ 'books_popular' => '热门图书', 'books_recent' => '最近的书', 'books_new' => '新书', - 'books_new_action' => 'New Book', + 'books_new_action' => '新建图书', 'books_popular_empty' => '最受欢迎的图书将出现在这里。', 'books_new_empty' => '最近创建的图书将出现在这里。', 'books_create' => '创建图书', @@ -128,11 +128,11 @@ return [ 'books_navigation' => '图书导航', 'books_sort' => '排序图书内容', 'books_sort_named' => '排序图书「:bookName」', - 'books_sort_name' => 'Sort by Name', - 'books_sort_created' => 'Sort by Created Date', - 'books_sort_updated' => 'Sort by Updated Date', - 'books_sort_chapters_first' => 'Chapters First', - 'books_sort_chapters_last' => 'Chapters Last', + 'books_sort_name' => '按名称排序', + 'books_sort_created' => '按创建日期排序', + 'books_sort_updated' => '按更新日期排序', + 'books_sort_chapters_first' => '章节在前', + 'books_sort_chapters_last' => '章节在后', 'books_sort_show_other' => '显示其他图书', 'books_sort_save' => '保存新顺序', @@ -176,7 +176,7 @@ return [ 'pages_delete_confirm' => '您确定要删除此页面吗?', 'pages_delete_draft_confirm' => '您确定要删除此草稿页面吗?', 'pages_editing_named' => '正在编辑页面“:pageName”', - 'pages_edit_draft_options' => 'Draft Options', + 'pages_edit_draft_options' => '草稿选项', 'pages_edit_save_draft' => '保存草稿', 'pages_edit_draft' => '编辑页面草稿', 'pages_editing_draft' => '正在编辑草稿', @@ -210,8 +210,8 @@ return [ 'pages_revisions_created_by' => '创建者', 'pages_revisions_date' => '修订日期', 'pages_revisions_number' => '#', - 'pages_revisions_numbered' => 'Revision #:id', - 'pages_revisions_numbered_changes' => 'Revision #:id Changes', + 'pages_revisions_numbered' => '修订编号 #:id', + 'pages_revisions_numbered_changes' => '修订编号 #:id 内容', 'pages_revisions_changelog' => '更新说明', 'pages_revisions_changes' => '说明', 'pages_revisions_current' => '当前版本', @@ -234,7 +234,7 @@ return [ ], 'pages_draft_discarded' => '草稿已丢弃,编辑器已更新到当前页面内容。', 'pages_specific' => '具体页面', - 'pages_is_template' => 'Page Template', + 'pages_is_template' => '页面模板', // Editor Sidebar 'page_tags' => '页面标签', @@ -243,14 +243,14 @@ return [ 'shelf_tags' => '书架标签', 'tag' => '标签', 'tags' => '标签', - 'tag_name' => 'Tag Name', - 'tag_value' => '标签值 (Optional)', + 'tag_name' => '标签名称', + 'tag_value' => '标签值 (非必填)', 'tags_explain' => "添加一些标签以更好地对您的内容进行分类。\n您可以为标签分配一个值,以进行更深入的组织。", 'tags_add' => '添加另一个标签', - 'tags_remove' => 'Remove this tag', + 'tags_remove' => '删除标签', 'attachments' => '附件', 'attachments_explain' => '上传一些文件或附加一些链接显示在您的网页上。这些在页面的侧边栏中可见。', - 'attachments_explain_instant_save' => '这里的更改将立即保存。Changes here are saved instantly.', + 'attachments_explain_instant_save' => '这里的更改将立即保存。', 'attachments_items' => '附加项目', 'attachments_upload' => '上传文件', 'attachments_link' => '附加链接', @@ -273,12 +273,12 @@ return [ 'attachments_file_uploaded' => '附件上传成功', 'attachments_file_updated' => '附件更新成功', 'attachments_link_attached' => '链接成功附加到页面', - 'templates' => 'Templates', - 'templates_set_as_template' => 'Page is a template', - 'templates_explain_set_as_template' => 'You can set this page as a template so its contents be utilized when creating other pages. Other users will be able to use this template if they have view permissions for this page.', - 'templates_replace_content' => 'Replace page content', - 'templates_append_content' => 'Append to page content', - 'templates_prepend_content' => 'Prepend to page content', + 'templates' => '模板', + 'templates_set_as_template' => '将此页面设置为模板', + 'templates_explain_set_as_template' => '您可将此页面设置为模板,创建新页面时可以引用此模板页面的内容。其他用户在权限允许的条件下,也可在创建页面时引用此模板内容。', + 'templates_replace_content' => '替换页面现有内容', + 'templates_append_content' => '添加至现有内容之后', + 'templates_prepend_content' => '添加至现有内容之前', // Profile View 'profile_user_for_x' => '来这里:time了', @@ -286,7 +286,7 @@ return [ 'profile_not_created_pages' => ':userName尚未创建任何页面', 'profile_not_created_chapters' => ':userName尚未创建任何章节', 'profile_not_created_books' => ':userName尚未创建任何图书', - 'profile_not_created_shelves' => ':userName has not created any shelves', + 'profile_not_created_shelves' => ':userName尚未创建任何书架', // Comments 'comment' => '评论', @@ -308,7 +308,7 @@ return [ // Revision 'revision_delete_confirm' => '您确定要删除此修订版吗?', - 'revision_restore_confirm' => 'Are you sure you want to restore this revision? The current page contents will be replaced.', + 'revision_restore_confirm' => '您确定要恢复到此修订版吗?恢复后原有内容将会被替换。', 'revision_delete_success' => '修订删除', 'revision_cannot_delete_latest' => '无法删除最新版本。' ]; \ No newline at end of file diff --git a/resources/lang/zh_CN/errors.php b/resources/lang/zh_CN/errors.php index f500a58dc..17ed09c4e 100644 --- a/resources/lang/zh_CN/errors.php +++ b/resources/lang/zh_CN/errors.php @@ -27,14 +27,14 @@ return [ 'social_account_register_instructions' => '如果您还没有帐户,您可以使用 :socialAccount 选项注册账户。', 'social_driver_not_found' => '未找到社交驱动程序', 'social_driver_not_configured' => '您的:socialAccount社交设置不正确。', - 'invite_token_expired' => 'This invitation link has expired. You can instead try to reset your account password.', + 'invite_token_expired' => '邀请链接已经过期,您可以尝试使用“忘记密码”功能来重新获取链接,以便激活账号。', // System 'path_not_writable' => '无法上传到文件路径“:filePath”,请确保它可写入服务器。', 'cannot_get_image_from_url' => '无法从 :url 中获取图片', 'cannot_create_thumbs' => '服务器无法创建缩略图,请检查您是否安装了GD PHP扩展。', 'server_upload_limit' => '服务器不允许上传此大小的文件。 请尝试较小的文件。', - 'uploaded' => 'The server does not allow uploads of this size. Please try a smaller file size.', + 'uploaded' => '服务器不允许上传此大小的文件。 请尝试较小的文件。', 'image_upload_error' => '上传图片时发生错误', 'image_upload_type_error' => '上传的图像类型无效', 'file_upload_timeout' => '文件上传已超时。', @@ -65,7 +65,7 @@ return [ 'role_cannot_be_edited' => '无法编辑该角色', 'role_system_cannot_be_deleted' => '无法删除系统角色', 'role_registration_default_cannot_delete' => '无法删除设置为默认注册的角色', - 'role_cannot_remove_only_admin' => 'This user is the only user assigned to the administrator role. Assign the administrator role to another user before attempting to remove it here.', + 'role_cannot_remove_only_admin' => '当前系统中只有一个管理员账号,在删除此帐号前,请先设置一个新的账号为管理员。', // Comments 'comment_list' => '提取评论时出现错误。', diff --git a/resources/lang/zh_CN/settings.php b/resources/lang/zh_CN/settings.php index bc489376c..dde3cd7f7 100755 --- a/resources/lang/zh_CN/settings.php +++ b/resources/lang/zh_CN/settings.php @@ -12,43 +12,43 @@ return [ 'settings_save_success' => '设置已保存', // App Settings - 'app_customization' => 'Customization', - 'app_features_security' => 'Features & Security', - 'app_name' => 'App名', + 'app_customization' => '自定义设置', + 'app_features_security' => '安全设置', + 'app_name' => '网站名称', 'app_name_desc' => '此名称将在网页头部和Email中显示。', 'app_name_header' => '在网页头部显示应用名?', - 'app_public_access' => 'Public Access', - 'app_public_access_desc' => 'Enabling this option will allow visitors, that are not logged-in, to access content in your BookStack instance.', - 'app_public_access_desc_guest' => 'Access for public visitors can be controlled through the "Guest" user.', - 'app_public_access_toggle' => 'Allow public access', + 'app_public_access' => '访问权限', + 'app_public_access_desc' => '激活此选项将允许未注册用户访问网站并查看内容。', + 'app_public_access_desc_guest' => '您可以通过修改“Guest”角色权限控制未登录用户的访问范围和权限。', + 'app_public_access_toggle' => '允许公开访问权限', 'app_public_viewing' => '允许公众查看?', 'app_secure_images' => '启用更高安全性的图片上传?', - 'app_secure_images_toggle' => 'Enable higher security image uploads', + 'app_secure_images_toggle' => '启用更高安全性的图片上传', 'app_secure_images_desc' => '出于性能原因,所有图像都是公开的。这个选项会在图像的网址前添加一个随机的,难以猜测的字符串,从而使直接访问变得困难。', 'app_editor' => '页面编辑器', 'app_editor_desc' => '选择所有用户将使用哪个编辑器来编辑页面。', 'app_custom_html' => '自定义HTML头部内容', 'app_custom_html_desc' => '此处添加的任何内容都将插入到每个页面的部分的底部,这对于覆盖样式或添加分析代码很方便。', - 'app_custom_html_disabled_notice' => 'Custom HTML head content is disabled on this settings page to ensure any breaking changes can be reverted.', - 'app_logo' => 'App Logo', + 'app_custom_html_disabled_notice' => '“自定义HTML头部内容”保存后立即生效,但为了方防止代码冲突,本设置页面将不会启动自定义代码,您可查看其他页面以便确认效果。', + 'app_logo' => '网站图标', 'app_logo_desc' => '这个图片的高度应该为43px。
大图片将会被缩小。', - 'app_primary_color' => 'App主色', + 'app_primary_color' => '网站主色', 'app_primary_color_desc' => '这应该是一个十六进制值。
保留为空以重置为默认颜色。', - 'app_homepage' => 'App主页', + 'app_homepage' => '网站主页', 'app_homepage_desc' => '选择要在主页上显示的页面来替换默认的视图,选定页面的访问权限将被忽略。', - 'app_homepage_select' => 'Select a page', + 'app_homepage_select' => '选择页面', 'app_disable_comments' => '禁用评论', - 'app_disable_comments_toggle' => 'Disable comments', + 'app_disable_comments_toggle' => '禁用评论', 'app_disable_comments_desc' => '在App的所有页面上禁用评论,现有评论也不会显示出来。', // Registration Settings 'reg_settings' => '注册设置', - 'reg_enable' => 'Enable Registration', - 'reg_enable_toggle' => 'Enable registration', - 'reg_enable_desc' => 'When registration is enabled user will be able to sign themselves up as an application user. Upon registration they are given a single, default user role.', + 'reg_enable' => '允许注册', + 'reg_enable_toggle' => '允许访客注册', + 'reg_enable_desc' => '激活此选项将允许访客自行注册账号并登陆,访客注册后将自动设置为默认角色。', 'reg_default_role' => '注册后的默认用户角色', - 'reg_email_confirmation' => 'Email Confirmation', - 'reg_email_confirmation_toggle' => 'Require email confirmation', + 'reg_email_confirmation' => 'Email验证', + 'reg_email_confirmation_toggle' => '注册时需进行Email验证', 'reg_confirm_email_desc' => '如果使用域名限制,则需要Email验证,并且该值将被忽略。', 'reg_confirm_restrict_domain' => '域名限制', 'reg_confirm_restrict_domain_desc' => '输入您想要限制注册的Email域名列表,用逗号隔开。在被允许与应用程序交互之前,用户将被发送一封Email来确认他们的地址。
注意用户在注册成功后可以修改他们的Email地址。', @@ -85,7 +85,7 @@ return [ 'role_manage_roles' => '管理角色与角色权限', 'role_manage_entity_permissions' => '管理所有图书,章节和页面的权限', 'role_manage_own_entity_permissions' => '管理自己的图书,章节和页面的权限', - 'role_manage_page_templates' => 'Manage page templates', + 'role_manage_page_templates' => '管理页面模板', 'role_manage_settings' => '管理App设置', 'role_asset' => '资源许可', 'role_asset_desc' => '对系统内资源的默认访问许可将由这些权限控制。单独设置在书籍,章节和页面上的权限将覆盖这里的权限设定。', @@ -103,17 +103,17 @@ return [ 'user_profile' => '用户资料', 'users_add_new' => '添加用户', 'users_search' => '搜索用户', - 'users_details' => 'User Details', - 'users_details_desc' => 'Set a display name and an email address for this user. The email address will be used for logging into the application.', - 'users_details_desc_no_email' => 'Set a display name for this user so others can recognise them.', + 'users_details' => '用户信息', + 'users_details_desc' => '设置用户显示的名称及Email地址,Email地址将用于用户登陆。', + 'users_details_desc_no_email' => '设置用户头像', 'users_role' => '用户角色', - 'users_role_desc' => 'Select which roles this user will be assigned to. If a user is assigned to multiple roles the permissions from those roles will stack and they will receive all abilities of the assigned roles.', - 'users_password' => 'User Password', - 'users_password_desc' => 'Set a password used to log-in to the application. This must be at least 6 characters long.', - 'users_send_invite_text' => 'You can choose to send this user an invitation email which allows them to set their own password otherwise you can set their password yourself.', - 'users_send_invite_option' => 'Send user invite email', + 'users_role_desc' => '选择用户的角色,当用户被赋予多个角色时,用户的权限将采用累加的方式,同时获得被赋予角色的所有权限。', + 'users_password' => '用户密码', + 'users_password_desc' => '设置登陆密码,密码长度必须大于6位。', + 'users_send_invite_text' => '您可以选择下方的“发送邀请邮件”,系统将自动发送一封含有注册链接的邮件,用户点击后可自行设置登陆密码。取消“发送邀请邮件”选项时您可以自行设置该用户的登陆密码。', + 'users_send_invite_option' => '发送邀请邮件', 'users_external_auth_id' => '外部身份认证ID', - 'users_external_auth_id_desc' => 'This is the ID used to match this user when communicating with your LDAP system.', + 'users_external_auth_id_desc' => '这是用户ID,用于与LDAP系统通信。', 'users_password_warning' => '如果您想更改密码,请填写以下内容:', 'users_system_public' => '此用户代表访问您的App的任何访客。它不能用于登录,而是自动分配。', 'users_delete' => '删除用户', @@ -127,7 +127,7 @@ return [ 'users_avatar' => '用户头像', 'users_avatar_desc' => '当前图片应该为约256px的正方形。', 'users_preferred_language' => '语言', - 'users_preferred_language_desc' => 'This option will change the language used for the user-interface of the application. This will not affect any user-created content.', + 'users_preferred_language_desc' => '此选项可更改用户界面显示的语言,但不会影响任何用户自己创建的内容。', 'users_social_accounts' => '社交账户', 'users_social_accounts_info' => '在这里,您可以绑定您的其他帐户,以便更快更轻松地登录。如果您选择解除绑定,之后将不能通过此社交账户登录,请设置社交账户来取消本App的访问权限。', 'users_social_connect' => '绑定账户', diff --git a/resources/lang/zh_CN/validation.php b/resources/lang/zh_CN/validation.php index e328f6c38..4abed965c 100644 --- a/resources/lang/zh_CN/validation.php +++ b/resources/lang/zh_CN/validation.php @@ -30,40 +30,40 @@ return [ 'digits' => ':attribute 必须为:digits位数。', 'digits_between' => ':attribute 必须为:min到:max位数。', 'email' => ':attribute 必须是有效的电子邮件地址。', - 'ends_with' => 'The :attribute must end with one of the following: :values', + 'ends_with' => ':attribute 必须以其中一个为结尾: :values', 'filled' => ':attribute 字段是必需的。', 'gt' => [ - 'numeric' => 'The :attribute must be greater than :value.', - 'file' => 'The :attribute must be greater than :value kilobytes.', - 'string' => 'The :attribute must be greater than :value characters.', - 'array' => 'The :attribute must have more than :value items.', + 'numeric' => ':attribute 必须大于: :value.', + 'file' => ':attribute 必须大于: :value kilobytes.', + 'string' => ':attribute 必须大于: :value characters.', + 'array' => ':attribute 包含内容必须多余: :value items.', ], 'gte' => [ - 'numeric' => 'The :attribute must be greater than or equal :value.', - 'file' => 'The :attribute must be greater than or equal :value kilobytes.', - 'string' => 'The :attribute must be greater than or equal :value characters.', - 'array' => 'The :attribute must have :value items or more.', + 'numeric' => ':attribute 必须大于或等于: :value.', + 'file' => ':attribute 必须大于或等于: :value kilobytes.', + 'string' => ':attribute 必须大于或等于: :value characters.', + 'array' => ':attribute 包含内容必须等于或多余: :value items', ], 'exists' => '选中的 :attribute 无效。', 'image' => ':attribute 必须是一个图片。', - 'image_extension' => 'The :attribute must have a valid & supported image extension.', + 'image_extension' => ':attribute 必须是系统允许的图片格式', 'in' => '选中的 :attribute 无效。', 'integer' => ':attribute 必须是一个整数。', 'ip' => ':attribute 必须是一个有效的IP地址。', - 'ipv4' => 'The :attribute must be a valid IPv4 address.', - 'ipv6' => 'The :attribute must be a valid IPv6 address.', - 'json' => 'The :attribute must be a valid JSON string.', + 'ipv4' => ':attribute 必须是一个有效的IP4地址。', + 'ipv6' => ':attribute 必须是一个有效的IP6地址。', + 'json' => ':attribute 必须是一个有效的JSON字符串。', 'lt' => [ - 'numeric' => 'The :attribute must be less than :value.', - 'file' => 'The :attribute must be less than :value kilobytes.', - 'string' => 'The :attribute must be less than :value characters.', - 'array' => 'The :attribute must have less than :value items.', + 'numeric' => ':attribute 必须小于 :value.', + 'file' => ':attribute 必须小于 :value kilobytes.', + 'string' => ':attribute 必须小于 :value characters.', + 'array' => ':attribute 包含内容必须少于: :value items.', ], 'lte' => [ - 'numeric' => 'The :attribute must be less than or equal :value.', - 'file' => 'The :attribute must be less than or equal :value kilobytes.', - 'string' => 'The :attribute must be less than or equal :value characters.', - 'array' => 'The :attribute must not have more than :value items.', + 'numeric' => ':attribute 必须小于或等于: :value.', + 'file' => ':attribute 必须小于或等于: :value kilobytes.', + 'string' => ':attribute 必须小于或等于: :value characters.', + 'array' => ':attribute 包含内容必须不多于: :value items.', ], 'max' => [ 'numeric' => ':attribute 不能超过:max。', @@ -78,9 +78,9 @@ return [ 'string' => ':attribute 至少为:min个字符。', 'array' => ':attribute 至少有:min项。', ], - 'no_double_extension' => 'The :attribute must only have a single file extension.', + 'no_double_extension' => ':attribute 只能有一个文件扩展名', 'not_in' => '选中的 :attribute 无效。', - 'not_regex' => 'The :attribute format is invalid.', + 'not_regex' => ':attribute 格式错误。', 'numeric' => ':attribute 必须是一个数。', 'regex' => ':attribute 格式无效。', 'required' => ':attribute 字段是必需的。', @@ -100,7 +100,7 @@ return [ 'timezone' => ':attribute 必须是有效的区域。', 'unique' => ':attribute 已经被使用。', 'url' => ':attribute 格式无效。', - 'uploaded' => 'The file could not be uploaded. The server may not accept files of this size.', + 'uploaded' => '文件大小超过服务器设置,上传失败。', // Custom validation lines 'custom' => [ From b3889c380aa249e061986a3529b083affd73f538 Mon Sep 17 00:00:00 2001 From: jzoy Date: Wed, 11 Dec 2019 19:24:18 +0800 Subject: [PATCH 2/3] Update entities.php --- resources/lang/zh_CN/entities.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lang/zh_CN/entities.php b/resources/lang/zh_CN/entities.php index 864b184b7..9a8baab9c 100644 --- a/resources/lang/zh_CN/entities.php +++ b/resources/lang/zh_CN/entities.php @@ -68,7 +68,7 @@ return [ // Shelves 'shelf' => '书架', 'shelves' => '书架', - 'x_shelves' => ':count Shelf|:count Shelves', + 'x_shelves' => ':count 书架|:count 书架', 'shelves_long' => '书架', 'shelves_empty' => '当前未创建书架', 'shelves_create' => '创建新书架', @@ -311,4 +311,4 @@ return [ 'revision_restore_confirm' => '您确定要恢复到此修订版吗?恢复后原有内容将会被替换。', 'revision_delete_success' => '修订删除', 'revision_cannot_delete_latest' => '无法删除最新版本。' -]; \ No newline at end of file +]; From 7f0dbf350ecd955c7e05ebc428098a6ac3dbc530 Mon Sep 17 00:00:00 2001 From: jzoy Date: Wed, 11 Dec 2019 20:03:32 +0800 Subject: [PATCH 3/3] Update entities.php --- resources/lang/zh_CN/entities.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lang/zh_CN/entities.php b/resources/lang/zh_CN/entities.php index 9a8baab9c..ba1c347d4 100644 --- a/resources/lang/zh_CN/entities.php +++ b/resources/lang/zh_CN/entities.php @@ -68,7 +68,7 @@ return [ // Shelves 'shelf' => '书架', 'shelves' => '书架', - 'x_shelves' => ':count 书架|:count 书架', + 'x_shelves' => ':count个书架|:count个书架', 'shelves_long' => '书架', 'shelves_empty' => '当前未创建书架', 'shelves_create' => '创建新书架',