From 9e4a06999b9a014cc85575eb4567d76127d95f19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E7=BF=80?= Date: Mon, 21 Mar 2022 00:53:28 +0800 Subject: [PATCH] Chinese translate add baidu search --- database/seeds/SettingsSeeder.php | 2 ++ resources/lang/cn/auth.php | 19 +++++++++++++++++++ resources/lang/cn/pagination.php | 19 +++++++++++++++++++ resources/lang/cn/passwords.php | 22 ++++++++++++++++++++++ storage/app/searchproviders.yaml | 8 ++++++++ 5 files changed, 70 insertions(+) create mode 100644 resources/lang/cn/auth.php create mode 100644 resources/lang/cn/pagination.php create mode 100644 resources/lang/cn/passwords.php diff --git a/database/seeds/SettingsSeeder.php b/database/seeds/SettingsSeeder.php index 5d31ab36..0bc0043a 100644 --- a/database/seeds/SettingsSeeder.php +++ b/database/seeds/SettingsSeeder.php @@ -99,6 +99,7 @@ class SettingsSeeder extends Seeder $options = json_encode([ 'none' => 'app.options.none', 'google' => 'app.options.google', + 'baidu' => 'app.options.baidu', 'ddg' => 'app.options.ddg', 'qwant' => 'app.options.qwant', 'bing' => 'app.options.bing', @@ -123,6 +124,7 @@ class SettingsSeeder extends Seeder $language_options = json_encode([ 'de' => 'Deutsch (German)', 'en' => 'English', + 'cn' => '简体中文 (Simplified Chinese)', 'fi' => 'Suomi (Finnish)', 'fr' => 'Français (French)', 'el' => 'Ελληνικά (Greek)', diff --git a/resources/lang/cn/auth.php b/resources/lang/cn/auth.php new file mode 100644 index 00000000..1ad760c8 --- /dev/null +++ b/resources/lang/cn/auth.php @@ -0,0 +1,19 @@ + '认证凭据错误。', + 'throttle' => '登录尝试次数过多。 请在 :seconds 秒后重试。', + +]; diff --git a/resources/lang/cn/pagination.php b/resources/lang/cn/pagination.php new file mode 100644 index 00000000..4e8dea7c --- /dev/null +++ b/resources/lang/cn/pagination.php @@ -0,0 +1,19 @@ + '« 上一页', + 'next' => '下一页 »', + +]; diff --git a/resources/lang/cn/passwords.php b/resources/lang/cn/passwords.php new file mode 100644 index 00000000..b6ac8ac5 --- /dev/null +++ b/resources/lang/cn/passwords.php @@ -0,0 +1,22 @@ + '密码至少需要6位,且两次输入的必须一致', + 'reset' => '密码已重置!', + 'sent' => '重置密码邮件已发送!', + 'token' => '重置密码Token不正确。', + 'user' => "无法找到该邮件地址对应的用户。", + +]; diff --git a/storage/app/searchproviders.yaml b/storage/app/searchproviders.yaml index 6c5ab5e5..ecb6f5f8 100644 --- a/storage/app/searchproviders.yaml +++ b/storage/app/searchproviders.yaml @@ -11,6 +11,14 @@ google: target: _blank query: q +baidu: + id: baidu + url: https://www.baidu.com/s + name: Baidu + method: get + target: _blank + query: wd + bing: id: bing url: https://www.bing.com/search