Browse Source

add Simplified Chinese translation

pull/609/head
L1cardo 4 years ago
parent
commit
d83981c4c4
  1. 1
      readme.md
  2. 120
      resources/lang/cn/app.php
  3. 19
      resources/lang/cn/auth.php
  4. 19
      resources/lang/cn/pagination.php
  5. 22
      resources/lang/cn/passwords.php
  6. 121
      resources/lang/cn/validation.php

1
readme.md

@ -78,6 +78,7 @@ Currently added languages are
- Swedish
- Spanish
- Turkish
- Simplified Chinese
## Web Server Configuration

120
resources/lang/cn/app.php

@ -0,0 +1,120 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| App Language Lines
|--------------------------------------------------------------------------
|
*/
'settings.system' => '系统',
'settings.appearance' => '外观',
'settings.miscellaneous' => '其他',
'settings.support' => '支持',
'settings.donate' => '捐赠',
'settings.version' => '版本',
'settings.background_image' => '背景图片',
'settings.window_target' => '打开链接',
'settings.window_target.current' => '在此标签中打开',
'settings.window_target.one' => '在同一标签中打开',
'settings.window_target.new' => '在新标签中打开',
'settings.homepage_search' => '主页搜索',
'settings.search_provider' => '默认搜索引擎',
'settings.language' => '语言',
'settings.reset' => '恢复默认',
'settings.remove' => '移除',
'settings.search' => '搜索',
'settings.no_items' => '未找到项目',
'settings.label' => '标签',
'settings.value' => '值',
'settings.edit' => '编辑',
'settings.view' => '视图',
'options.none' => '- 未设置 -',
'options.google' => 'Google',
'options.ddg' => 'DuckDuckGo',
'options.bing' => 'Bing',
'options.qwant' => 'Qwant',
'options.startpage' => 'StartPage',
'options.yes' => '是',
'options.no' => '否',
'options.nzbhydra' => 'NZBHydra',
'options.jackett' => 'Jackett',
'buttons.save' => '保存',
'buttons.cancel' => '取消',
'buttons.add' => '添加',
'buttons.upload' => '上传图标',
'buttons.downloadapps' => '更新Apps列表',
'dash.pin_item' => '将项目固定在主页上',
'dash.no_apps' => '目前没有被固定的App, :link1 或 :link2',
'dash.link1' => '在这里添加一个App',
'dash.link2' => '将项目固定在主页上',
'dash.pinned_items' => '固定的项目',
'apps.app_list' => 'App列表',
'apps.view_trash' => '查看垃圾箱',
'apps.add_application' => '添加App',
'apps.application_name' => 'App名称',
'apps.colour' => '颜色',
'apps.icon' => '图标',
'apps.pinned' => '固定',
'apps.title' => '标题',
'apps.hex' => 'Hex 颜色',
'apps.username' => '用户名',
'apps.password' => '密码',
'apps.config' => '配置',
'apps.apikey' => 'API Key',
'apps.enable' => '启用',
'apps.tag_list' => '标签列表',
'apps.add_tag' => '添加标签',
'apps.tag_name' => '标签名称',
'apps.tags' => '标签',
'apps.override' => '如果与主链接不同',
'apps.preview' => '预览',
'apps.apptype' => 'App类型',
'dashboard' => '主页',
'user.user_list' => '用户',
'user.add_user' => '添加用户',
'user.username' => '用户名',
'user.avatar' => '头像',
'user.email' => '邮箱',
'user.password_confirm' => '确认密码',
'user.secure_front' => '允许公开访问前台 - 只有在设置了密码的情况下才强制执行。',
'user.autologin' => '允许从一个特定的链接登录,任何拥有该链接的人都可以登录。',
'url' => '链接',
'title' => '标题',
'delete' => '删除',
'optional' => '可选',
'restore' => '恢复',
'alert.success.item_created' => '项目创建成功',
'alert.success.item_updated' => '项目更新成功',
'alert.success.item_deleted' => '项目删除成功',
'alert.success.item_restored' => '项目恢复成功',
'alert.success.updating' => '正在更新App列表',
'alert.success.tag_created' => '标签创建成功',
'alert.success.tag_updated' => '标签更新成功',
'alert.success.tag_deleted' => '标签删除成功',
'alert.success.tag_restored' => '标签恢复成功',
'alert.success.setting_updated' => '您已经成功地编辑了此设置',
'alert.error.not_exist' => '此设置不存在',
'alert.success.user_created' => '用户创建成功',
'alert.success.user_updated' => '用户更新成功',
'alert.success.user_deleted' => '用户删除成功',
'alert.success.user_restored' => '用户恢复成功',
];

19
resources/lang/cn/auth.php

@ -0,0 +1,19 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/
'failed' => '这些凭证与我们的记录不一致.',
'throttle' => '登录尝试次数过多,请在:seconds秒后再试。',
];

19
resources/lang/cn/pagination.php

@ -0,0 +1,19 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pagination links. You are free to change them to anything
| you want to customize your views to better match your application.
|
*/
'previous' => '&laquo; 上一步',
'next' => '下一步 &raquo;',
];

22
resources/lang/cn/passwords.php

@ -0,0 +1,22 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are given by the password broker for a password update attempt
| has failed, such as for an invalid token or invalid new password.
|
*/
'password' => '密码必须至少有六个字符,并与确认相符。',
'reset' => '您的密码已被重置!',
'sent' => '我们已经通过电子邮件发送了您的密码重置链接!',
'token' => '此密码重置令牌无效。',
'user' => "我们无法找到拥有该电子邮件地址的用户。",
];

121
resources/lang/cn/validation.php

@ -0,0 +1,121 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
'accepted' => ':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' => [
'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_format' => ':attribute 不符合格式 :format。',
'different' => ':attribute 与 :other 必须不同。',
'digits' => ':attribute 必须是 :digits 位数。',
'digits_between' => ':attribute 的位数必须在 :min 和 :max 之间。',
'dimensions' => ':attribute 具有无效的图片尺寸。',
'distinct' => ':attribute 字段有重复的值。',
'email' => ':attribute 必须是一个有效的邮箱地址。',
'exists' => '选择的 :attribute 是无效的。',
'file' => ':attribute 必须是一个文件。',
'filled' => ':attribute 字段必须有一个值。',
'image' => ':attribute 必须是图片。',
'in' => '选择的 :attribute 无效。',
'in_array' => ':attribute 字段在 :other 中不存在。',
'integer' => ':attribute 必须是一个整数。',
'ip' => ':attribute 必须是一个有效的 IP 地址。',
'ipv4' => ':attribute 必须是一个有效的 IPv4 地址。',
'ipv6' => ':attribute 必须是一个有效的 IPv6 地址。',
'json' => ':attribute 必须是一个有效的 JSON 字符串。',
'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 无效。',
'numeric' => ':attribute 必须是数字。',
'present' => ':attribute 字段必须存在。',
'regex' => ':attribute 格式无效。',
'required' => ':attribute 字段是必须的。',
'required_if' => ':attribute 字段是必须的当 :other 是 :value。',
'required_unless' => ':attribute 字段是必须的除非 :other 在 :values 之中。',
'required_with' => ':attribute 字段是必须的当 :values 存在。',
'required_with_all' => ':attribute 字段是必须的当 :values 存在。',
'required_without' => ':attribute 字段是必须的当 :values 不存在。',
'required_without_all' => ':attribute 字段是必须的当 :values 一个都不存在。',
'same' => ':attribute 和 :other 必须相符。',
'size' => [
'numeric' => ':attribute 必须为 :size。',
'file' => ':attribute 必须为 :size 千字节。',
'string' => ':attribute 必须为 :size 字母。',
'array' => ':attribute 必须为包含 :size 项目。',
],
'string' => ':attribute 必须是字符串。',
'timezone' => ':attribute 必须是有效的时区。',
'unique' => ':attribute 已被使用。',
'uploaded' => ':attribute 上传失败。',
'url' => ':attribute 格式无效。',
/*
|--------------------------------------------------------------------------
| 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 attribute place-holders
| with something more reader friendly such as E-Mail Address instead
| of "email". This simply helps us make messages a little cleaner.
|
*/
'attributes' => [],
];
Loading…
Cancel
Save