diff --git a/readme.md b/readme.md index e3242f91..64aa6549 100644 --- a/readme.md +++ b/readme.md @@ -91,6 +91,7 @@ Currently added languages are - Spanish - Turkish - Russian +- Chinese ## Web Server Configuration diff --git a/resources/lang/zh/app.php b/resources/lang/zh/app.php new file mode 100644 index 00000000..e221de2b --- /dev/null +++ b/resources/lang/zh/app.php @@ -0,0 +1,120 @@ + '系统', + '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' => '- not set -', + 'options.google' => 'Google', + 'options.ddg' => 'DuckDuckGo', + 'options.bing' => 'Bing', + 'options.qwant' => 'Qwant', + 'options.startpage' => '开始页', + 'options.yes' => '是', + 'options.no' => '否', + 'options.nzbhydra' => 'NZBHydra', + 'options.jackett' => 'Jackett', + + 'buttons.save' => '保存', + 'buttons.cancel' => '取消', + 'buttons.add' => '添加', + 'buttons.upload' => '上传图标', + 'buttons.downloadapps' => '更新应用程序列表', + + 'dash.pin_item' => '固定到仪表板', + 'dash.no_apps' => '目前没有固定应用程序 :link1 或 :link2', + 'dash.link1' => '在这里添加应用程序', + 'dash.link2' => '在仪表板上固定项', + 'dash.pinned_items' => '固定项', + + 'apps.app_list' => '应用程序列表', + 'apps.view_trash' => '查看垃圾桶', + 'apps.add_application' => '添加应用程序', + 'apps.application_name' => '应用程序名称', + 'apps.colour' => '颜色', + 'apps.icon' => '图标', + 'apps.pinned' => '固定', + 'apps.title' => '标题', + 'apps.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' => '如果不同于主url', + 'apps.preview' => '预览', + 'apps.apptype' => '应用程序类型', + + 'dashboard' => '仪表板', + + 'user.user_list' => '用户', + 'user.add_user' => '添加用户', + 'user.username' => '用户名', + 'user.avatar' => '头像', + 'user.email' => '电子邮件', + 'user.password_confirm' => '确认密码', + 'user.secure_front' => '允许公共访问-只有在设置了密码的情况下才强制执行。', + 'user.autologin' => '允许从特定的URL登录。任何有链接的人都可以登录。', + + 'url' => 'URL', + 'title' => '标题', + 'delete' => '删除', + 'optional' => '可选', + 'restore' => '恢复', + + 'alert.success.item_created' => '项目成功创建', + 'alert.success.item_updated' => '项目成功更新', + 'alert.success.item_deleted' => '项目成功删除', + 'alert.success.item_restored' => '项目恢复成功', + 'alert.success.updating' => '更新应用程序列表', + + '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' => '用户恢复成功', + + +]; diff --git a/resources/lang/zh/auth.php b/resources/lang/zh/auth.php new file mode 100644 index 00000000..8c44ebcc --- /dev/null +++ b/resources/lang/zh/auth.php @@ -0,0 +1,19 @@ + '没有找到该记录', + 'throttle' => '登录尝试次数太多, 请在 :seconds 后再试', + +]; diff --git a/resources/lang/zh/pagination.php b/resources/lang/zh/pagination.php new file mode 100644 index 00000000..ccd395ed --- /dev/null +++ b/resources/lang/zh/pagination.php @@ -0,0 +1,19 @@ + '上一个', + 'next' => '下一个', + +]; diff --git a/resources/lang/zh/passwords.php b/resources/lang/zh/passwords.php new file mode 100644 index 00000000..bad41b20 --- /dev/null +++ b/resources/lang/zh/passwords.php @@ -0,0 +1,22 @@ + '密码必须包含6个字符, 并和确认密码一致', + 'reset' => '密码已重置', + 'sent' => '我们已通过邮箱发送了包含重置密码的链接', + 'token' => '重置密码token无效', + 'user' => '这个邮箱不属于任何用户', + +]; diff --git a/resources/lang/zh/validation.php b/resources/lang/zh/validation.php new file mode 100644 index 00000000..23b8418e --- /dev/null +++ b/resources/lang/zh/validation.php @@ -0,0 +1,121 @@ + '必须同意 :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 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' => [], + +];