From 4e72845135a4461951f467077430214562c6ef3f Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Mon, 1 Aug 2022 17:31:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- composer.json | 2 + composer.lock | 455 +++++++++++++++++++++++++++- config/app.php | 4 +- resources/lang/zh.json | 6 - resources/lang/zh/pagination.php | 19 -- resources/lang/zh/validation.php | 163 ---------- resources/lang/zh_CN.json | 51 ++++ resources/lang/zh_CN/auth.php | 7 + resources/lang/zh_CN/pagination.php | 6 + resources/lang/zh_CN/passwords.php | 9 + resources/lang/zh_CN/validation.php | 125 ++++++++ 11 files changed, 656 insertions(+), 191 deletions(-) delete mode 100644 resources/lang/zh.json delete mode 100644 resources/lang/zh/pagination.php delete mode 100644 resources/lang/zh/validation.php create mode 100644 resources/lang/zh_CN.json create mode 100644 resources/lang/zh_CN/auth.php create mode 100644 resources/lang/zh_CN/pagination.php create mode 100644 resources/lang/zh_CN/passwords.php create mode 100644 resources/lang/zh_CN/validation.php diff --git a/composer.json b/composer.json index 35ccda6..caaed4f 100644 --- a/composer.json +++ b/composer.json @@ -16,6 +16,8 @@ "require-dev": { "facade/ignition": "^2.5", "fakerphp/faker": "^1.9.1", + "laravel-lang/lang": "^10.0", + "laravel-lang/publisher": "^12.2", "laravel/sail": "^1.0.1", "mockery/mockery": "^1.4.4", "nunomaduro/collision": "^5.10", diff --git a/composer.lock b/composer.lock index c6f42d9..79a645e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "915f94edae3d26e72cdc1c329c03fa9c", + "content-hash": "5fa51137fd7e6b6a8193c33cfad61118", "packages": [ { "name": "asm89/stack-cors", @@ -6192,6 +6192,269 @@ ], "time": "2022-03-03T08:28:38+00:00" }, + { + "name": "dragon-code/contracts", + "version": "v2.18.0", + "source": { + "type": "git", + "url": "https://github.com/TheDragonCode/contracts.git", + "reference": "27e5a9f27b3e6e5f1c184e55076b26101f3e5652" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/TheDragonCode/contracts/zipball/27e5a9f27b3e6e5f1c184e55076b26101f3e5652", + "reference": "27e5a9f27b3e6e5f1c184e55076b26101f3e5652", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-message": "^1.0.1", + "symfony/http-kernel": "^4.0 || ^5.0 || ^6.0", + "symfony/polyfill-php80": "^1.23" + }, + "conflict": { + "andrey-helldar/contracts": "*" + }, + "require-dev": { + "illuminate/database": "^8.0", + "phpdocumentor/reflection-docblock": "^5.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "DragonCode\\Contracts\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@ai-rus.com" + } + ], + "description": "A set of contracts for any project", + "keywords": [ + "contracts", + "interfaces" + ], + "support": { + "source": "https://github.com/TheDragonCode/contracts" + }, + "funding": [ + { + "url": "https://paypal.me/helldar", + "type": "custom" + }, + { + "url": "https://yoomoney.ru/to/410012608840929", + "type": "custom" + }, + { + "url": "https://opencollective.com/dragon-code", + "type": "open_collective" + }, + { + "url": "https://www.patreon.com/andrey_helldar", + "type": "patreon" + } + ], + "time": "2022-03-01T13:27:09+00:00" + }, + { + "name": "dragon-code/pretty-array", + "version": "v3.0.0", + "source": { + "type": "git", + "url": "https://github.com/TheDragonCode/pretty-array.git", + "reference": "bc6629eb266e7869d540dd1fcf13e8c7e1c61e82" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/TheDragonCode/pretty-array/zipball/bc6629eb266e7869d540dd1fcf13e8c7e1c61e82", + "reference": "bc6629eb266e7869d540dd1fcf13e8c7e1c61e82", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "dragon-code/contracts": "^2.6", + "dragon-code/support": "^5.0", + "ext-dom": "*", + "ext-mbstring": "*", + "php": "^7.3|^8.0" + }, + "conflict": { + "andrey-helldar/pretty-array": "*" + }, + "require-dev": { + "phpunit/phpunit": "^9.0" + }, + "suggest": { + "symfony/thanks": "Give thanks (in the form of a GitHub) to your fellow PHP package maintainers" + }, + "type": "library", + "autoload": { + "psr-4": { + "DragonCode\\PrettyArray\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@ai-rus.com" + } + ], + "description": "Simple conversion of an array to a pretty view", + "keywords": [ + "andrey helldar", + "array", + "dragon", + "dragon code", + "pretty", + "pretty array" + ], + "support": { + "issues": "https://github.com/TheDragonCode/pretty-array/issues", + "source": "https://github.com/TheDragonCode/pretty-array" + }, + "funding": [ + { + "url": "https://paypal.me/helldar", + "type": "custom" + }, + { + "url": "https://yoomoney.ru/to/410012608840929", + "type": "custom" + }, + { + "url": "https://opencollective.com/dragon-code", + "type": "open_collective" + }, + { + "url": "https://www.patreon.com/andrey_helldar", + "type": "patreon" + } + ], + "time": "2021-11-16T17:50:22+00:00" + }, + { + "name": "dragon-code/support", + "version": "v5.8.1", + "source": { + "type": "git", + "url": "https://github.com/TheDragonCode/support.git", + "reference": "27af9d8f9ebb0c672ed76d516f524d8d58346cab" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/TheDragonCode/support/zipball/27af9d8f9ebb0c672ed76d516f524d8d58346cab", + "reference": "27af9d8f9ebb0c672ed76d516f524d8d58346cab", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "dragon-code/contracts": "^2.15", + "ext-ctype": "*", + "ext-dom": "*", + "ext-json": "*", + "ext-mbstring": "*", + "php": "^7.2.5 || ^8.0", + "psr/http-message": "^1.0.1", + "symfony/deprecation-contracts": "^2.5 || ^3.0", + "voku/portable-ascii": "^1.4.8|^2.0" + }, + "conflict": { + "andrey-helldar/support": "*" + }, + "require-dev": { + "ext-bcmath": "*", + "phpunit/phpunit": "^8.0 || ^9.0", + "symfony/var-dumper": "^5.2 || ^6.0" + }, + "suggest": { + "dragon-code/laravel-support": "Various helper files for the Laravel and Lumen frameworks", + "ext-bcmath": "Require the extension if you will be using DragonCode\\Support\\Facades\\Helpers\\Digit.", + "symfony/thanks": "Give thanks (in the form of a GitHub) to your fellow PHP package maintainers" + }, + "type": "library", + "autoload": { + "psr-4": { + "DragonCode\\Support\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@ai-rus.com" + } + ], + "description": "Support package is a collection of helpers and tools for any project.", + "keywords": [ + "dragon", + "dragon-code", + "framework", + "helper", + "helpers", + "laravel", + "support", + "symfony", + "yii", + "yii2" + ], + "support": { + "issues": "https://github.com/TheDragonCode/support/issues", + "source": "https://github.com/TheDragonCode/support" + }, + "funding": [ + { + "url": "https://paypal.me/helldar", + "type": "custom" + }, + { + "url": "https://yoomoney.ru/to/410012608840929", + "type": "custom" + }, + { + "url": "https://github.com/TheDragonCode", + "type": "github" + }, + { + "url": "https://opencollective.com/dragon-code", + "type": "open_collective" + }, + { + "url": "https://www.patreon.com/andrey_helldar", + "type": "patreon" + } + ], + "time": "2022-04-01T17:14:16+00:00" + }, { "name": "facade/flare-client-php", "version": "1.9.1", @@ -6613,6 +6876,196 @@ }, "time": "2020-07-09T08:09:16+00:00" }, + { + "name": "laravel-lang/lang", + "version": "10.9.5", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/lang.git", + "reference": "e341421d40f2cd28feca24ab2cb84fa5cb5ddaf6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/lang/zipball/e341421d40f2cd28feca24ab2cb84fa5cb5ddaf6", + "reference": "e341421d40f2cd28feca24ab2cb84fa5cb5ddaf6", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "ext-json": "*" + }, + "conflict": { + "laravel-lang/publisher": "<12.0 >=14.0" + }, + "require-dev": { + "dragon-code/pretty-array": "^4.0", + "dragon-code/simple-dto": "^2.3", + "dragon-code/support": "^6.1", + "ext-zip": "*", + "guzzlehttp/guzzle": "^7.3", + "laravel-lang/publisher": "^13.0", + "laravel/breeze": "^1.2", + "laravel/fortify": "^1.7", + "laravel/jetstream": "^2.3", + "laravel/ui": "^3.4", + "orchestra/testbench": "^7.0", + "php": "^8.1", + "phpunit/phpunit": "^9.5", + "symfony/finder": "^6.0", + "symfony/var-dumper": "^6.0", + "vlucas/phpdotenv": "^5.4.1" + }, + "suggest": { + "arcanedev/laravel-lang": "Translations manager and checker for Laravel 5", + "laravel-lang/publisher": "Easy installation and update of translation files for your project", + "overtrue/laravel-lang": "Command to add languages in your project" + }, + "type": "library", + "autoload": { + "psr-4": { + "LaravelLang\\Lang\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Laravel-Lang Team", + "homepage": "https://github.com/Laravel-Lang" + } + ], + "description": "Languages for Laravel", + "keywords": [ + "lang", + "languages", + "laravel", + "lpm" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/lang/issues", + "source": "https://github.com/Laravel-Lang/lang" + }, + "funding": [ + { + "url": "https://opencollective.com/laravel-lang", + "type": "open_collective" + } + ], + "time": "2022-06-27T01:57:27+00:00" + }, + { + "name": "laravel-lang/publisher", + "version": "v12.2.1", + "source": { + "type": "git", + "url": "https://github.com/Laravel-Lang/publisher.git", + "reference": "200a9aca41529ce33d3385e7ffd3e60aaaf808de" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Laravel-Lang/publisher/zipball/200a9aca41529ce33d3385e7ffd3e60aaaf808de", + "reference": "200a9aca41529ce33d3385e7ffd3e60aaaf808de", + "shasum": "", + "mirrors": [ + { + "url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%", + "preferred": true + } + ] + }, + "require": { + "dragon-code/contracts": "^2.15", + "dragon-code/pretty-array": "^3.0", + "dragon-code/support": "^5.6", + "ext-json": "*", + "illuminate/console": "^7.0 || ^8.0 || ^9.0", + "illuminate/contracts": "^7.0 || ^8.0 || ^9.0", + "illuminate/support": "^7.0 || ^8.0 || ^9.0", + "php": "^7.3 || ^8.0" + }, + "conflict": { + "andrey-helldar/laravel-lang-publisher": "*", + "dragon-code/contracts": "<2.0.0", + "dragon-code/pretty-array": "<3.0.0", + "dragon-code/support": "<5.0.0", + "laravel-lang/lang": "<10.2.0" + }, + "require-dev": { + "laravel-lang/http-statuses": "^2.0", + "laravel-lang/lang": "^10.2", + "orchestra/testbench": "^5.0 || ^6.0 || ^7.0", + "phpunit/phpunit": "^9.4", + "symfony/var-dumper": "^5.0 || ^6.0" + }, + "suggest": { + "laravel-lang/http-statuses": "List of 78 languages for HTTP statuses", + "laravel-lang/lang": "List of 78 languages for Laravel Framework, Jetstream, Fortify, Breeze, Cashier, Nova, Spark and UI." + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "LaravelLang\\Publisher\\ServiceProvider" + ] + } + }, + "autoload": { + "psr-4": { + "LaravelLang\\Publisher\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Andrey Helldar", + "email": "helldar@ai-rus.com" + } + ], + "description": "Publisher lang files for the Laravel and Lumen Frameworks, Jetstream, Fortify, Cashier, Spark and Nova from Laravel-Lang/lang", + "keywords": [ + "breeze", + "cashier", + "fortify", + "framework", + "i18n", + "jetstream", + "lang", + "languages", + "laravel", + "locale", + "locales", + "localization", + "lpm", + "lumen", + "nova", + "publisher", + "spark", + "trans", + "translations", + "validations" + ], + "support": { + "issues": "https://github.com/Laravel-Lang/publisher/issues", + "source": "https://github.com/Laravel-Lang/publisher" + }, + "funding": [ + { + "url": "https://opencollective.com/laravel-lang", + "type": "open_collective" + } + ], + "time": "2022-03-06T12:54:14+00:00" + }, { "name": "laravel/sail", "version": "v1.14.11", diff --git a/config/app.php b/config/app.php index f8e08ef..06831ac 100644 --- a/config/app.php +++ b/config/app.php @@ -80,7 +80,7 @@ return [ | */ - 'locale' => 'zh', + 'locale' => 'zh_CN', /* |-------------------------------------------------------------------------- @@ -93,7 +93,7 @@ return [ | */ - 'fallback_locale' => 'zh', + 'fallback_locale' => 'zh_CN', /* |-------------------------------------------------------------------------- diff --git a/resources/lang/zh.json b/resources/lang/zh.json deleted file mode 100644 index 5769fe0..0000000 --- a/resources/lang/zh.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "Showing":"当前展示", - "to":"至", - "of":"条数据,共有", - "results":"条数据" -} diff --git a/resources/lang/zh/pagination.php b/resources/lang/zh/pagination.php deleted file mode 100644 index 4e8dea7..0000000 --- a/resources/lang/zh/pagination.php +++ /dev/null @@ -1,19 +0,0 @@ - '« 上一页', - 'next' => '下一页 »', - -]; diff --git a/resources/lang/zh/validation.php b/resources/lang/zh/validation.php deleted file mode 100644 index 60d6945..0000000 --- a/resources/lang/zh/validation.php +++ /dev/null @@ -1,163 +0,0 @@ - 'The :attribute must be accepted.', - 'accepted_if' => 'The :attribute must be accepted when :other is :value.', - 'active_url' => 'The :attribute is not a valid URL.', - 'after' => 'The :attribute must be a date after :date.', - 'after_or_equal' => 'The :attribute must be a date after or equal to :date.', - 'alpha' => 'The :attribute must only contain letters.', - 'alpha_dash' => 'The :attribute must only contain letters, numbers, dashes and underscores.', - 'alpha_num' => 'The :attribute must only contain letters and numbers.', - 'array' => 'The :attribute must be an array.', - 'before' => 'The :attribute must be a date before :date.', - 'before_or_equal' => 'The :attribute must be a date before or equal to :date.', - 'between' => [ - 'numeric' => 'The :attribute must be between :min and :max.', - 'file' => 'The :attribute must be between :min and :max kilobytes.', - 'string' => 'The :attribute must be between :min and :max characters.', - 'array' => 'The :attribute must have between :min and :max items.', - ], - 'boolean' => 'The :attribute field must be true or false.', - 'confirmed' => 'The :attribute confirmation does not match.', - 'current_password' => 'The password is incorrect.', - 'date' => 'The :attribute is not a valid date.', - 'date_equals' => 'The :attribute must be a date equal to :date.', - 'date_format' => 'The :attribute does not match the format :format.', - 'declined' => 'The :attribute must be declined.', - 'declined_if' => 'The :attribute must be declined when :other is :value.', - 'different' => 'The :attribute and :other must be different.', - 'digits' => 'The :attribute must be :digits digits.', - 'digits_between' => 'The :attribute must be between :min and :max digits.', - 'dimensions' => 'The :attribute has invalid image dimensions.', - 'distinct' => 'The :attribute field has a duplicate value.', - 'email' => 'The :attribute must be a valid email address.', - 'ends_with' => 'The :attribute must end with one of the following: :values.', - 'enum' => 'The selected :attribute is invalid.', - 'exists' => 'The selected :attribute is invalid.', - 'file' => 'The :attribute must be a file.', - 'filled' => 'The :attribute field must have a value.', - '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.', - ], - 'gte' => [ - 'numeric' => 'The :attribute must be greater than or equal to :value.', - 'file' => 'The :attribute must be greater than or equal to :value kilobytes.', - 'string' => 'The :attribute must be greater than or equal to :value characters.', - 'array' => 'The :attribute must have :value items or more.', - ], - 'image' => 'The :attribute must be an image.', - 'in' => 'The selected :attribute is invalid.', - 'in_array' => 'The :attribute field does not exist in :other.', - 'integer' => 'The :attribute must be an integer.', - 'ip' => 'The :attribute must be a valid IP address.', - '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.', - '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.', - ], - 'lte' => [ - 'numeric' => 'The :attribute must be less than or equal to :value.', - 'file' => 'The :attribute must be less than or equal to :value kilobytes.', - 'string' => 'The :attribute must be less than or equal to :value characters.', - 'array' => 'The :attribute must not have more than :value items.', - ], - 'mac_address' => 'The :attribute must be a valid MAC address.', - 'max' => [ - 'numeric' => 'The :attribute must not be greater than :max.', - 'file' => 'The :attribute must not be greater than :max kilobytes.', - 'string' => 'The :attribute must not be greater than :max characters.', - 'array' => 'The :attribute must not have more than :max items.', - ], - 'mimes' => 'The :attribute must be a file of type: :values.', - 'mimetypes' => 'The :attribute must be a file of type: :values.', - 'min' => [ - 'numeric' => 'The :attribute must be at least :min.', - 'file' => 'The :attribute must be at least :min kilobytes.', - 'string' => 'The :attribute must be at least :min characters.', - 'array' => 'The :attribute must have at least :min items.', - ], - 'multiple_of' => 'The :attribute must be a multiple of :value.', - 'not_in' => 'The selected :attribute is invalid.', - 'not_regex' => 'The :attribute format is invalid.', - 'numeric' => 'The :attribute must be a number.', - 'password' => 'The password is incorrect.', - 'present' => 'The :attribute field must be present.', - 'prohibited' => 'The :attribute field is prohibited.', - 'prohibited_if' => 'The :attribute field is prohibited when :other is :value.', - 'prohibited_unless' => 'The :attribute field is prohibited unless :other is in :values.', - 'prohibits' => 'The :attribute field prohibits :other from being present.', - 'regex' => '字段 :attribute 格式不匹配。', - 'required' => '字段 :attribute 为必填字段。', - 'required_array_keys' => 'The :attribute field must contain entries for: :values.', - 'required_if' => 'The :attribute field is required when :other is :value.', - 'required_unless' => 'The :attribute field is required unless :other is in :values.', - 'required_with' => 'The :attribute field is required when :values is present.', - 'required_with_all' => 'The :attribute field is required when :values are present.', - 'required_without' => 'The :attribute field is required when :values is not present.', - 'required_without_all' => 'The :attribute field is required when none of :values are present.', - 'same' => 'The :attribute and :other must match.', - 'size' => [ - 'numeric' => 'The :attribute must be :size.', - 'file' => 'The :attribute must be :size kilobytes.', - 'string' => 'The :attribute must be :size characters.', - 'array' => 'The :attribute must contain :size items.', - ], - 'starts_with' => 'The :attribute must start with one of the following: :values.', - 'string' => 'The :attribute must be a string.', - 'timezone' => 'The :attribute must be a valid timezone.', - 'unique' => 'The :attribute has already been taken.', - 'uploaded' => 'The :attribute failed to upload.', - 'url' => 'The :attribute must be a valid URL.', - 'uuid' => 'The :attribute must be a valid 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' => [], - -]; diff --git a/resources/lang/zh_CN.json b/resources/lang/zh_CN.json new file mode 100644 index 0000000..0b42444 --- /dev/null +++ b/resources/lang/zh_CN.json @@ -0,0 +1,51 @@ +{ + "A fresh verification link has been sent to your email address.": "一个新的验证链接已发送到您的电子邮件地址。", + "All rights reserved.": "版权所有。", + "Before proceeding, please check your email for a verification link.": "在继续之前,请检查您的电子邮件以获取验证链接。", + "click here to request another": "单击此处请求另一个", + "Confirm Password": "确认密码", + "E-Mail Address": "电子邮件地址", + "Forbidden": "访问被拒绝", + "Forgot Your Password?": "忘记密码?", + "Go Home": "回首页", + "Go to page :page": "前往第 :page 页", + "Hello!": "您好!", + "If you did not create an account, no further action is required.": "如果您未注册帐号,请忽略此邮件。", + "If you did not receive the email": "如果您没有收到电子邮件", + "If you did not request a password reset, no further action is required.": "如果您未申请重设密码,请忽略此邮件。", + "If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "如果您单击「:actionText」按钮时遇到问题,请复制下方链接到浏览器中访问:", + "Login": "登录", + "Logout": "登出", + "Name": "姓名", + "Not Found": "页面不存在", + "of": "于", + "Oh no": "不好了", + "Page Expired": "页面会话已超时", + "Pagination Navigation": "分页导航", + "Password": "密码", + "Please click the button below to verify your email address.": "请点击下面按钮验证您的 E-mail:", + "Regards": "致敬", + "Register": "注册", + "Remember Me": "记住我", + "Reset Password": "重置密码", + "Reset Password Notification": "重置密码通知", + "results": "结果", + "Send Password Reset Link": "发送重设密码链接", + "Server Error": "服务器错误", + "Service Unavailable": "服务不可用", + "Showing": "当前展示", + "The :attribute must contain at least one letter.": ":attribute 至少包含一个字母。", + "The :attribute must contain at least one number.": ":attribute 至少包含一个数字。", + "The :attribute must contain at least one symbol.": ":attribute 至少包含一个符号。", + "The :attribute must contain at least one uppercase and one lowercase letter.": ":attribute 至少包含一个大写字母和一个小写字母。", + "The given :attribute has appeared in a data leak. Please choose a different :attribute.": "给定的 :attribute 出现在数据泄漏中。请选择不同的 :attribute。", + "This password reset link will expire in :count minutes.": "这个重设密码链接将会在 :count 分钟后失效。", + "to": "至", + "Toggle navigation": "切换导航", + "Too Many Requests": "请求次数过多。", + "Unauthorized": "未授权", + "Verify Email Address": "验证 E-mail", + "Verify Your Email Address": "验证您的邮件地址", + "Whoops!": "哎呀!", + "You are receiving this email because we received a password reset request for your account.": "您收到此电子邮件是因为我们收到了您帐户的密码重设请求。" +} diff --git a/resources/lang/zh_CN/auth.php b/resources/lang/zh_CN/auth.php new file mode 100644 index 0000000..8944bb9 --- /dev/null +++ b/resources/lang/zh_CN/auth.php @@ -0,0 +1,7 @@ + '用户名或密码错误。', + 'password' => '密码错误。', + 'throttle' => '您尝试的登录次数过多,请 :seconds 秒后再试。', +]; diff --git a/resources/lang/zh_CN/pagination.php b/resources/lang/zh_CN/pagination.php new file mode 100644 index 0000000..e13e040 --- /dev/null +++ b/resources/lang/zh_CN/pagination.php @@ -0,0 +1,6 @@ + '下一页 »', + 'previous' => '« 上一页', +]; diff --git a/resources/lang/zh_CN/passwords.php b/resources/lang/zh_CN/passwords.php new file mode 100644 index 0000000..a72ab7e --- /dev/null +++ b/resources/lang/zh_CN/passwords.php @@ -0,0 +1,9 @@ + '密码重置成功!', + 'sent' => '密码重置邮件已发送!', + 'throttled' => '请稍候再试。', + 'token' => '密码重置令牌无效。', + 'user' => '找不到该邮箱对应的用户。', +]; diff --git a/resources/lang/zh_CN/validation.php b/resources/lang/zh_CN/validation.php new file mode 100644 index 0000000..1e757b7 --- /dev/null +++ b/resources/lang/zh_CN/validation.php @@ -0,0 +1,125 @@ + '您必须接受 :attribute。', + 'accepted_if' => '当 :other 为 :value 时,必须接受 :attribute。', + 'active_url' => ':attribute 不是一个有效的网址。', + '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' => [ + 'array' => ':attribute 必须只有 :min - :max 个单元。', + 'file' => ':attribute 必须介于 :min - :max KB 之间。', + 'numeric' => ':attribute 必须介于 :min - :max 之间。', + 'string' => ':attribute 必须介于 :min - :max 个字符之间。', + ], + 'boolean' => ':attribute 必须为布尔值。', + 'confirmed' => ':attribute 两次输入不一致。', + 'current_password' => '密码错误。', + 'date' => ':attribute 不是一个有效的日期。', + 'date_equals' => ':attribute 必须要等于 :date。', + 'date_format' => ':attribute 的格式必须为 :format。', + 'declined' => ':attribute 必须是拒绝的。', + 'declined_if' => '当 :other 为 :value 时字段 :attribute 必须是拒绝的。', + 'different' => ':attribute 和 :other 必须不同。', + 'digits' => ':attribute 必须是 :digits 位数字。', + 'digits_between' => ':attribute 必须是介于 :min 和 :max 位的数字。', + 'dimensions' => ':attribute 图片尺寸不正确。', + 'distinct' => ':attribute 已经存在。', + 'email' => ':attribute 不是一个合法的邮箱。', + 'ends_with' => ':attribute 必须以 :values 为结尾。', + 'enum' => ':attribute 值不正确。', + 'exists' => ':attribute 不存在。', + 'file' => ':attribute 必须是文件。', + 'filled' => ':attribute 不能为空。', + 'gt' => [ + 'array' => ':attribute 必须多于 :value 个元素。', + 'file' => ':attribute 必须大于 :value KB。', + 'numeric' => ':attribute 必须大于 :value。', + 'string' => ':attribute 必须多于 :value 个字符。', + ], + 'gte' => [ + 'array' => ':attribute 必须多于或等于 :value 个元素。', + 'file' => ':attribute 必须大于或等于 :value KB。', + 'numeric' => ':attribute 必须大于或等于 :value。', + 'string' => ':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' => [ + 'array' => ':attribute 必须少于 :value 个元素。', + 'file' => ':attribute 必须小于 :value KB。', + 'numeric' => ':attribute 必须小于 :value。', + 'string' => ':attribute 必须少于 :value 个字符。', + ], + 'lte' => [ + 'array' => ':attribute 必须少于或等于 :value 个元素。', + 'file' => ':attribute 必须小于或等于 :value KB。', + 'numeric' => ':attribute 必须小于或等于 :value。', + 'string' => ':attribute 必须少于或等于 :value 个字符。', + ], + 'mac_address' => ':attribute 必须是一个有效的 MAC 地址。', + 'max' => [ + 'array' => ':attribute 最多只有 :max 个单元。', + 'file' => ':attribute 不能大于 :max KB。', + 'numeric' => ':attribute 不能大于 :max。', + 'string' => ':attribute 不能大于 :max 个字符。', + ], + 'mimes' => ':attribute 必须是一个 :values 类型的文件。', + 'mimetypes' => ':attribute 必须是一个 :values 类型的文件。', + 'min' => [ + 'array' => ':attribute 至少有 :min 个单元。', + 'file' => ':attribute 大小不能小于 :min KB。', + 'numeric' => ':attribute 必须大于等于 :min。', + 'string' => ':attribute 至少为 :min 个字符。', + ], + 'multiple_of' => ':attribute 必须是 :value 中的多个值。', + 'not_in' => '已选的属性 :attribute 非法。', + 'not_regex' => ':attribute 的格式错误。', + 'numeric' => ':attribute 必须是一个数字。', + 'password' => '密码错误', + 'present' => ':attribute 必须存在。', + 'prohibited' => ':attribute 字段被禁止。', + 'prohibited_if' => '当 :other 为 :value 时,禁止 :attribute 字段。', + 'prohibited_unless' => ':attribute 字段被禁止,除非 :other 位于 :values 中。', + 'prohibits' => ':attribute 字段禁止出现 :other。', + 'regex' => ':attribute 格式不正确。', + 'required' => ':attribute 不能为空。', + 'required_array_keys' => ':attribute 至少包含指定的键::values.', + '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' => [ + 'array' => ':attribute 必须为 :size 个单元。', + 'file' => ':attribute 大小必须为 :size KB。', + 'numeric' => ':attribute 大小必须为 :size。', + 'string' => ':attribute 必须是 :size 个字符。', + ], + 'starts_with' => ':attribute 必须以 :values 为开头。', + 'string' => ':attribute 必须是一个字符串。', + 'timezone' => ':attribute 必须是一个合法的时区值。', + 'unique' => ':attribute 已经存在。', + 'uploaded' => ':attribute 上传失败。', + 'url' => ':attribute 格式不正确。', + 'uuid' => ':attribute 必须是有效的 UUID。', + 'custom' => [ + 'attribute-name' => [ + 'rule-name' => 'custom-message', + ], + ], +];