From af084ceec8ca09118b2386e364a59f950c4c975a Mon Sep 17 00:00:00 2001 From: jsw Date: Sun, 19 Apr 2015 00:00:29 +0800 Subject: [PATCH] Fix L10n *again* --- config/langs.php | 4 +- resources/lang/zh-CN/cachet.php | 59 ++++++ resources/lang/zh-CN/dashboard.php | 186 ++++++++++++++++++ resources/lang/zh-CN/errors.php | 16 ++ resources/lang/zh-CN/forms.php | 126 ++++++++++++ .../lang/{zh-Hans => zh-CN}/pagination.php | 4 +- .../lang/{zh-Hans => zh-CN}/reminders.php | 10 +- resources/lang/zh-CN/setup.php | 14 ++ resources/lang/zh-CN/validation.php | 106 ++++++++++ resources/lang/zh-Hans/cachet.php | 59 ------ resources/lang/zh-Hans/dashboard.php | 186 ------------------ resources/lang/zh-Hans/errors.php | 16 -- resources/lang/zh-Hans/forms.php | 126 ------------ resources/lang/zh-Hans/setup.php | 14 -- resources/lang/zh-Hant/validation.php | 106 ---------- resources/lang/{zh-Hant => zh-TW}/cachet.php | 0 .../lang/{zh-Hant => zh-TW}/dashboard.php | 0 resources/lang/{zh-Hant => zh-TW}/errors.php | 0 resources/lang/{zh-Hant => zh-TW}/forms.php | 0 .../lang/{zh-Hant => zh-TW}/pagination.php | 0 .../lang/{zh-Hant => zh-TW}/reminders.php | 0 resources/lang/{zh-Hant => zh-TW}/setup.php | 0 .../lang/{zh-Hans => zh-TW}/validation.php | 0 23 files changed, 516 insertions(+), 516 deletions(-) create mode 100644 resources/lang/zh-CN/cachet.php create mode 100644 resources/lang/zh-CN/dashboard.php create mode 100644 resources/lang/zh-CN/errors.php create mode 100644 resources/lang/zh-CN/forms.php rename resources/lang/{zh-Hans => zh-CN}/pagination.php (85%) mode change 100755 => 100644 rename resources/lang/{zh-Hans => zh-CN}/reminders.php (59%) mode change 100755 => 100644 create mode 100644 resources/lang/zh-CN/setup.php create mode 100644 resources/lang/zh-CN/validation.php delete mode 100755 resources/lang/zh-Hans/cachet.php delete mode 100755 resources/lang/zh-Hans/dashboard.php delete mode 100755 resources/lang/zh-Hans/errors.php delete mode 100755 resources/lang/zh-Hans/forms.php delete mode 100755 resources/lang/zh-Hans/setup.php delete mode 100755 resources/lang/zh-Hant/validation.php rename resources/lang/{zh-Hant => zh-TW}/cachet.php (100%) mode change 100755 => 100644 rename resources/lang/{zh-Hant => zh-TW}/dashboard.php (100%) mode change 100755 => 100644 rename resources/lang/{zh-Hant => zh-TW}/errors.php (100%) mode change 100755 => 100644 rename resources/lang/{zh-Hant => zh-TW}/forms.php (100%) mode change 100755 => 100644 rename resources/lang/{zh-Hant => zh-TW}/pagination.php (100%) mode change 100755 => 100644 rename resources/lang/{zh-Hant => zh-TW}/reminders.php (100%) mode change 100755 => 100644 rename resources/lang/{zh-Hant => zh-TW}/setup.php (100%) mode change 100755 => 100644 rename resources/lang/{zh-Hans => zh-TW}/validation.php (100%) mode change 100755 => 100644 diff --git a/config/langs.php b/config/langs.php index 30915971..28770764 100755 --- a/config/langs.php +++ b/config/langs.php @@ -10,6 +10,6 @@ return [ 'fr' => 'Français', 'nl' => 'Nederlands', 'pt-BR' => 'Portuguese, Brazilian', - 'zh-Hant' => 'Chinese (Traditional)', - 'zh-Hans' => 'Chinese (Simplified)', + 'zh-CN' => '简体中文', + 'zh-TW' => '繁體中文', ]; diff --git a/resources/lang/zh-CN/cachet.php b/resources/lang/zh-CN/cachet.php new file mode 100644 index 00000000..d68d7377 --- /dev/null +++ b/resources/lang/zh-CN/cachet.php @@ -0,0 +1,59 @@ + [ + 'status' => [ + 1 => '正常运转', + 2 => '性能问题', + 3 => '部分停运', + 4 => '严重停转', + ], + ], + + // Incidents + 'incidents' => [ + 'none' => '没有已报告的事件。', + 'past' => '过去的事件', + 'previous_week' => '前一周', + 'next_week' => '后一周', + 'none' => '没有已报告的事件。', + 'scheduled' => '计划维护', + 'scheduled_at' => ',计划于 :timestamp', + 'status' => [ + 0 => '计划中的', // TODO: Hopefully remove this. + 1 => '调查中', + 2 => '已定位', + 3 => '观察中', + 4 => '已修复', + ], + ], + + // Service Status + 'service' => [ + 'good' => '所有系统正常运转。', + 'bad' => '一些系统出了问题。', + ], + + 'api' => [ + 'regenerate' => '重新生成 API 密钥', + 'revoke' => '吊销 API 密钥', + ], + + // Metrics + 'metrics' => [ + 'filter' => [ + 'hourly' => '每小时的', + 'daily' => '每日的', + 'monthly' => '每月的', + ], + ], + + // Other + 'powered_by' => ':app 应用状态页面由 Cachet提供支持。', + 'about_this_site' => '关于此站点', + 'rss-feed' => 'RSS 源', + 'atom-feed' => 'Atom 源', + 'feed' => '状态源', + +]; diff --git a/resources/lang/zh-CN/dashboard.php b/resources/lang/zh-CN/dashboard.php new file mode 100644 index 00000000..0470ae9d --- /dev/null +++ b/resources/lang/zh-CN/dashboard.php @@ -0,0 +1,186 @@ + '仪表盘', + + // Incidents + 'incidents' => [ + 'title' => '事件和维护计划', + 'incidents' => '事件', + 'logged' => '{0} 目前没有问题 干得漂亮!|您已经记录了一个事件|您已经报告了 :count 个事件', + 'incident-create-template' => '创建模板', + 'incident-templates' => '事件模板', + 'add' => [ + 'title' => '添加一个事件', + 'success' => '事件已添加', + 'failure' => '事件添加失败。', + ], + 'edit' => [ + 'title' => '编辑一个事件', + 'success' => '事件已更新。', + 'failure' => '事件编辑失败。', + ], + + // Incident templates + 'templates' => [ + 'title' => '事件模板', + 'add' => [ + 'title' => '创建一个事件模板。', + 'success' => '模板已创建。', + 'failure' => '创建模板失败。', + ], + 'edit' => [ + 'title' => '编辑模板', + 'success' => '模板已更新!', + 'failure' => '模板修改失败', + ], + ], + ], + + // Incident Maintenance + 'schedule' => [ + 'schedule' => '计划维护', + 'scheduled_at' => '计划在 :timestamp', + 'add' => [ + 'title' => '添加维护计划', + 'success' => '计划已添加。', + 'failure' => '计划添加失败。', + ], + 'edit' => [ + 'title' => '编辑维护计划', + 'success' => '计划已更新!', + 'failure' => '计划更新失败。', + ], + 'delete' => [ + 'success' => '维护计划已被删除,它将从你的状态页上消失。', + 'failure' => '无法删除该维护计划。请再试一次。', + ], + ], + + // Components + 'components' => [ + 'components' => '组件', + 'component_statuses' => '组件状态', + 'listed_group' => '根据 :name 分组', + 'add' => [ + 'title' => '添加一个组件', + 'message' => '你应该添加一个组件。', + 'success' => '组件已创建。', + 'failure' => '组件添加失败。', + ], + 'edit' => [ + 'title' => '编辑一个组件', + 'success' => '组件已更新。', + 'failure' => '组件编辑失败。', + ], + + // Component groups + 'groups' => [ + 'groups' => '部件分组|部件分组', + 'add' => [ + 'title' => '添加一个分组。', + 'success' => '部件分组已添加。', + 'failure' => '分组添加失败。', + ], + 'edit' => [ + 'title' => '编辑组件分组', + 'success' => '分组已更新。', + 'failure' => '分组更新失败。', + ], + ], + ], + + // Metrics + 'metrics' => [ + 'metrics' => '图表', + 'add' => [ + 'title' => '添加一个图表', + 'success' => '图表已创建。', + 'failure' => '图表创建失败。', + ], + 'edit' => [ + 'title' => '编辑图表', + 'success' => '图表已更新。', + 'failure' => '图表更新失败。', + ], + ], + + // Team + 'team' => [ + 'team' => '团队', + 'member' => '成员', + 'profile' => '更改资料', + 'description' => '团队成员将能够添加、修改和编辑组件和事件。', + 'add' => [ + 'title' => '添加一个新团队成员', + 'success' => '团队成员已添加。', + 'failure' => '添加组件失败。', + ], + 'edit' => [ + 'title' => '更新配置文件', + 'success' => '配置文件已更新。', + 'failure' => '资料更新失败。', + ], + ], + + // Settings + 'settings' => [ + 'settings' => '设置', + 'app-setup' => [ + 'app-setup' => '应用安装', + 'images-only' => '只能上传图像。', + 'too-big' => '你上传的文件太大了。上传的图像大小应小于:size', + ], + 'security' => [ + 'security' => '安全', + 'two-factor' => '没有启用双因素身份验证的用户', + ], + 'stylesheet' => [ + 'stylesheet' => '样式表', + ], + 'theme' => [ + 'theme' => '主题', + ], + 'edit' => [ + 'success' => '设置已保存。', + 'failure' => '无法保存设置。', + ], + ], + + // Login + 'login' => [ + 'login' => '登陆', + 'logged_in' => '您已登陆', + 'welcome' => '欢迎回来!', + 'two-factor' => '请输入您的双重验证Token。', + ], + + // Sidebar footer + 'help' => '帮助', + 'status_page' => '状态页面', + 'logout' => '注销', + + // Notifications + 'notifications' => [ + 'notifications' => '通知', + 'awesome' => '太棒了!', + 'whoops' => '哎呦!', + ], + + // Welcome modal + 'welcome' => [ + 'welcome' => '欢迎来到Cachet', + 'message' => '您的状态页面即将准备好了!您可能想要配置这些额外的设置', + 'close' => '您可以直接进入仪表盘', + 'steps' => [ + 'component' => '创建组件', + 'incident' => '创建事件', + 'customize' => '自定义', + 'team' => '添加用户', + 'api' => '生成 API 令牌。', + 'two-factor' => '双因素认证', + ], + ], + +]; diff --git a/resources/lang/zh-CN/errors.php b/resources/lang/zh-CN/errors.php new file mode 100644 index 00000000..4b324707 --- /dev/null +++ b/resources/lang/zh-CN/errors.php @@ -0,0 +1,16 @@ + [ + 'code' => '404', + 'title' => '这个页面失踪了!', + 'message' => '抱歉,但我们无法找到您要访问的的页面。请检查你的 URL,然后重试。', + 'link' => '返回主页', + ], + 'unauthorized' => [ + 'code' => '401', + 'title' => '未授权', + 'message' => '很抱歉,您需要管理员权限才能看到此页面。', + 'link' => '返回主页', + ], +]; diff --git a/resources/lang/zh-CN/forms.php b/resources/lang/zh-CN/forms.php new file mode 100644 index 00000000..fbb869a3 --- /dev/null +++ b/resources/lang/zh-CN/forms.php @@ -0,0 +1,126 @@ + [ + 'email' => '电子邮箱', + 'username' => '用户名', + 'password' => '密码', + 'site_name' => '站点名称', + 'site_domain' => '站点域名', + 'site_timezone' => '选择您的时区', + 'site_locale' => '选择您的语言', + 'enable_google2fa' => '启用谷歌双因素身份验证', + ], + + // Login form fields + 'login' => [ + 'email' => '电子邮箱', + 'password' => '密码', + '2fauth' => '双因素验证代码', + 'invalid' => '无效的电子邮件或密码。', + 'invalid-token' => '无效的令牌。', + ], + + // Incidents form fields + 'incidents' => [ + 'name' => '事件名', + 'status' => '状态', + 'component' => '组件', + 'message' => '消息', + 'message-help' => '您可以使用Markdown语言。', + 'scheduled_at' => '什么时间安排维护?', + + 'templates' => [ + 'name' => '事件名', + 'template' => '模板', + ], + ], + + // Components form fields + 'components' => [ + 'name' => '组件名', + 'status' => '状态', + 'group' => '部件分组', + 'description' => '描述', + 'link' => '链接', + 'tags' => '标签', + 'tags-help' => '以逗号分隔。', + + 'groups' => [ + 'name' => '组名', + ], + ], + + // Metric form fields + 'metrics' => [ + 'name' => '图表名', + 'suffix' => '后缀', + 'description' => '描述信息', + 'description-help' => '您可以使用Markdown语言。', + 'display-chart' => '在状态页上显示图表?', + 'default-value' => '默认值', + 'calc_type' => '图表计算方法', + 'type_sum' => '求和', + 'type_avg' => '求平均数', + + 'points' => [ + 'value' => '数值', + ], + ], + + // Settings + 'settings' => [ + /// Application setup + 'app-setup' => [ + 'site-name' => '站点名称', + 'site-url' => '站点URL', + 'site-timezone' => '站点时区', + 'site-locale' => '站点语言', + 'date-format' => '日期格式', + 'display-graphs' => '是否在状态页上显示图表', + 'about-this-page' => '关于这个页面', + 'days-of-incidents' => '显示多少天的事件?', + 'banner' => '横幅图像', + 'banner-help' => '建议上传文件宽度不大于930像素。', + 'google-analytics' => 'Google Analytics 代码', + ], + 'security' => [ + 'allowed-domains' => '允许的域', + 'allowed-domains-help' => '以逗号分隔。默认情况下,API跨域请求将自动允许以上已设置的域。', + ], + 'stylesheet' => [ + 'custom-css' => '自定义样式表', + ], + 'theme' => [ + 'background-color' => '背景色', + 'text-color' => '文字颜色', + ], + ], + + 'user' => [ + 'username' => '用户名', + 'email' => '电子邮箱', + 'password' => '密码', + 'api-token' => 'API 令牌', + 'api-token-help' => '重新生成您的 API 令牌将阻止现有的应用程序访问Cachet。', + '2fa' => [ + 'help' => '启用双因素身份验证会增加您的帐户安全。您将需要下载 Google Authenticator 或类似的应用到您的移动设备。当您登录时将会要求您提供由应用程序生成的一个短码。', + ], + ], + + // Buttons + 'add' => '增加', + 'save' => '保存​​', + 'update' => '更新', + 'create' => '创建', + 'edit' => '编辑', + 'delete' => '删除', + 'submit' => '提交', + 'cancel' => '取消', + 'remove' => '移除', + + // Other + 'optional' => '* 可选', +]; diff --git a/resources/lang/zh-Hans/pagination.php b/resources/lang/zh-CN/pagination.php old mode 100755 new mode 100644 similarity index 85% rename from resources/lang/zh-Hans/pagination.php rename to resources/lang/zh-CN/pagination.php index 74a172f9..2fb34ebd --- a/resources/lang/zh-Hans/pagination.php +++ b/resources/lang/zh-CN/pagination.php @@ -13,7 +13,7 @@ return [ | */ - 'previous' => '« 前一页', - 'next' => '后一页 »', + 'previous' => '« 上一个', + 'next' => '下一个 »', ]; diff --git a/resources/lang/zh-Hans/reminders.php b/resources/lang/zh-CN/reminders.php old mode 100755 new mode 100644 similarity index 59% rename from resources/lang/zh-Hans/reminders.php rename to resources/lang/zh-CN/reminders.php index f5f3bd94..841327ee --- a/resources/lang/zh-Hans/reminders.php +++ b/resources/lang/zh-CN/reminders.php @@ -13,10 +13,10 @@ return [ | */ - 'password' => '密码必须至少有六个字符,而两次输入的密码也必须匹配。', - 'user' => '无法找到拥有该电邮地址的用戶。', - 'token' => '无效的密码重置令牌。', - 'sent' => '已发送密码重置邮件。', - 'reset' => '成功重置密码。', + 'password' => '密码至少应有六个字符 并且与“确认密码”相匹配', + 'user' => '我们没有找到使用这个邮箱地址的用户', + 'token' => '这个密码重置凭据是无效的', + 'sent' => '已经发送密码重置提示信息!', + 'reset' => '密码已重置!', ]; diff --git a/resources/lang/zh-CN/setup.php b/resources/lang/zh-CN/setup.php new file mode 100644 index 00000000..40671f9f --- /dev/null +++ b/resources/lang/zh-CN/setup.php @@ -0,0 +1,14 @@ + '设置', + 'title' => '安装 Cachet', + 'service_details' => '服务细节', + 'status_page_setup' => '状态页面设置', + 'show_support' => '想支持Cachet?在页脚放Cachet的链接吧', + 'admin_account' => '管理员帐户', + 'complete_setup' => '设置完成', + 'completed' => 'Cachet已成功配置!', + 'finish_setup' => '前往控制面板', + 'allow_tracking' => '允许匿名用量跟踪吗?', +]; diff --git a/resources/lang/zh-CN/validation.php b/resources/lang/zh-CN/validation.php new file mode 100644 index 00000000..32a37dcf --- /dev/null +++ b/resources/lang/zh-CN/validation.php @@ -0,0 +1,106 @@ + ':attribute 必须是可以接受的。', + 'active_url' => ':attribute 不是一个有效的URL网址。', + 'after' => ':attribute 必须在 :date 之后。', + 'alpha' => ':attribute 只能包含字母。', + 'alpha_dash' => ':attribute 只能包含字母,数字和破折号。', + 'alpha_num' => ':attribute 只允许包含字母和数字。', + 'array' => ':attribute 必须是个数组。', + 'before' => ':attribute 必须在 :date 之前。', + 'between' => [ + 'numeric' => ':attribute 必须在 :min 到 :max 之间。', + 'file' => ':attribute 必须在 :min 到 :max KB 之间。', + '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 位之间。', + 'email' => ':attribute 必须是个有效的邮件地址。', + 'exists' => '选择的 :attribute 无效。', + 'image' => ':attribute 必须是图片。', + 'in' => '选择的 :attribute 无效。', + 'integer' => ':attribute 必须是整数。', + 'ip' => ':attribute 必须是一个有效的 IP 地址。', + 'max' => [ + 'numeric' => ':attribute 不能大于 :max。', + 'file' => ':attribute 不能大于 :max KB。', + 'string' => ':attribute 不能大于 :max 个字符。', + 'array' => ':attribute 不能超过 :max 个。', + ], + 'mimes' => ':attribute 文件类型必须是 :values。', + 'min' => [ + 'numeric' => ':attribute 最少是 :min。', + 'file' => ':attribute 至少需要 :min KB。', + 'string' => ':attribute 最少需要 :min个字符。', + 'array' => ':attribute 最少需要 :min 个。', + ], + 'not_in' => '选择的 :attribute 无效。', + 'numeric' => ':attribute 必须是数字。', + 'regex' => ':attribute 格式无效。', + 'required' => ':attribute 字段必填。', + 'required_if' => ':attribute 项在 :other 是 :value 时是必须填写的。', + '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 KB大小', + 'string' => ':attribute 必须是 :size 个字符', + 'array' => ':attribute 必须包含 :size 个', + ], + 'unique' => ':attribute 已经被占用', + 'url' => ':attribute 的格式无效', + 'timezone' => ':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' => [], + +]; diff --git a/resources/lang/zh-Hans/cachet.php b/resources/lang/zh-Hans/cachet.php deleted file mode 100755 index 43eee11e..00000000 --- a/resources/lang/zh-Hans/cachet.php +++ /dev/null @@ -1,59 +0,0 @@ - [ - 'status' => [ - 1 => '正常运行', - 2 => '性能问题', - 3 => '部分停止运作', - 4 => '停止运作', - ], - ], - - // Incidents - 'incidents' => [ - 'none' => '沒有任何事件。', - 'past' => '以前的事件', - 'previous_week' => '上星期', - 'next_week' => '下星期', - 'none' => '沒有任何报告', - 'scheduled' => '排程维护', - 'scheduled_at' => ',於:timestamp', - 'status' => [ - 0 => '排程中的维护', // TODO: Hopefully remove this. - 1 => '调查中', - 2 => '已辨明', - 3 => '警戒中', - 4 => '已修复', - ], - ], - - // Service Status - 'service' => [ - 'good' => '全部系统运作正常。', - 'bad' => '部分系统出现异常。', - ], - - 'api' => [ - 'regenerate' => '重新生成 API 密钥', - 'revoke' => '撤销 API 密钥', - ], - - // Metrics - 'metrics' => [ - 'filter' => [ - 'hourly' => '每小时', - 'daily' => '每天', - 'monthly' => '每月', - ], - ], - - // Other - 'powered_by' => ':app 状态页是由 Cachet 提供。', - 'about_this_site' => '关于本站', - 'rss-feed' => 'RSS 订阅', - 'atom-feed' => 'Atom 订阅', - 'feed' => 'Status 订阅', - -]; diff --git a/resources/lang/zh-Hans/dashboard.php b/resources/lang/zh-Hans/dashboard.php deleted file mode 100755 index cb3497e2..00000000 --- a/resources/lang/zh-Hans/dashboard.php +++ /dev/null @@ -1,186 +0,0 @@ - '仪表板', - - // Incidents - 'incidents' => [ - 'title' => '事件与排程', - 'incidents' => '事件', - 'logged' => '{0} 做得好,没有任何事件。|你记录了一个事件。|你回报了 :count 个事件。', - 'incident-create-template' => '新增模板', - 'incident-templates' => '事件模板', - 'add' => [ - 'title' => '新增事件', - 'success' => '事件新增成功。', - 'failure' => '新增事件时遇到一些问题。', - ], - 'edit' => [ - 'title' => '修改事件', - 'success' => '事件更新成功。', - 'failure' => '更新事件时遇到一些问题。', - ], - - // Incident templates - 'templates' => [ - 'title' => '事件模板', - 'add' => [ - 'title' => '新增事件模板', - 'success' => '事件模板新增成功。', - 'failure' => '新增事件模板时遇到一些问题。', - ], - 'edit' => [ - 'title' => '修改事件模板', - 'success' => '事件模板更新成功!', - 'failure' => '更新事件模板时遇到一些问题。', - ], - ], - ], - - // Incident Maintenance - 'schedule' => [ - 'schedule' => '排程维护', - 'scheduled_at' => '排程于 :timestamp', - 'add' => [ - 'title' => '新增排程维护', - 'success' => '排程维护新增成功。', - 'failure' => '新增排程维护时遇到一些问题。', - ], - 'edit' => [ - 'title' => '修改排程维护', - 'success' => '排程维护修改成功!', - 'failure' => '修改排程维护时遇到一些问题。', - ], - 'delete' => [ - 'success' => '成功删除了排程维护!該排程维护將不會出現在状态页上。', - 'failure' => '无法刪除該排程维护。请稍后再试。', - ], - ], - - // Components - 'components' => [ - 'components' => '组件', - 'component_statuses' => '组件状态', - 'listed_group' => '屬于:name组', - 'add' => [ - 'title' => '新增组件', - 'message' => '你应该先新增一个组件。', - 'success' => '组件新增成功。', - 'failure' => '新增组件时遇到一些问题。', - ], - 'edit' => [ - 'title' => '修改组件', - 'success' => '组件修改成功。', - 'failure' => '修改组件时遇到一些问题。', - ], - - // Component groups - 'groups' => [ - 'groups' => '组件组|组件组', - 'add' => [ - 'title' => '新增组件组', - 'success' => '组件组新增成功。', - 'failure' => '新增组件组时遇到一些问题。', - ], - 'edit' => [ - 'title' => '修改组件组', - 'success' => '组件组修改成功。', - 'failure' => '修改组件组时遇到一些问题。', - ], - ], - ], - - // Metrics - 'metrics' => [ - 'metrics' => '指标', - 'add' => [ - 'title' => '新增指标', - 'success' => '指标新增成功。', - 'failure' => '新增指标时遇到一些问题。', - ], - 'edit' => [ - 'title' => '修改指标', - 'success' => '指标修改成功。', - 'failure' => '修改指标时遇到一些问题。', - ], - ], - - // Team - 'team' => [ - 'team' => '团队', - 'member' => '成员', - 'profile' => '个人档案', - 'description' => '团队成员可以新增、修改、或更新组件和事件。', - 'add' => [ - 'title' => '新增团队成员', - 'success' => '成功新增团队成员。', - 'failure' => '新增团队成员时遇到一些问题。', - ], - 'edit' => [ - 'title' => '修改个人档案', - 'success' => '成功修改个人档案。', - 'failure' => '更新时遇到一些问题。', - ], - ], - - // Settings - 'settings' => [ - 'settings' => '设置', - 'app-setup' => [ - 'app-setup' => '应用程序设置', - 'images-only' => '你只能上载图片。', - 'too-big' => '档案大小过大。请尝试上载一张大小小于 :size 的图片。', - ], - 'security' => [ - 'security' => '安全', - 'two-factor' => '下列用户没有使用双重认证', - ], - 'stylesheet' => [ - 'stylesheet' => '样式表', - ], - 'theme' => [ - 'theme' => '主题', - ], - 'edit' => [ - 'success' => '设置已储存。', - 'failure' => '设置储存失败。', - ], - ], - - // Login - 'login' => [ - 'login' => '登录', - 'logged_in' => '你已经登录。', - 'welcome' => '欢迎回来!', - 'two-factor' => '请输入令牌。', - ], - - // Sidebar footer - 'help' => '帮助', - 'status_page' => '状态页', - 'logout' => '退出', - - // Notifications - 'notifications' => [ - 'notifications' => '通知', - 'awesome' => '太好了。', - 'whoops' => '哎呀。', - ], - - // Welcome modal - 'welcome' => [ - 'welcome' => '欢迎来到 Cachet', - 'message' => '你的状态页快准备好了!不过你也许想先调整一下下列设置。', - 'close' => '直接前往仪表板', - 'steps' => [ - 'component' => '新增组件', - 'incident' => '新增事件', - 'customize' => '定制化', - 'team' => '新增用戶', - 'api' => '生成 API 密钥', - 'two-factor' => '两步验证', - ], - ], - -]; diff --git a/resources/lang/zh-Hans/errors.php b/resources/lang/zh-Hans/errors.php deleted file mode 100755 index 81326c8e..00000000 --- a/resources/lang/zh-Hans/errors.php +++ /dev/null @@ -1,16 +0,0 @@ - [ - 'code' => '404', - 'title' => '找不到页面', - 'message' => '抱歉,你所请求的页面并不存在。请检查你的 URL 是否正确并再试一次。', - 'link' => '回到主页', - ], - 'unauthorized' => [ - 'code' => '401', - 'title' => '未经授权', - 'message' => '抱歉,你需要管理员权限方可浏览本页面。', - 'link' => '回到主页', - ], -]; diff --git a/resources/lang/zh-Hans/forms.php b/resources/lang/zh-Hans/forms.php deleted file mode 100755 index e2bc88d6..00000000 --- a/resources/lang/zh-Hans/forms.php +++ /dev/null @@ -1,126 +0,0 @@ - [ - 'email' => '电邮地址', - 'username' => '用戶名', - 'password' => '密码', - 'site_name' => '网站名称', - 'site_domain' => '网站域名', - 'site_timezone' => '选择你的时區', - 'site_locale' => '选择你的语言', - 'enable_google2fa' => '启用 Google 两步验证', - ], - - // Login form fields - 'login' => [ - 'email' => '电邮地址', - 'password' => '密码', - '2fauth' => '令牌', - 'invalid' => '错误的电邮地址或密码', - 'invalid-token' => '错误的令牌', - ], - - // Incidents form fields - 'incidents' => [ - 'name' => '名称', - 'status' => '状态', - 'component' => '组件', - 'message' => '信息', - 'message-help' => '你可以使用 Markdown 。', - 'scheduled_at' => '排期在什么时候進行维护?', - - 'templates' => [ - 'name' => '名称', - 'template' => '模板', - ], - ], - - // Components form fields - 'components' => [ - 'name' => '名称', - 'status' => '状态', - 'group' => '组別', - 'description' => '描述', - 'link' => '连结', - 'tags' => '标签', - 'tags-help' => '请以半角逗号分隔。', - - 'groups' => [ - 'name' => '名称', - ], - ], - - // Metric form fields - 'metrics' => [ - 'name' => '名称', - 'suffix' => '後綴', - 'description' => '描述', - 'description-help' => '你可以使用 Markdown 。', - 'display-chart' => '在状态页上显示图表?', - 'default-value' => '默认值', - 'calc_type' => '指标的计算方法', - 'type_sum' => '总和', - 'type_avg' => '平均', - - 'points' => [ - 'value' => '值', - ], - ], - - // Settings - 'settings' => [ - /// Application setup - 'app-setup' => [ - 'site-name' => '网站名称', - 'site-url' => '网站 URL', - 'site-timezone' => '网站时區', - 'site-locale' => '网站语言', - 'date-format' => '日期格式', - 'display-graphs' => '在状态页上显示图片?', - 'about-this-page' => '关于本站', - 'days-of-incidents' => '显示多少天前的事件?', - 'banner' => '图片横幅', - 'banner-help' => '横幅宽度建议少于 930px 。', - 'google-analytics' => 'Google Analytics 代码', - ], - 'security' => [ - 'allowed-domains' => '容许访问的域名', - 'allowed-domains-help' => '请以半角逗号分隔。以上域名将会自动允许访问。', - ], - 'stylesheet' => [ - 'custom-css' => '自定义样式表', - ], - 'theme' => [ - 'background-color' => '背景颜色', - 'text-color' => '文字颜色', - ], - ], - - 'user' => [ - 'username' => '用户名', - 'email' => '电邮地址', - 'password' => '密码', - 'api-token' => 'API 密钥', - 'api-token-help' => '重新生成 API 密钥将会导致现存的应用程式无法访问 Cachet 。', - '2fa' => [ - 'help' => '启用两步认证会使你的帐户更安全。您需要下载Google Authenticator 或类似的应用程式到您的设备上。启用后,你需要提供由该应用程序生成的令牌方可登录。', - ], - ], - - // Buttons - 'add' => '增加', - 'save' => '储存', - 'update' => '更新', - 'create' => '新增', - 'edit' => '修改', - 'delete' => '删除', - 'submit' => '提交', - 'cancel' => '取消', - 'remove' => '删除', - - // Other - 'optional' => '* 可选项目', -]; diff --git a/resources/lang/zh-Hans/setup.php b/resources/lang/zh-Hans/setup.php deleted file mode 100755 index c284b4f7..00000000 --- a/resources/lang/zh-Hans/setup.php +++ /dev/null @@ -1,14 +0,0 @@ - '安装', - 'title' => '安裝 Cachet', - 'service_details' => '服务详细信息', - 'status_page_setup' => '設置状态页面', - 'show_support' => '希望支持 Cachet 嗎? 在页面底部放置 Cachet 的连结。', - 'admin_account' => '管理员帳戶', - 'complete_setup' => '完成安裝', - 'completed' => '成功安裝 Cachet !', - 'finish_setup' => '前往仪表板', - 'allow_tracking' => '允许匿名统计?', -]; diff --git a/resources/lang/zh-Hant/validation.php b/resources/lang/zh-Hant/validation.php deleted file mode 100755 index c9b21ca0..00000000 --- a/resources/lang/zh-Hant/validation.php +++ /dev/null @@ -1,106 +0,0 @@ - 'The :attribute must be accepted.', - 'active_url' => 'The :attribute is not a valid URL.', - 'after' => 'The :attribute must be a date after :date.', - 'alpha' => 'The :attribute may only contain letters.', - 'alpha_dash' => 'The :attribute may only contain letters, numbers, and dashes.', - 'alpha_num' => 'The :attribute may only contain letters and numbers.', - 'array' => 'The :attribute must be an array.', - 'before' => 'The :attribute must be a date before :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.', - 'date' => 'The :attribute is not a valid date.', - 'date_format' => 'The :attribute does not match the format :format.', - '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.', - 'email' => 'The :attribute must be a valid email address.', - 'exists' => 'The selected :attribute is invalid.', - 'image' => 'The :attribute must be an image.', - 'in' => 'The selected :attribute is invalid.', - 'integer' => 'The :attribute must be an integer.', - 'ip' => 'The :attribute must be a valid IP address.', - 'max' => [ - 'numeric' => 'The :attribute may not be greater than :max.', - 'file' => 'The :attribute may not be greater than :max kilobytes.', - 'string' => 'The :attribute may not be greater than :max characters.', - 'array' => 'The :attribute may not have more than :max items.', - ], - 'mimes' => '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.', - ], - 'not_in' => 'The selected :attribute is invalid.', - 'numeric' => 'The :attribute must be a number.', - 'regex' => 'The :attribute format is invalid.', - 'required' => 'The :attribute field is required.', - 'required_if' => 'The :attribute field is required when :other is :value.', - 'required_with' => 'The :attribute field is required when :values is present.', - 'required_with_all' => 'The :attribute field is required when :values is 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.', - ], - 'unique' => 'The :attribute has already been taken.', - 'url' => 'The :attribute format is invalid.', - 'timezone' => 'The :attribute must be a valid zone.', - - /* - |-------------------------------------------------------------------------- - | 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' => [], - -]; diff --git a/resources/lang/zh-Hant/cachet.php b/resources/lang/zh-TW/cachet.php old mode 100755 new mode 100644 similarity index 100% rename from resources/lang/zh-Hant/cachet.php rename to resources/lang/zh-TW/cachet.php diff --git a/resources/lang/zh-Hant/dashboard.php b/resources/lang/zh-TW/dashboard.php old mode 100755 new mode 100644 similarity index 100% rename from resources/lang/zh-Hant/dashboard.php rename to resources/lang/zh-TW/dashboard.php diff --git a/resources/lang/zh-Hant/errors.php b/resources/lang/zh-TW/errors.php old mode 100755 new mode 100644 similarity index 100% rename from resources/lang/zh-Hant/errors.php rename to resources/lang/zh-TW/errors.php diff --git a/resources/lang/zh-Hant/forms.php b/resources/lang/zh-TW/forms.php old mode 100755 new mode 100644 similarity index 100% rename from resources/lang/zh-Hant/forms.php rename to resources/lang/zh-TW/forms.php diff --git a/resources/lang/zh-Hant/pagination.php b/resources/lang/zh-TW/pagination.php old mode 100755 new mode 100644 similarity index 100% rename from resources/lang/zh-Hant/pagination.php rename to resources/lang/zh-TW/pagination.php diff --git a/resources/lang/zh-Hant/reminders.php b/resources/lang/zh-TW/reminders.php old mode 100755 new mode 100644 similarity index 100% rename from resources/lang/zh-Hant/reminders.php rename to resources/lang/zh-TW/reminders.php diff --git a/resources/lang/zh-Hant/setup.php b/resources/lang/zh-TW/setup.php old mode 100755 new mode 100644 similarity index 100% rename from resources/lang/zh-Hant/setup.php rename to resources/lang/zh-TW/setup.php diff --git a/resources/lang/zh-Hans/validation.php b/resources/lang/zh-TW/validation.php old mode 100755 new mode 100644 similarity index 100% rename from resources/lang/zh-Hans/validation.php rename to resources/lang/zh-TW/validation.php