From 5a1da3a353d7273b6cca7088eaf67158a882e932 Mon Sep 17 00:00:00 2001 From: Tianjiu <84212214+T1anjiu@users.noreply.github.com> Date: Wed, 7 Feb 2024 21:26:51 +0800 Subject: [PATCH] Add files via upload --- server/resources/lang/zh-CN/account.php | 28 ++++ server/resources/lang/zh-CN/auth.php | 18 +++ server/resources/lang/zh-CN/pagination.php | 19 +++ server/resources/lang/zh-CN/passwords.php | 22 +++ server/resources/lang/zh-CN/validation.php | 151 +++++++++++++++++++++ 5 files changed, 238 insertions(+) create mode 100644 server/resources/lang/zh-CN/account.php create mode 100644 server/resources/lang/zh-CN/pagination.php create mode 100644 server/resources/lang/zh-CN/passwords.php create mode 100644 server/resources/lang/zh-CN/validation.php diff --git a/server/resources/lang/zh-CN/account.php b/server/resources/lang/zh-CN/account.php new file mode 100644 index 0000000..e6d9d4d --- /dev/null +++ b/server/resources/lang/zh-CN/account.php @@ -0,0 +1,28 @@ + +*/ + +return [ + 'registration' => '注册', + 'registrationMessage' => '感谢您在 :url 上创建帐户,请使用您的凭据登录。', + 'resetPassword' => '重置您的密码', + 'resetPasswordMessage' => '使用以下密码登录您的帐户,请尽快登录后更改您的密码。', + 'resetPasswordPreheader' => '此邮件包含您的新密码。请使用它登录并为您的帐户设置一个新密码。', +]; diff --git a/server/resources/lang/zh-CN/auth.php b/server/resources/lang/zh-CN/auth.php index 8b13789..c42aa14 100644 --- a/server/resources/lang/zh-CN/auth.php +++ b/server/resources/lang/zh-CN/auth.php @@ -1 +1,19 @@ + '信息不匹配。', + 'throttle' => '登录尝试过多。 请在 :seconds 秒后重试。', + +]; diff --git a/server/resources/lang/zh-CN/pagination.php b/server/resources/lang/zh-CN/pagination.php new file mode 100644 index 0000000..8df3a20 --- /dev/null +++ b/server/resources/lang/zh-CN/pagination.php @@ -0,0 +1,19 @@ + '« 上一页', + 'next' => '下一页 »', + +]; diff --git a/server/resources/lang/zh-CN/passwords.php b/server/resources/lang/zh-CN/passwords.php new file mode 100644 index 0000000..a11533a --- /dev/null +++ b/server/resources/lang/zh-CN/passwords.php @@ -0,0 +1,22 @@ + '密码重置成功!', + 'sent' => '我们给你发送了一封密码重置邮件!', + 'throttled' => '请等待一段时间后重试。', + 'token' => '重置链接失效,请重新获取。', + 'user' => "我们找不到使该电子邮件地址的用户。", + +]; diff --git a/server/resources/lang/zh-CN/validation.php b/server/resources/lang/zh-CN/validation.php new file mode 100644 index 0000000..4e7bb0e --- /dev/null +++ b/server/resources/lang/zh-CN/validation.php @@ -0,0 +1,151 @@ + '必须接受 :attribute。', + 'active_url' => ':attribute 不是一个有效的 URL。', + 'after' => ':attribute 必须是 :date 之后的一个日期。', + 'after_or_equal' => ':attribute 必须是 :date 之后或相等的一个日期。', + 'alpha' => ':attribute 只能包含字母。', + 'alpha_dash' => ':attribute 只能包含字母、数字、短划线和下划线。', + 'alpha_num' => ':attribute 只能包含字母和数字。', + 'array' => ':attribute 必须是一个数组。', + 'before' => ':attribute 必须是 :date 之前的一个日期。', + 'before_or_equal' => ':attribute 必须是 :date 之前或相等的一个日期。', + 'between' => [ + 'numeric' => ':attribute 必须介于 :min 和 :max 之间。', + 'file' => ':attribute 必须介于 :min 和 :max 千字节之间。', + 'string' => ':attribute 必须介于 :min 和 :max 个字符之间。', + 'array' => ':attribute 必须介于 :min 和 :max 项之间。', + ], + 'boolean' => ':attribute 字段必须为 true 或 false。', + 'confirmed' => ':attribute 确认不匹配。', + 'date' => ':attribute 不是一个有效的日期。', + 'date_equals' => ':attribute 必须等于 :date。', + 'date_format' => ':attribute 与格式 :format 不匹配。', + 'different' => ':attribute 和 :other 必须不同。', + 'digits' => ':attribute 必须是 :digits 位数字。', + 'digits_between' => ':attribute 必须介于 :min 和 :max 位数字之间。', + 'dimensions' => ':attribute 具有无效的图像尺寸。', + 'distinct' => ':attribute 字段具有重复值。', + 'email' => ':attribute 必须是一个有效的电子邮件地址。', + 'ends_with' => ':attribute 必须以以下之一结尾: :values。', + 'exists' => '所选的 :attribute 是无效的。', + 'file' => ':attribute 必须是一个文件。', + 'filled' => ':attribute 字段必须有一个值。', + 'gt' => [ + 'numeric' => ':attribute 必须大于 :value。', + 'file' => ':attribute 必须大于 :value 千字节。', + 'string' => ':attribute 必须多于 :value 个字符。', + 'array' => ':attribute 必须多于 :value 项。', + ], + 'gte' => [ + 'numeric' => ':attribute 必须大于或等于 :value。', + 'file' => ':attribute 必须大于或等于 :value 千字节。', + 'string' => ':attribute 必须大于或等于 :value 个字符。', + 'array' => ':attribute 必须至少有 :value 项。', + ], + 'image' => ':attribute 必须是一个图像。', + 'in' => '所选的 :attribute 是无效的。', + 'in_array' => ':attribute 字段不存在于 :other 中。', + 'integer' => ':attribute 必须是一个整数。', + 'ip' => ':attribute 必须是一个有效的 IP 地址。', + 'ipv4' => ':attribute 必须是一个有效的 IPv4 地址。', + 'ipv6' => ':attribute 必须是一个有效的 IPv6 地址。', + 'json' => ':attribute 必须是一个有效的 JSON 字符串。', + 'lt' => [ + 'numeric' => ':attribute 必须小于 :value。', + 'file' => ':attribute 必须小于 :value 千字节。', + 'string' => ':attribute 必须少于 :value 个字符。', + 'array' => ':attribute 必须少于 :value 项。', + ], + 'lte' => [ + 'numeric' => ':attribute 必须小于或等于 :value。', + 'file' => ':attribute 必须小于或等于 :value 千字节。', + 'string' => ':attribute 必须小于或等于 :value 个字符。', + 'array' => ':attribute 不能超过 :value 项。', + ], + 'max' => [ + 'numeric' => ':attribute 不能大于 :max。', + 'file' => ':attribute 不能大于 :max 千字节。', + 'string' => ':attribute 不能大于 :max 个字符。', + 'array' => ':attribute 不能超过 :max 项。', + ], + 'mimes' => ':attribute 必须是文件类型: :values。', + 'mimetypes' => ':attribute 必须是文件类型: :values。', + 'min' => [ + 'numeric' => ':attribute 必须至少为 :min。', + 'file' => ':attribute 必须至少为 :min 千字节。', + 'string' => ':attribute 必须至少为 :min 个字符。', + 'array' => ':attribute 必须至少有 :min 项。', + ], + 'not_in' => '所选的 :attribute 是无效的。', + 'not_regex' => ':attribute 格式无效。', + 'numeric' => ':attribute 必须是一个数字。', + 'password' => '密码不正确。', + 'present' => ':attribute 字段必须存在。', + 'regex' => ':attribute 格式无效。', + 'required' => ':attribute 字段是必填的。', + 'required_if' => '当 :other 是 :value 时,:attribute 字段是必填的。', + 'required_unless' => '除非 :other 在 :values 中,否则 :attribute 字段是必填的。', + 'required_with' => '当 :values 存在时,:attribute 字段是必填的。', + 'required_with_all' => '当 :values 存在时,:attribute 字段是必填的。', + 'required_without' => '当 :values 不存在时,:attribute 字段是必填的。', + 'required_without_all' => '当 :values 都不存在时,:attribute 字段是必填的。', + 'same' => ':attribute 和 :other 必须匹配。', + 'size' => [ + 'numeric' => ':attribute 必须是 :size。', + 'file' => ':attribute 必须是 :size 千字节。', + 'string' => ':attribute 必须是 :size 个字符。', + 'array' => ':attribute 必须包含 :size 项。', + ], + 'starts_with' => ':attribute 必须以以下之一开头: :values。', + 'string' => ':attribute 必须是一个字符串。', + 'timezone' => ':attribute 必须是一个有效的区域。', + 'unique' => ':attribute 已经被占用。', + 'uploaded' => ':attribute 上传失败。', + 'url' => ':attribute 格式无效。', + 'uuid' => ':attribute 必须是一个有效的 UUID。', + + /* + |-------------------------------------------------------------------------- + | Custom Validation Language Lines + |-------------------------------------------------------------------------- + | + | Here you may specify custom validation messages for attributes using the + | convention "attribute.rule" to name the lines. This makes it quick to + | specify a specific custom language line for a given attribute rule. + | + */ + + 'custom' => [ + 'attribute-name' => [ + 'rule-name' => 'custom-message', + ], + ], + + /* + |-------------------------------------------------------------------------- + | Custom Validation Attributes + |-------------------------------------------------------------------------- + | + | The following language lines are used to swap our attribute placeholder + | with something more reader friendly such as "E-Mail Address" instead + | of "email". This simply helps us make our message more expressive. + | + */ + + 'attributes' => [], + +];