From cebf7466a95c7243b6b50908bdeb7ba6694446af Mon Sep 17 00:00:00 2001 From: Finjon Kiang Date: Mon, 27 Jul 2015 23:51:44 +0800 Subject: [PATCH] add new language zh-tw / Chinese (Taiwan) --- modules/backend/lang/zh-tw/lang.php | 305 ++++++++++++++++++ modules/backend/models/BackendPreferences.php | 1 + modules/cms/lang/zh-tw/lang.php | 297 +++++++++++++++++ modules/system/lang/el/lang.php | 1 + modules/system/lang/en/lang.php | 1 + modules/system/lang/fa/lang.php | 3 +- modules/system/lang/fr/lang.php | 3 +- modules/system/lang/hu/lang.php | 3 +- modules/system/lang/lv/lang.php | 3 +- modules/system/lang/nb-no/lang.php | 3 +- modules/system/lang/ru/lang.php | 3 +- modules/system/lang/zh-cn/lang.php | 3 +- modules/system/lang/zh-tw/lang.php | 287 ++++++++++++++++ modules/system/lang/zh-tw/validation.php | 98 ++++++ 14 files changed, 1004 insertions(+), 7 deletions(-) create mode 100644 modules/backend/lang/zh-tw/lang.php create mode 100644 modules/cms/lang/zh-tw/lang.php create mode 100644 modules/system/lang/zh-tw/lang.php create mode 100644 modules/system/lang/zh-tw/validation.php diff --git a/modules/backend/lang/zh-tw/lang.php b/modules/backend/lang/zh-tw/lang.php new file mode 100644 index 000000000..c066d9eb2 --- /dev/null +++ b/modules/backend/lang/zh-tw/lang.php @@ -0,0 +1,305 @@ + [ + 'title' => '管理介面' + ], + 'field' => [ + 'invalid_type' => '錯誤的字串類型 :type', + 'options_method_not_exists' => "模型 :model 必須定義一個返回 ':field' 表單字串選項的方法 :method()。" + ], + 'widget' => [ + 'not_registered' => "元件 ':name' 還沒註冊", + 'not_bound' => "元件 ':name' 沒綁到控制器" + ], + 'page' => [ + 'untitled' => '未命名', + 'access_denied' => [ + 'label' => '拒絕訪問', + 'help' => "您沒有訪問這個頁面需要的權限.", + 'cms_link' => '返回管理介面' + ] + ], + 'partial' => [ + 'not_found_name' => "元件 ':name' 找不到." + ], + 'account' => [ + 'sign_out' => '登出', + 'login' => '登入', + 'reset' => '重置', + 'restore' => '還原', + 'login_placeholder' => '登入', + 'password_placeholder' => '密碼', + 'forgot_password' => '忘記您的密碼?', + 'enter_email' => '輸入您的email', + 'enter_login' => '輸入帳號', + 'email_placeholder' => 'email', + 'enter_new_password' => '輸入新密碼', + 'password_reset' => '密碼重置', + 'restore_success' => '密碼重置的郵件已發送到您的電子信箱', + 'restore_error' => "找不到使用者 ':login'", + 'reset_success' => '您的密碼已經重置成功. 您現在可以登入了', + 'reset_error' => '密碼重置失敗. 請重試!', + 'reset_fail' => '不能重置您的密碼!', + 'apply' => '套用', + 'cancel' => '取消', + 'delete' => '刪除', + 'ok' => 'OK' + ], + 'dashboard' => [ + 'menu_label' => '儀表板', + 'widget_label' => '元件', + 'widget_width' => '寬度', + 'full_width' => '全部寬度', + 'add_widget' => '新增元件', + 'widget_inspector_title' => '元件設定', + 'widget_inspector_description' => '設定報表元件', + 'widget_columns_label' => '寬度 :columns', + 'widget_columns_description' => '元件寬度, 1 到 10', + 'widget_columns_error' => '請輸入元件寬度, 1 到 10', + 'columns' => '{1} 欄|[2,Inf] 欄', + 'widget_new_row_label' => '強制新列', + 'widget_new_row_description' => '把元件放到新列', + 'widget_title_label' => '元件標題', + 'widget_title_error' => '需要元件標題', + 'status' => [ + 'widget_title_default' => '系統狀態', + 'online' => '在線', + 'maintenance' => '維護中', + 'update_available' => '{0} 更新可用!|{1} 更新可用!|[2,Inf] 更新可用!' + ] + ], + 'user' => [ + 'name' => '管理員', + 'menu_label' => '管理員', + 'menu_description' => '管理管理介面管理員使用者, 群組和權限', + 'list_title' => '管理', + 'new' => '新管理員', + 'login' => '登入', + 'first_name' => '名', + 'last_name' => '姓', + 'full_name' => '全名', + 'email' => '郵件', + 'groups' => '團隊', + 'groups_comment' => '指定這個人屬於哪個群組', + 'avatar' => '頭像', + 'password' => '密碼', + 'password_confirmation' => '確認密碼', + 'permissions' => '權限', + 'account' => '帳號', + 'superuser' => '超級使用者', + 'superuser_comment' => '選取並允許這個人訪問全部區域', + 'send_invite' => '發送邀請郵件', + 'send_invite_comment' => '發送一封包含使用者名和密碼的歡迎郵件', + 'delete_confirm' => '您真的想要刪除這個管理員?', + 'return' => '返回管理員列表', + 'allow' => '允許', + 'inherit' => '繼承', + 'deny' => '拒絕', + 'group' => [ + 'name' => '群組', + 'name_field' => '名字', + 'description_field' => '描述', + 'is_new_user_default_field' => '預設增加新管理員到這個群組', + 'code_field' => '代碼', + 'code_comment' => '如果您想訪問 API, 請輸入唯一碼', + 'menu_label' => '群組', + 'list_title' => '管理群組', + 'new' => '新管理群組', + 'delete_confirm' => '您真的想要刪除這個管理群組?', + 'return' => '返回群組列表', + ], + 'preferences' => [ + 'not_authenticated' => '沒有認證使用者載入或儲存設定' + ] + ], + 'list' => [ + 'default_title' => '列表', + 'search_prompt' => '搜尋...', + 'no_records' => '目前頁面中沒有記錄', + 'missing_model' => ':class 中的列表沒有定義好的模型。', + 'missing_column' => '沒有 :columns 的欄定義', + 'missing_columns' => ':class 中使用的列表沒有定義好的欄', + 'missing_definition' => "列表不包含 ':field' 欄.", + 'behavior_not_ready' => '列表沒有初始化, 確認您的控制器中調用了makeLists()', + 'invalid_column_datetime' => "欄值 ':column' 不是時間對象, 缺少了 \$dates 在模型中的引用嗎?", + 'pagination' => '顯示記錄: :from-:to :total', + 'prev_page' => '之前頁', + 'next_page' => '下一頁', + 'loading' => '載入中...', + 'setup_title' => '建立列表', + 'setup_help' => '使用多選框選擇您想在列表中看到的欄. 您可以通過拖拽調整欄的位置', + 'records_per_page' => '每頁的記錄', + 'records_per_page_help' => '選擇每頁想顯示的記錄數量. 請注意一頁中太多記錄可能會降低性能', + 'delete_selected' => '刪除選擇的', + 'delete_selected_empty' => '沒有需要刪除的記錄', + 'delete_selected_confirm' => '刪除選取的記錄?', + 'delete_selected_success' => '成功刪除選擇的記錄', + ], + 'fileupload' => [ + 'attachment' => '附件', + 'help' => '給附件新增標題和描述', + 'title_label' => '標題', + 'description_label' => '描述' + ], + 'form' => [ + 'create_title' => '新 :name', + 'update_title' => '編輯 :name', + 'preview_title' => '預覽 :name', + 'create_success' => ':name 建立成功', + 'update_success' => ':name 更新成功', + 'delete_success' => ':name 刪除成功', + 'missing_id' => '表單記錄ID沒有指定', + 'missing_model' => ':class 中使用的表單沒有定義的model', + 'missing_definition' => "表單不包含字串 ':field'.", + 'not_found' => '表單 ID :id 找不到', + 'action_confirm' => '您確定?', + 'create' => '建立', + 'create_and_close' => '建立和關閉', + 'creating' => '建立中...', + 'creating_name' => '建立 :name...', + 'save' => '儲存', + 'save_and_close' => '儲存和關閉', + 'saving' => '儲存...', + 'saving_name' => '儲存 :name...', + 'delete' => '刪除', + 'deleting' => '刪除中...', + 'deleting_name' => '刪除 :name...', + 'reset_default' => '重置到預設', + 'resetting' => '重置', + 'resetting_name' => '重置 :name', + 'undefined_tab' => '雜項', + 'field_off' => '關', + 'field_on' => '開', + 'add' => '增加', + 'apply' => '應用', + 'cancel' => '取消', + 'close' => '關閉', + 'confirm' => '確認', + 'reload' => '重新載入', + 'ok' => 'OK', + 'or' => '或', + 'confirm_tab_close' => '您真的想要關閉這個標籤嗎? 未儲存的改變會丟失', + 'behavior_not_ready' => '表單還沒初始化, 確保您調用了控制器中的 initForm()', + 'preview_no_files_message' => '檔案沒有上傳', + 'select' => '選擇', + 'select_all' => 'all', + 'select_none' => 'none', + 'select_placeholder' => '請選擇', + 'insert_row' => '插入行', + 'delete_row' => '刪除行', + 'concurrency_file_changed_title' => '檔案異動', + 'concurrency_file_changed_description' => "您正在編輯的檔案正在被其他使用者修改. 您可以重新載入或覆蓋硬碟上的檔案." + ], + 'relation' => [ + 'missing_config' => "關聯沒有':config'的設定檔案.", + 'missing_definition' => "關聯不包含 ':field' 的定義.", + 'missing_model' => "用於 :class 的關聯沒有定義好的model.", + 'invalid_action_single' => "這個操作不能在單一關聯上執行.", + 'invalid_action_multi' => "這個操作不能在多重關聯上執行.", + 'help' => "點選增加", + 'related_data' => "相關的 :name", + 'add' => "增加", + 'add_selected' => "增加選取的", + 'add_a_new' => "增加一個新的 :name", + 'link_selected' => "關聯選取", + 'link_a_new' => "關聯一個新的 :name", + 'cancel' => "取消", + 'close' => "關閉", + 'add_name' => "增加 :name", + 'create' => "建立", + 'create_name' => "建立 :name", + 'update' => "更新", + 'update_name' => "更新 :name", + 'preview' => "預覽", + 'preview_name' => "預覽 :name", + 'remove' => "移除", + 'remove_name' => "移除 :name", + 'delete' => "刪除", + 'delete_name' => "刪除 :name", + 'delete_confirm' => "您確定?", + 'link' => "關聯", + 'link_name' => "關聯 :name", + 'unlink' => "取消關聯", + 'unlink_name' => "取消關聯 :name", + 'unlink_confirm' => "您確定?", + ], + 'model' => [ + 'name' => 'Model', + 'not_found' => "Model ':class' ID :id 找不到", + 'missing_id' => '沒有指定的ID搜尋model記錄', + 'missing_relation' => "Model ':class' 不包含 ':relation'.", + 'missing_method' => "Model ':class' 不包含 ':method'.", + 'invalid_class' => "Model :model 在 :class 中是錯誤的, 必須繼承 \\Model class.", + 'mass_assignment_failed' => "針對Model屬性':attribute'的大量賦值失敗." + ], + 'warnings' => [ + 'tips' => '系統設定技巧', + 'tips_description' => '您需要注意那些issue, 以使系統設定正確', + 'permissions' => '目錄 :name 或子目錄對PHP不可寫. 請對這個目錄上的webserver設定正確的權限', + 'extension' => 'PHP外掛 :name 沒安裝. 請安裝這個庫並且啟用外掛' + ], + 'editor' => [ + 'menu_label' => '代碼編輯器選項', + 'menu_description' => '自訂代碼編輯器選項, 例如字體大小和顏色主題', + 'font_size' => '字體大小', + 'tab_size' => '標籤大小', + 'use_hard_tabs' => '使用tabs縮進', + 'code_folding' => '代碼摺疊', + 'word_wrap' => '自動換行', + 'highlight_active_line' => '醒目顯示操作中的行', + 'show_invisibles' => '顯示隱藏字元', + 'show_gutter' => '顯示gutter', + 'theme' => '色彩主題' + ], + 'tooltips' => [ + 'preview_website' => '預覽網站' + ], + 'mysettings' => [ + 'menu_label' => '我的設定', + 'menu_description' => '設定涉及到您的管理帳號' + ], + 'myaccount' => [ + 'menu_label' => '我的帳號', + 'menu_description' => '更新您的帳號細節, 例如名字, 郵件地址和密碼', + 'menu_keywords' => '安全登入' + ], + 'branding' => [ + 'menu_label' => '自訂管理介面', + 'menu_description' => '自訂管理區域, 例如名字, 顏色和logo', + 'brand' => '品牌', + 'logo' => 'Logo', + 'logo_description' => '上傳自訂logo到管理介面', + 'app_name' => '網站名稱', + 'app_name_description' => '這個名稱顯示在管理介面的標題區域', + 'app_tagline' => '網站標語', + 'app_tagline_description' => '標語顯示在管理介面的登入介面', + 'colors' => '顏色', + 'primary_light' => '主要 (Light)', + 'primary_dark' => '主要 (Dark)', + 'secondary_light' => '次要 (Light)', + 'secondary_dark' => '次要 (Dark)', + 'styles' => '樣式', + 'custom_stylesheet' => '自訂樣式' + ], + 'backend_preferences' => [ + 'menu_label' => '管理介面設定', + 'menu_description' => '管理您的管理介面設定, 例如希望使用的語言。', + 'locale' => '語言', + 'locale_comment' => '選擇您希望使用的本地語言。' + ], + 'access_log' => [ + 'hint' => '這個log顯示了管理員成功登入的訊息. 記錄保持:days天。', + 'menu_label' => '訪問日誌', + 'menu_description' => '查看成功登入管理介面使用者日誌。', + 'created_at' => '日期 & 時間', + 'login' => '登入', + 'ip_address' => 'IP地址', + 'first_name' => '名', + 'last_name' => '姓', + 'email' => 'Email' + ], + 'filter' => [ + 'all' => '全部' + ] +]; \ No newline at end of file diff --git a/modules/backend/models/BackendPreferences.php b/modules/backend/models/BackendPreferences.php index bb429b3e9..be0d078ad 100644 --- a/modules/backend/models/BackendPreferences.php +++ b/modules/backend/models/BackendPreferences.php @@ -56,6 +56,7 @@ class BackendPreferences extends Model 'pl' => [Lang::get('system::lang.locale.pl'), 'flag-pl'], 'sk' => [Lang::get('system::lang.locale.sk'), 'flag-sk'], 'zh-cn' => [Lang::get('system::lang.locale.zh-cn'), 'flag-cn'], + 'zh-tw' => [Lang::get('system::lang.locale.zh-tw'), 'flag-tw'], 'nb-no' => [Lang::get('system::lang.locale.nb-no'), 'flag-no'], 'el' => [Lang::get('system::lang.locale.el'), 'flag-gr'], ]); diff --git a/modules/cms/lang/zh-tw/lang.php b/modules/cms/lang/zh-tw/lang.php new file mode 100644 index 000000000..affc1b8e1 --- /dev/null +++ b/modules/cms/lang/zh-tw/lang.php @@ -0,0 +1,297 @@ + [ + 'invalid_file' => '不合法的檔案名: :name. 檔案名只能包括字母或數字, _, - 和 .. 一些正確的檔案名: page.htm, page, subdirectory/page', + 'invalid_property' => "屬性 ':name' 不能設定", + 'file_already_exists' => "檔案 ':name' 已經存在.", + 'error_saving' => "保存檔案 ':name' 錯誤. 請檢查寫權限.", + 'error_creating_directory' => '建立檔案夾 :name 錯誤. 請檢查寫權限.', + 'invalid_file_extension'=>'不合法的檔案擴展: :invalid. 允許的擴展: :allowed.', + 'error_deleting' => "刪除模板檔案 ':name' 錯誤. 請檢查寫權限.", + 'delete_success' => '模板成功刪除: :count.', + 'file_name_required' => '需要檔案名字串.' + ], + 'theme' => [ + 'not_found_name' => "主題 ':name' 沒找到.", + 'active' => [ + 'not_set' => '活動主題沒設定.', + 'not_found' => '活動主題找不到.' + ], + 'edit' => [ + 'not_set' => '編輯主題沒設定.', + 'not_found' => '編輯主題沒找到.', + 'not_match' => "您嘗試訪問的對象不屬於正在編輯的主題. 請重載頁面." + ], + 'settings_menu' => '前端主題', + 'settings_menu_description' => '預覽安裝的主題, 選擇一個活動主題.', + 'default_tab' => '屬性', + 'name_label' => '名稱', + 'name_create_placeholder' => '新主題名稱', + 'author_label' => '作者', + 'author_placeholder' => '人或公司名', + 'description_label' => '描述', + 'description_placeholder' => '主題描述', + 'homepage_label' => '主頁', + 'homepage_placeholder' => '網站地址', + 'code_label' => '代碼', + 'code_placeholder' => '發行主題的唯一碼', + 'dir_name_label' => '目錄名', + 'dir_name_create_label' => '目標主題目錄', + 'theme_label' => '主題', + 'theme_title' => '主題', + 'activate_button' => '激活', + 'active_button' => '激活', + 'customize_theme' => '自訂主題', + 'customize_button' => '自訂', + 'duplicate_button' => '複製', + 'duplicate_title' => '複製主題', + 'duplicate_theme_success' => '複製主題成功!', + 'manage_button' => '管理', + 'manage_title' => '管理主題', + 'edit_properties_title' => '主題', + 'edit_properties_button' => '編輯屬性', + 'save_properties' => '保存屬性', + 'import_button' => '導入', + 'import_title' => '導入主題', + 'import_theme_success' => '成功導入主題!', + 'import_uploaded_file' => '主題存檔檔案', + 'import_overwrite_label' => '覆蓋已經存在的檔案', + 'import_overwrite_comment' => '取消勾選, 只導入新檔案', + 'import_folders_label' => '檔案夾', + 'import_folders_comment' => '請選擇您想要導入的主題檔案夾', + 'export_button' => '導出', + 'export_title' => '導出主題', + 'export_folders_label' => '檔案夾', + 'export_folders_comment' => '請選擇您想要導入的主題檔案夾', + 'delete_button' => '刪除', + 'delete_confirm' => '您確定刪除這個主題嗎? 這個操作不能撤銷!', + 'delete_active_theme_failed' => '不能刪除活動主題, 請先嘗試另外一個主題.', + 'delete_theme_success' => '刪除主題成功!', + 'create_title' => '建立主題', + 'create_button' => '建立', + 'create_new_blank_theme' => '建立新的空白主題', + 'create_theme_success' => '建立主題成功!', + 'create_theme_required_name' => '請指點主題名.', + 'new_directory_name_label' => '主題目錄', + 'new_directory_name_comment' => '提供複製主題的新聞目錄名.', + 'dir_name_invalid' => '名稱只能包含數字, 拉丁字母和以下字元: _-', + 'dir_name_taken' => '主題目錄已存在.', + 'find_more_themes' => '在 OctoberCMS 主題商店中搜尋更多主題', + 'saving' => '保存主題...', + 'return' => '返回主題列表', + ], + 'maintenance' => [ + 'settings_menu' => '維護模式', + 'settings_menu_description' => '設定維護模式頁面和開關設定.', + 'is_enabled' => '啟用維護模式', + 'is_enabled_comment' => '當啟用時, 網站訪問者會看到下述頁面.' + ], + 'page' => [ + 'not_found_name' => "頁面 ':name' 找不到", + 'not_found' => [ + 'label' => '頁面找不到', + 'help' => '請求的頁面找不到.' + ], + 'custom_error' => [ + 'label' => '頁面錯誤', + 'help' => "很抱歉, 有一些地方發生了錯誤導致頁面不能顯示." + ], + 'menu_label' => '頁面', + 'unsaved_label' => '未保存頁面', + 'no_list_records' => '找不到頁面', + 'new' => '新頁面', + 'invalid_url' => '不合法的URL格式. URL可以正斜槓開頭, 包含數字, 拉丁字母和下面的字元: ._-[]:?|/+*^$', + 'delete_confirm_multiple' => '真的想要刪除選擇的頁面嗎?', + 'delete_confirm_single' => '真的想要刪除這個頁面嗎?', + 'no_layout' => '-- 沒有佈局 --' + ], + 'layout' => [ + 'not_found_name' => "佈局 ':name' 找不到", + 'menu_label' => '佈局', + 'unsaved_label' => '未保存佈局', + 'no_list_records' => '找不到佈局', + 'new' => '新佈局', + 'delete_confirm_multiple' => '您真的想要刪除選取的佈局?', + 'delete_confirm_single' => '您真的想要刪除這個佈局?' + ], + 'partial' => [ + 'not_found_name' => "部件 ':name' 找不到.", + 'invalid_name' => '不合法的部件名: :name.', + 'menu_label' => '部件', + 'unsaved_label' => '未保存的部件', + 'no_list_records' => '找不到部件', + 'delete_confirm_multiple' => '您真的想要刪除選擇的部件?', + 'delete_confirm_single' => '您真的想要刪除這個部件?', + 'new' => '新部件' + ], + 'content' => [ + 'not_found_name' => "內容檔案 ':name' 找不到.", + 'menu_label' => '內容', + 'unsaved_label' => '未保存內容', + 'no_list_records' => '找不到內容檔案', + 'delete_confirm_multiple' => '您真的想要刪除選取的檔案或目錄嗎?', + 'delete_confirm_single' => '您真的想要刪除這個內容檔案?', + 'new' => '新內容檔案' + ], + 'ajax_handler' => [ + 'invalid_name' => '不合法的 AJAX 處理器: :name.', + 'not_found' => " AJAX 處理器 ':name' 找不到." + ], + 'cms' => [ + 'menu_label' => 'CMS' + ], + 'sidebar' => [ + 'add' => '增加', + 'search' => '搜尋...' + ], + 'editor' => [ + 'settings' => '設定', + 'title' => '標題', + 'new_title' => '新檔案標題', + 'url' => 'URL', + 'filename' => '檔案名', + 'layout' => '佈局', + 'description' => '描述', + 'preview' => '預覽', + 'meta' => 'Meta', + 'meta_title' => 'Meta 標題', + 'meta_description' => 'Meta 描述', + 'markup' => 'Markup', + 'code' => '代碼', + 'content' => '內容', + 'hidden' => '隱藏', + 'hidden_comment' => '隱藏頁面只能被登錄的後台使用者訪問.', + 'enter_fullscreen' => '進入全屏模式', + 'exit_fullscreen' => '退出全屏模式' + ], + 'asset' => [ + 'menu_label' => '資源', + 'unsaved_label' => '未保存的資源', + 'drop_down_add_title' => '增加...', + 'drop_down_operation_title' => '動作...', + 'upload_files' => '上傳檔案', + 'create_file' => '新建檔案', + 'create_directory' => '新建目錄', + 'directory_popup_title' => '新目錄', + 'directory_name' => '目錄名', + 'rename' => '重命名', + 'delete' => '刪除', + 'move' => '移動', + 'select' => '選擇', + 'new' => '新檔案', + 'rename_popup_title' => '重命名', + 'rename_new_name' => '新名稱', + 'invalid_path' => '路徑名稱只能包含數字, 拉丁字母和以下字元: _-/', + 'error_deleting_file' => '刪除檔案 :name 錯誤.', + 'error_deleting_dir_not_empty' => '刪除目錄 :name 錯誤. 目錄不為空.', + 'error_deleting_dir' => '刪除檔案 :name 錯誤.', + 'invalid_name' => '名稱只能包含數字, 拉丁字母, 空格和以下字元: _-', + 'original_not_found' => '原始檔案或目錄找不到', + 'already_exists' => '檔案或目錄已存在', + 'error_renaming' => '重命名檔案或目錄錯誤', + 'name_cant_be_empty' => '名稱不能為空', + 'too_large' => '上傳的檔案太大. 最大檔案大小是 :max_size', + 'type_not_allowed' => '只有下面的檔案類型是允許的: :allowed_types', + 'file_not_valid' => '檔案不合法', + 'error_uploading_file' => "上傳檔案錯誤 ':name': :error", + 'move_please_select' => '請選擇', + 'move_destination' => '目標目錄', + 'move_popup_title' => '移動資源', + 'move_button' => '移動', + 'selected_files_not_found' => '選擇的檔案找不到', + 'select_destination_dir' => '請選擇目標目錄', + 'destination_not_found' => '目標目錄找不到', + 'error_moving_file' => '移動檔案 :file 錯誤', + 'error_moving_directory' => '移動目錄 :dir 錯誤', + 'error_deleting_directory' => '刪除原始目錄 :dir 錯誤', + 'path' => '路徑' + ], + 'component' => [ + 'menu_label' => '組件', + 'unnamed' => '未命名的', + 'no_description' => '沒有描述', + 'alias' => '別名', + 'alias_description' => '這個組件的唯一名稱, 在頁面或者佈局代碼中.', + 'validation_message' => '需要組件別名, 且只能包含拉丁字元, 數字和下劃線. 別名必須以拉丁字元開頭.', + 'invalid_request' => '模板不能保存, 因為非法組件數據.', + 'no_records' => '找不到組件', + 'not_found' => "組件 ':name' 找不到.", + 'method_not_found' => "組件 ':name' 不包含方法 ':method'." + ], + 'template' => [ + 'invalid_type' => '未知模板類型.', + 'not_found' => '請求模板找不到.', + 'saved'=> '模板保存成功.' + ], + 'permissions' => [ + 'name' => 'Cms', + 'manage_content' => '管理內容', + 'manage_assets' => '管理資源', + 'manage_pages' => '管理頁面', + 'manage_layouts' => '管理佈局', + 'manage_partials' => '管理部件', + 'manage_themes' => '管理主題' + ], + 'media' => [ + 'invalid_path' => "不合法的路徑: ':path'.", + 'menu_label' => '媒體', + 'upload' => '上傳', + 'move' => '移動', + 'delete' => '刪除', + 'add_folder' => '增加檔案夾', + 'search' => '搜尋', + 'display' => '顯示', + 'filter_everything' => '所有', + 'filter_images' => '圖片', + 'filter_video' => '視頻', + 'filter_audio' => '音頻', + 'filter_documents' => '文檔', + 'library' => '庫', + 'folder_size_items' => '個數', + 'size' => '大小', + 'title' => '標題', + 'last_modified' => '最近修改', + 'public_url' => '公開URL', + 'click_here' => '點選這裡', + 'thumbnail_error' => '生產縮略圖錯誤.', + 'return_to_parent' => '返回上層檔案夾', + 'return_to_parent_label' => '返回 ..', + 'nothing_selected' => '沒有選中.', + 'multiple_selected' => '多選.', + 'uploading_file_num' => '上傳 :number 檔案...', + 'uploading_complete' => '上傳完畢', + 'order_by' => '排序', + 'search' => '搜尋', + 'folder' => '檔案夾', + 'no_files_found' => '沒找到您請求的檔案.', + 'delete_empty' => '請選擇刪除項.', + 'delete_confirm' => '您是否想要刪除選中項?', + 'error_renaming_file' => '重命名錯誤.', + 'new_folder_title' => '新檔案', + 'folder_name' => '檔案夾名', + 'error_creating_folder' => '新建檔案夾錯誤', + 'folder_or_file_exist' => '檔案夾或檔案已經存在.', + 'move_empty' => '請選擇移動項.', + 'move_popup_title' => '移動檔案或檔案夾', + 'move_destination' => '目標檔案夾', + 'please_select_move_dest' => '請選擇目標檔案夾.', + 'move_dest_src_match' => '請選擇另一個目標檔案夾.', + 'empty_library' => '媒體庫是空的. 從上傳檔案或建立檔案夾開始.', + 'insert' => '插入', + 'crop_and_insert' => '裁剪並插入', + 'select_single_image' => '請選擇一張圖片.', + 'selection_not_image' => '選擇的不是一張圖片.', + 'restore' => '取消所有更改', + 'resize' => '調整大小...', + 'selection_mode_normal' => '正常', + 'selection_mode_fixed_ratio' => '固定比例', + 'selection_mode_fixed_size' => '固定大小', + 'height' => '高度', + 'width' => '寬度', + 'selection_mode' => '選擇模式', + 'resize_image' => '調整圖片', + 'image_size' => '圖片大小:', + 'selected_size' => '選中:' + ] +]; \ No newline at end of file diff --git a/modules/system/lang/el/lang.php b/modules/system/lang/el/lang.php index ef13cac54..3fb01307b 100644 --- a/modules/system/lang/el/lang.php +++ b/modules/system/lang/el/lang.php @@ -27,6 +27,7 @@ return [ 'sk' => 'Σλοβάκικα (Σλοβακία)', 'tr' => 'Τουρκικά', 'zh-cn' => 'Κινέζικα (Κίνα)', + 'zh-tw' => 'Chinese (Taiwan)', 'el' => 'Ελληνικά', ], 'directory' => [ diff --git a/modules/system/lang/en/lang.php b/modules/system/lang/en/lang.php index fbddc74b8..6f57ba9c5 100644 --- a/modules/system/lang/en/lang.php +++ b/modules/system/lang/en/lang.php @@ -27,6 +27,7 @@ return [ 'sk' => 'Slovak (Slovakia)', 'tr' => 'Turkish', 'zh-cn' => 'Chinese (China)', + 'zh-tw' => 'Chinese (Taiwan)', 'el' => 'Greek' ], 'directory' => [ diff --git a/modules/system/lang/fa/lang.php b/modules/system/lang/fa/lang.php index 1596e877f..5072aeafe 100644 --- a/modules/system/lang/fa/lang.php +++ b/modules/system/lang/fa/lang.php @@ -26,7 +26,8 @@ return [ 'se' => 'سوئدی', 'sk' => 'اسلواکی', 'tr' => 'ترکی', - 'zh-cn' => 'چینی' + 'zh-cn' => 'چینی', + 'zh-tw' => 'Chinese (Taiwan)', ], 'directory' => [ 'create_fail' => 'مشکلی در ایجاد پوشه ی :name به وجود آمده است', diff --git a/modules/system/lang/fr/lang.php b/modules/system/lang/fr/lang.php index 4a3b116c2..f2f03a347 100644 --- a/modules/system/lang/fr/lang.php +++ b/modules/system/lang/fr/lang.php @@ -26,7 +26,8 @@ return [ 'se' => 'Suédois', 'sk' => 'Slovaque (Slovaquie)', 'tr' => 'Turque', - 'zh-cn' => 'Chinois (Chine)' + 'zh-cn' => 'Chinois (Chine)', + 'zh-tw' => 'Chinese (Taiwan)', ], 'directory' => [ 'create_fail' => "Impossible de créer le répertoire : :name", diff --git a/modules/system/lang/hu/lang.php b/modules/system/lang/hu/lang.php index 3b3af5c69..3816d637b 100644 --- a/modules/system/lang/hu/lang.php +++ b/modules/system/lang/hu/lang.php @@ -26,7 +26,8 @@ return [ 'se' => 'Svéd', 'sk' => 'Szlovák', 'tr' => 'Török', - 'zh-cn' => 'Kínai' + 'zh-cn' => 'Kínai', + 'zh-tw' => 'Chinese (Taiwan)', ], 'directory' => [ 'create_fail' => 'Nem hozható létre a könyvtár: :name' diff --git a/modules/system/lang/lv/lang.php b/modules/system/lang/lv/lang.php index 74b6306af..51b371eb5 100644 --- a/modules/system/lang/lv/lang.php +++ b/modules/system/lang/lv/lang.php @@ -26,7 +26,8 @@ return [ 'se' => 'Swedish', 'sk' => 'Slovak (Slovakia)', 'tr' => 'Turkish', - 'zh-cn' => 'Chinese (China)' + 'zh-cn' => 'Chinese (China)', + 'zh-tw' => 'Chinese (Taiwan)', ], 'directory' => [ 'create_fail' => 'Nevar izveidot mapi: :name' diff --git a/modules/system/lang/nb-no/lang.php b/modules/system/lang/nb-no/lang.php index c4fb13aae..c5e5f9149 100644 --- a/modules/system/lang/nb-no/lang.php +++ b/modules/system/lang/nb-no/lang.php @@ -25,7 +25,8 @@ return [ 'sk' => 'Slovak (Slovakia)', 'tr' => 'Tyrkisk', 'nb-no' => 'Norsk (Bokmål)', - 'zh-cn' => 'Kinesisk (Kina)' + 'zh-cn' => 'Kinesisk (Kina)', + 'zh-tw' => 'Chinese (Taiwan)', ], 'directory' => [ 'create_fail' => 'Kan ikke opprette mappen: :name' diff --git a/modules/system/lang/ru/lang.php b/modules/system/lang/ru/lang.php index 5f9c11c60..b7eb24aa1 100644 --- a/modules/system/lang/ru/lang.php +++ b/modules/system/lang/ru/lang.php @@ -26,7 +26,8 @@ return [ 'se' => 'Swedish', 'sk' => 'Slovak (Slovakia)', 'tr' => 'Turkish', - 'zh-cn' => 'Chinese (China)' + 'zh-cn' => 'Chinese (China)', + 'zh-tw' => 'Chinese (Taiwan)', ], 'directory' => [ 'create_fail' => 'Невозможно создать директорию: :name' diff --git a/modules/system/lang/zh-cn/lang.php b/modules/system/lang/zh-cn/lang.php index 959d7c797..4ba2aea7b 100644 --- a/modules/system/lang/zh-cn/lang.php +++ b/modules/system/lang/zh-cn/lang.php @@ -26,7 +26,8 @@ return [ 'se' => 'Swedish', 'sk' => 'Slovak (Slovakia)', 'tr' => 'Turkish', - 'zh-cn' => '简体中文' + 'zh-cn' => 'Chinese (China)', + 'zh-tw' => 'Chinese (Taiwan)', ], 'directory' => [ 'create_fail' => '不能创建目录: :name' diff --git a/modules/system/lang/zh-tw/lang.php b/modules/system/lang/zh-tw/lang.php new file mode 100644 index 000000000..fd902ebb6 --- /dev/null +++ b/modules/system/lang/zh-tw/lang.php @@ -0,0 +1,287 @@ + [ + 'name' => 'October CMS', + 'tagline' => '登入' + ], + 'locale' => [ + 'en' => 'English', + 'de' => 'German', + 'es' => 'Spanish', + 'es-ar' => 'Spanish (Argentina)', + 'fa' => 'Persian', + 'fr' => 'French', + 'hu' => 'Hungarian', + 'id' => 'Bahasa Indonesia', + 'it' => 'Italian', + 'ja' => 'Japanese', + 'lv' => 'Latvian', + 'nb-no' => 'Norwegian (Bokmål)', + 'nl' => 'Dutch', + 'pl' => 'Polish', + 'pt-br' => 'Portuguese (Brazil)', + 'ro' => 'Romanian', + 'ru' => 'Russian', + 'se' => 'Swedish', + 'sk' => 'Slovak (Slovakia)', + 'tr' => 'Turkish', + 'zh-cn' => 'Chinese (China)', + 'zh-tw' => 'Chinese (Taiwan)' + ], + 'directory' => [ + 'create_fail' => '不能建立目錄: :name' + ], + 'file' => [ + 'create_fail' => '不能建立檔案: :name' + ], + 'combiner' => [ + 'not_found' => "混合檔案 ':name' 沒找到." + ], + 'system' => [ + 'name' => '系統', + 'menu_label' => '系統', + 'categories' => [ + 'cms' => '內容管理', + 'misc' => '雜項', + 'logs' => '日誌', + 'mail' => '郵件', + 'shop' => '商舖', + 'team' => '團隊', + 'users' => '使用者', + 'system' => '系統', + 'social' => '社交', + 'events' => '事件', + 'customers' => '自訂', + 'my_settings' => '我的設定' + ] + ], + 'theme' => [ + 'unnamed' => '未命名主題', + 'name' => [ + 'label' => '主題名稱', + 'help' => '主題的唯一名稱,例如:RainLab.Vanilla' + ], + ], + 'themes' => [ + 'install' => '安裝主題', + 'search' => '搜尋主題...', + 'installed' => '已安裝主題', + 'no_themes' => '市集上沒有已安裝的主題。', + 'recommended' => '推薦', + 'remove_confirm' => '您確定要刪除這些主題嗎?' + ], + 'plugin' => [ + 'unnamed' => '未命名的外掛', + 'name' => [ + 'label' => '外掛名稱', + 'help' => '外掛的唯一名稱,例如:RainLab.Blog' + ] + ], + 'plugins' => [ + 'manage' => '管理外掛', + 'enable_or_disable' => '啟用或停用', + 'enable_or_disable_title' => '啟用或停用外掛', + 'install' => '安裝外掛', + 'install_products' => '安裝產品', + 'search' => '搜尋外掛...', + 'installed' => '已安裝外掛', + 'no_plugins' => '市集中沒有已安裝的外掛。', + 'recommended' => '推薦', + 'remove' => '移除', + 'refresh' => '更新', + 'disabled_label' => '停用', + 'disabled_help' => '被停用的外掛被應用程式忽略了.', + 'selected_amount' => '選取的外掛: :數目', + 'remove_confirm' => '您確定嗎?', + 'remove_success' => '成功從系統移除這些外掛.', + 'refresh_confirm' => '您確定嗎?', + 'refresh_success' => '成功更新了系統中的外掛.', + 'disable_confirm' => '您確定嗎?', + 'disable_success' => '成功停用了這些外掛.', + 'enable_success' => '成功啟用了這些外掛', + 'unknown_plugin' => '外掛從檔案系統中移除了.' + ], + 'project' => [ + 'name' => '產品', + 'owner_label' => '擁有者', + 'attach' => '增加產品', + 'detach' => '刪除產品', + 'none' => '沒有', + 'id' => [ + 'label' => '產品ID', + 'help' => '如何找到您的產品ID', + 'missing' => '請確認您想使用的產品ID.' + ], + 'detach_confirm' => '您確定要刪除這個產品嗎?', + 'unbind_success' => '產品刪除成功.' + ], + 'settings' => [ + 'menu_label' => '設定', + 'not_found' => '不能找到特定的設定.', + 'missing_model' => '設定頁缺少Model定義.', + 'update_success' => ':name 的設定更新成功了.', + 'return' => '返回系統設定', + 'search' => '搜尋' + ], + 'mail' => [ + 'log_file' => '日誌檔案', + 'menu_label' => '郵件設定', + 'menu_description' => '管理郵件設定.', + 'general' => '常規', + 'method' => '郵件方法', + 'sender_name' => '發送者名稱', + 'sender_email' => '發送者郵件', + 'php_mail' => 'PHP mail', + 'smtp' => 'SMTP', + 'smtp_address' => 'SMTP 地址', + 'smtp_authorization' => '需要 SMTP 認證', + 'smtp_authorization_comment' => '勾選這個多選框如果您的SMTP伺服器需要認證.', + 'smtp_username' => '使用者名', + 'smtp_password' => '密碼', + 'smtp_port' => 'SMTP 端口', + 'smtp_ssl' => '需要SSL連接', + 'sendmail' => 'Sendmail', + 'sendmail_path' => 'Sendmail 路徑', + 'sendmail_path_comment' => '請確認 Sendmail 路徑.', + 'mailgun' => 'Mailgun', + 'mailgun_domain' => 'Mailgun 域名', + 'mailgun_domain_comment' => '請確認 Mailgun 域名.', + 'mailgun_secret' => 'Mailgun Secret', + 'mailgun_secret_comment' => '輸入您的 Mailgun API key.', + 'mandrill' => 'Mandrill', + 'mandrill_secret' => 'Mandrill Secret', + 'mandrill_secret_comment' => '輸入您的 Mandrill API key.' + ], + 'mail_templates' => [ + 'menu_label' => '郵件模板', + 'menu_description' => '編輯發送到使用者和管理員的郵件模板, 管理郵件佈局.', + 'new_template' => '新模板', + 'new_layout' => '新佈局', + 'template' => '模板', + 'templates' => '模板', + 'menu_layouts_label' => '郵件佈局', + 'layout' => '佈局', + 'layouts' => '佈局', + 'name' => '名稱', + 'name_comment' => '指向這個模板的唯一名稱', + 'code' => '代碼', + 'code_comment' => '指向這個模板的唯一代碼', + 'subject' => '標題', + 'subject_comment' => '郵箱訊息標題', + 'description' => '描述', + 'content_html' => 'HTML', + 'content_css' => 'CSS', + 'content_text' => '純文字', + 'test_send' => '發送測試訊息', + 'test_success' => '測試訊息已經成功發送.', + 'return' => '返回模板列表' + ], + 'install' => [ + 'project_label' => '加入產品', + 'plugin_label' => '安裝外掛', + 'theme_label' => '安裝主題', + 'missing_plugin_name' => '請輸入要安裝的外掛名稱。', + 'missing_theme_name' => '請輸入要安裝的主題名稱。', + 'install_completing' => '完成安裝過程', + 'install_success' => '外掛安裝成功。' + ], + 'updates' => [ + 'title' => '管理更新', + 'name' => '軟件更新', + 'menu_label' => '更新', + 'menu_description' => '更新系統, 管理並安裝外掛和主題.', + 'check_label' => '檢查更新', + 'retry_label' => '重試', + 'plugin_name' => '名字', + 'plugin_description' => '描述', + 'plugin_version' => '版本', + 'plugin_author' => '作者', + 'core_current_build' => '目前版本', + 'core_build' => '版本 :build', + 'core_build_help' => '新的版本可用.', + 'core_downloading' => '下載應用程式', + 'core_extracting' => '解壓縮應用程式', + 'plugins' => '外掛', + 'themes' => '主題', + 'disabled' => '停用', + 'plugin_downloading' => '下載外掛: :name', + 'plugin_extracting' => '解壓縮外掛: :name', + 'plugin_version_none' => '新外掛', + 'theme_new_install' => '新主題安裝.', + 'theme_downloading' => '下載主題: :name', + 'theme_extracting' => '解壓縮主題: :name', + 'update_label' => '更新軟件', + 'update_completing' => '完成更新過程', + 'update_loading' => '加載可用更新...', + 'update_success' => '更新完成.', + 'update_failed_label' => '更新失敗', + 'force_label' => '強制更新', + 'found' => [ + 'label' => '發現新的更新!', + 'help' => '點選更新.' + ], + 'none' => [ + 'label' => '沒有更新', + 'help' => '沒有發現新的更新.' + ] + ], + 'server' => [ + 'connect_error' => '連接伺服器失敗.', + 'response_not_found' => '找不到更新伺服器.', + 'response_invalid' => '伺服器返回異常.', + 'response_empty' => '伺服器返回為空.', + 'file_error' => '伺服器下載檔案失敗.', + 'file_corrupt' => '伺服器下載檔案校驗失敗.' + ], + 'behavior' => [ + 'missing_property' => 'Class :class 必須定義屬性 $:property 被 :behavior behavior 使用.' + ], + 'config' => [ + 'not_found' => '不能搜尋設定檔案 :file 為 :location 定義.', + 'required' => "設定 :location 必須有 ':property'." + ], + 'zip' => [ + 'extract_failed' => "不能解壓縮檔案 ':file'." + ], + 'event_log' => [ + 'hint' => '日誌顯示了程序中的潛在錯誤, 比如異常和測試訊息.', + 'menu_label' => '事件日誌', + 'menu_description' => '查看系統日誌訊息, 包括時間和詳細訊息.', + 'empty_link' => '清空事件日誌', + 'empty_loading' => '清空事件日誌...', + 'empty_success' => '成功清空時間日誌.', + 'return_link' => '返回時間日誌', + 'id' => 'ID', + 'id_label' => '事件 ID', + 'created_at' => '時間和日期', + 'message' => '訊息', + 'level' => '等級' + ], + 'request_log' => [ + 'hint' => '這個日誌顯示了需要注意的瀏覽器請求. 比如如果一個訪問者打開一個沒有的CMS頁面, 一條返回狀態404的記錄被建立.', + 'menu_label' => '請求日誌', + 'menu_description' => '查看壞的或者重定向的請求, 比如頁面找不到(404).', + 'empty_link' => '清空請求日誌', + 'empty_loading' => '清空請求日誌...', + 'empty_success' => '成功清空請求日誌.', + 'return_link' => '返回請求日誌', + 'id' => 'ID', + 'id_label' => '登錄ID', + 'count' => '次數', + 'referer' => '來源', + 'url' => 'URL', + 'status_code' => '狀態' + ], + 'permissions' => [ + 'name' => '系統', + 'manage_system_settings' => '管理系統設定', + 'manage_software_updates' => '管理軟件更新', + 'access_logs' => '查看訪問日誌', + 'manage_mail_templates' => '管理郵件模板', + 'manage_mail_settings' => '管理郵件設定', + 'manage_other_administrators' => '管理其他管理員', + 'view_the_dashboard' => '查看儀表板', + 'manage_branding' => '自訂後台' + ] +]; \ No newline at end of file diff --git a/modules/system/lang/zh-tw/validation.php b/modules/system/lang/zh-tw/validation.php new file mode 100644 index 000000000..7c6c6d046 --- /dev/null +++ b/modules/system/lang/zh-tw/validation.php @@ -0,0 +1,98 @@ + ":attribute 必須被接受.", + "active_url" => ":attribute 不是一個有效的URL.", + "after" => ":attribute 必須是 :date 之後的一個日期.", + "alpha" => ":attribute 只能包含字母.", + "alpha_dash" => ":attribute 只能包含字母, 數字和-.", + "alpha_num" => ":attribute 只能包含字母和數字.", + "array" => ":attribute 只能是一個陣列.", + "before" => ":attribute 必須是 :date 之前的一個日期.", + "between" => array( + "numeric" => ":attribute 在 :min - :max 之間.", + "file" => ":attribute 在 :min - :max kilobytes之間.", + "string" => ":attribute 在 :min - :max 字元之間.", + "array" => ":attribute 在 :min - :max 個之間.", + ), + "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" => array( + "numeric" => ":attribute 不能大於 :max.", + "file" => ":attribute 不能大於 :max kilobytes.", + "string" => ":attribute 不能超過 :max 字元.", + "array" => ":attribute 不能超過 :max 個.", + ), + "mimes" => ":attribute 必須是一個: :values 類型的檔案.", + "min" => array( + "numeric" => ":attribute 必須至少 :min.", + "file" => ":attribute 必須至少 :min kilobytes.", + "string" => ":attribute 必須至少 :min 字元.", + "array" => ":attribute 必須至少 :min 個.", + ), + "not_in" => "選取的 :attribute 無效.", + "numeric" => ":attribute 必須是一個數字.", + "regex" => ":attribute 格式無效.", + "required" => "需要 :attribute 字串.", + "required_if" => "需要 :attribute 字串, 當 :other 是 :value.", + "required_with" => "需要 :attribute 字串, 當 :values 是目前值.", + "required_without" => "需要 :attribute 字串, 當 :values 不是目前值.", + "same" => ":attribute 和 :other 必須相符.", + "size" => array( + "numeric" => ":attribute 必須是 :size.", + "file" => ":attribute 必須是 :size kilobytes.", + "string" => ":attribute 必須是 :size 字元.", + "array" => ":attribute 必須是 :size 個.", + ), + "unique" => ":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' => array(), + + /* + |-------------------------------------------------------------------------- + | 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' => array(), + +);