From 4a5c8103415793bd86aed67c0aa9f879b305fe07 Mon Sep 17 00:00:00 2001 From: phecho Date: Wed, 11 Nov 2015 21:17:20 +0800 Subject: [PATCH] Added lang package of traditional chinese(zh-TW) --- resources/lang/zh-TW/auth.php | 28 ++++ resources/lang/zh-TW/cachet.php | 116 ++++++++++++++ resources/lang/zh-TW/dashboard.php | 229 ++++++++++++++++++++++++++++ resources/lang/zh-TW/forms.php | 161 +++++++++++++++++++ resources/lang/zh-TW/pagination.php | 28 ++++ resources/lang/zh-TW/passwords.php | 31 ++++ resources/lang/zh-TW/setup.php | 23 +++ resources/lang/zh-TW/validation.php | 116 ++++++++++++++ 8 files changed, 732 insertions(+) create mode 100644 resources/lang/zh-TW/auth.php create mode 100644 resources/lang/zh-TW/cachet.php create mode 100644 resources/lang/zh-TW/dashboard.php create mode 100644 resources/lang/zh-TW/forms.php create mode 100644 resources/lang/zh-TW/pagination.php create mode 100644 resources/lang/zh-TW/passwords.php create mode 100644 resources/lang/zh-TW/setup.php create mode 100644 resources/lang/zh-TW/validation.php diff --git a/resources/lang/zh-TW/auth.php b/resources/lang/zh-TW/auth.php new file mode 100644 index 00000000..2778aac7 --- /dev/null +++ b/resources/lang/zh-TW/auth.php @@ -0,0 +1,28 @@ + '登錄憑證無效。', + 'throttle' => '登錄次數過多,請於 :seconds 秒後再試。', + +]; diff --git a/resources/lang/zh-TW/cachet.php b/resources/lang/zh-TW/cachet.php new file mode 100644 index 00000000..2919c02e --- /dev/null +++ b/resources/lang/zh-TW/cachet.php @@ -0,0 +1,116 @@ + [ + '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' => '最近12小時', + 'weekly' => '周', + 'monthly' => '月', + ], + ], + + // Subscriber + 'subscriber' => [ + 'subscribe' => '訂閱最新的更新。', + 'button' => '訂閱', + 'email' => [ + 'subscribe' => '訂閱電子郵件更新。', + 'subscribed' => '您已經訂閱電子郵件通知,請檢查您的電子郵件,確認您的訂閱。', + 'verified' => '您的電子郵件訂閱已確認。謝謝!', + 'unsubscribe' => '取消電子郵件訂閱。', + 'unsubscribed' => '您的電子郵件訂閱已被取消。', + 'failure' => '郵件訂閱失敗。', + 'verify' => [ + 'text' => '請確認您的 :app_name 電子郵件訂閱。\\n:link\\n此致,:app_name', + 'html-preheader' => '請確認您的 :app_name 狀態更新郵件訂閱。', + 'html' => '

請確認您的 :app_name 電子郵件訂閱。

:link

此致,:app_name

', + ], + 'maintenance' => [ + 'text' => '新的維護計劃已被安排在 :app_name 上。\\n此致,:app_name', + 'html-preheader' => '新的維護計劃已被安排在 :app_name 上。', + 'html' => '

新的維護計劃已被安排在 :app_name 上。

此致,:app_name

', + ], + 'incident' => [ + 'text' => ':app_name 有新事件報告。\\n此致,:app_name', + 'html-preheader' => ':app_name 有新事件報告。', + 'html' => '

:app_name 有新事件報告。

此致,:app_name

', + ], + ], + ], + + 'users' => [ + 'email' => [ + 'invite' => [ + 'text' => "您已被邀請加入 :app_name 團隊的狀態頁, 請點擊以下鏈接進行註冊。\n:link\n謝謝, :app_name", + 'html-preheader' => '您已被邀請加入 :app_name.', + 'html' => '

您已被邀請加入 :app_name 團隊的狀態頁, 請點擊以下鏈接進行註冊。

:link

謝謝, :app_name

', + ], + ], + ], + + 'signup' => [ + 'title' => '註冊', + 'username' => '用戶名', + 'email' => '郵箱', + 'password' => '密碼', + 'success' => '您的賬號已註冊成功。', + 'failure' => '註冊失敗。', + ], + + // Other + 'powered_by' => ':app 應用狀態頁面由 Cachet提供支持。', + 'about_this_site' => '關於此站點', + 'rss-feed' => 'RSS 訂閱', + 'atom-feed' => 'Atom 訂閱', + 'feed' => '狀態源', + +]; diff --git a/resources/lang/zh-TW/dashboard.php b/resources/lang/zh-TW/dashboard.php new file mode 100644 index 00000000..29ee02e5 --- /dev/null +++ b/resources/lang/zh-TW/dashboard.php @@ -0,0 +1,229 @@ + '儀表盤', + + // 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' => '組件分組|組件分組', + 'no_components' => '您應添加壹個組件分組。', + 'add' => [ + 'title' => '添加組件分組', + 'success' => '組件分組已添加。', + 'failure' => '分組添加失敗。', + ], + 'edit' => [ + 'title' => '編輯組件分組', + 'success' => '分組已更新。', + 'failure' => '分組更新失敗。', + ], + ], + ], + + // Metrics + 'metrics' => [ + 'metrics' => '圖表', + 'add' => [ + 'title' => '添加圖表', + 'success' => '圖表已創建。', + 'failure' => '圖表創建失敗。', + ], + 'edit' => [ + 'title' => '編輯圖表', + 'success' => '圖表已更新。', + 'failure' => '圖表更新失敗。', + ], + ], + + // Subscribers + 'subscribers' => [ + 'subscribers' => '訂閱者', + 'description' => '當有新的事件被創建時訂閱者將收到郵件通知.', + 'verified' => '已認證', + 'not_verified' => '未認證', + 'add' => [ + 'title' => '添加訂閱者', + 'success' => '訂閱者已添加成功.', + 'failure' => '訂閱者添加失敗.', + ], + 'edit' => [ + 'title' => '更新訂閱者', + 'success' => '訂閱者信息已更新.', + 'failure' => '更新訂閱者信息失敗.', + ], + ], + + // Team + 'team' => [ + 'team' => '團隊', + 'member' => '成員', + 'profile' => '更改資料', + 'description' => '團隊成員將能夠添加、修改和編輯組件和事件。', + 'add' => [ + 'title' => '添加團隊成員', + 'success' => '團隊成員已添加。', + 'failure' => '添加組件失敗。', + ], + 'edit' => [ + 'title' => '更新配置文件', + 'success' => '配置文件已更新。', + 'failure' => '資料更新失敗。', + ], + 'delete' => [ + 'success' => '團隊成員已刪除.', + 'failure' => '刪除團隊成員失敗.', + ], + 'invite' => [ + 'title' => '邀請團隊成員', + 'success' => '團隊成員已邀請成功.', + 'failure' => '邀請團隊成員失敗.', + ], + ], + + // Settings + 'settings' => [ + 'settings' => '設置', + 'app-setup' => [ + 'app-setup' => '系統設置', + 'images-only' => '只能上傳圖像。', + 'too-big' => '您上傳的文件太大了。上傳的圖像大小應小於:size', + ], + 'analytics' => [ + 'analytics' => '第三方統計', + ], + 'localization' => [ + 'localization' => '國際化', + ], + '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-TW/forms.php b/resources/lang/zh-TW/forms.php new file mode 100644 index 00000000..82b7f468 --- /dev/null +++ b/resources/lang/zh-TW/forms.php @@ -0,0 +1,161 @@ + [ + 'email' => '電子郵箱', + 'username' => '用戶名', + 'password' => '密碼', + 'site_name' => '站點名稱', + 'site_domain' => '站點域名', + 'site_timezone' => '選擇您的時區', + 'site_locale' => '選擇您的語言', + 'enable_google2fa' => '啟用谷歌雙因素身份驗證', + 'cache_driver' => '緩存驅動', + 'session_driver' => '會話驅動', + ], + + // Login form fields + 'login' => [ + 'email' => '電子郵箱', + 'password' => '密碼', + '2fauth' => '雙因素驗證代碼', + 'invalid' => '無效的電子郵件或密碼。', + 'invalid-token' => '無效的令牌。', + 'cookies' => '您必須啟用 cookies 來進行登錄。', + ], + + // Incidents form fields + 'incidents' => [ + 'name' => '事件名', + 'status' => '狀態', + 'component' => '組件', + 'message' => '消息', + 'message-help' => '您可以使用Markdown語言。', + 'scheduled_at' => '什麽時間安排維護?', + 'incident_time' => '這次事件是什麽時候發生的?', + 'notify_subscribers' => '通知訂閱者', + 'visibility' => '事件的可見性', + 'public' => '公共可見', + 'logged_in_only' => '僅登錄用戶可見', + 'templates' => [ + 'name' => '事件模板名', + 'template' => '模板', + ], + ], + + // Components form fields + 'components' => [ + 'name' => '組件名', + 'status' => '狀態', + 'group' => '組件分組', + 'description' => '描述', + 'link' => '鏈接', + 'tags' => '標簽', + 'tags-help' => '以逗號分隔。', + 'enabled' => '啟用', + + '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', + 'display-graphs' => '是否在狀態頁上顯示圖表', + 'about-this-page' => '關於這個頁面', + 'days-of-incidents' => '顯示多少天的事件?', + 'banner' => '橫幅圖像', + 'banner-help' => '建議上傳文件寬度不大於930像素。', + 'subscribers' => '允許用戶訂閱郵件通知嗎?', + ], + 'analytics' => [ + 'analytics_google' => 'Google Analytics 代碼', + 'analytics_gosquared' => 'GoSquared Analytics 代碼', + 'analytics_piwik_url' => '輸入Piwik實例的URL(不含http(s)://)', + 'analytics_piwik_siteid' => 'Piwik 的站點 id', + ], + 'localization' => [ + 'site-timezone' => '站點時區', + 'site-locale' => '站點語言', + 'date-format' => '日期格式', + 'incident-date-format' => '事件的時間戳格式', + ], + 'security' => [ + 'allowed-domains' => '允許的域', + 'allowed-domains-help' => '以逗號分隔。默認情況下,API跨域請求將自動允許以上已設置的域。', + ], + 'stylesheet' => [ + 'custom-css' => '自定義樣式表', + ], + 'theme' => [ + 'background-color' => '背景色', + 'text-color' => '文字顏色', + 'dashboard-login' => 'Show dashboard button in the footer?', + 'banner-background-color' => 'Banner Background Color', + 'banner-padding' => 'Banner Padding', + 'fullwidth-banner' => 'Enable fullwidth banner?', + ], + ], + + 'user' => [ + 'username' => '用戶名', + 'email' => '電子郵箱', + 'password' => '密碼', + 'api-token' => 'API 令牌', + 'api-token-help' => '重新生成您的 API 令牌將阻止現有的應用程序訪問Cachet。', + 'gravatar' => 'Change your profile picture at Gravatar.', + '2fa' => [ + 'help' => '啟用雙因素身份驗證會增加您的帳戶安全。您將需要下載 Google Authenticator 或類似的應用到您的移動設備。當您登錄時將會要求您提供由應用程序生成的壹個短碼。', + ], + 'team' => [ + 'description' => '請輸入您要邀請的團隊成員的郵件地址:', + 'email' => 'Email #:id', + ], + ], + + // Buttons + 'add' => '增加', + 'save' => '保存​​', + 'update' => '更新', + 'create' => '創建', + 'edit' => '編輯', + 'delete' => '刪除', + 'submit' => '提交', + 'cancel' => '取消', + 'remove' => '移除', + + // Other + 'optional' => '* 可選', +]; diff --git a/resources/lang/zh-TW/pagination.php b/resources/lang/zh-TW/pagination.php new file mode 100644 index 00000000..902e6411 --- /dev/null +++ b/resources/lang/zh-TW/pagination.php @@ -0,0 +1,28 @@ + '« 上壹個', + 'next' => '下壹個 »', + +]; diff --git a/resources/lang/zh-TW/passwords.php b/resources/lang/zh-TW/passwords.php new file mode 100644 index 00000000..795b09a9 --- /dev/null +++ b/resources/lang/zh-TW/passwords.php @@ -0,0 +1,31 @@ + '密碼至少應有六個字符 並且與“確認密碼”相匹配', + 'user' => '未找到使用該郵箱地址的用戶', + 'token' => '該密碼重置憑據無效', + 'sent' => '已經發送密碼重置提示信息!', + 'reset' => '密碼已重置!', + +]; diff --git a/resources/lang/zh-TW/setup.php b/resources/lang/zh-TW/setup.php new file mode 100644 index 00000000..f231a8a5 --- /dev/null +++ b/resources/lang/zh-TW/setup.php @@ -0,0 +1,23 @@ + '安装设置', + 'title' => '安装 Cachet', + 'service_details' => '服务细节', + 'env_setup' => '环境设置', + 'status_page_setup' => '状态页面设置', + 'show_support' => '您想支持Cachet么?', + 'admin_account' => '管理员帐户', + 'complete_setup' => '设置完成', + 'completed' => 'Cachet已成功配置!', + 'finish_setup' => '前往控制面板', +]; diff --git a/resources/lang/zh-TW/validation.php b/resources/lang/zh-TW/validation.php new file mode 100644 index 00000000..930da105 --- /dev/null +++ b/resources/lang/zh-TW/validation.php @@ -0,0 +1,116 @@ + ':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 個', + ], + 'string' => ':attribute必須是壹個字符串。', + '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' => [], + +];