from je_editor import traditional_chinese_word_dict


def update_traditional_chinese_word_dict():
    traditional_chinese_word_dict.update(
        {
            # application name
            "automation_editor_application_name": "Automation Editor",
            # Menubar
            "automation_menu_label": "自動化",
            "install_menu_label": "安裝",
            # Normal label
            "run_label": "運行",
            "help_label": "幫助",
            "project_label": "專案",
            # APITestka Menu
            "apitestka_menu_label": "APITestka",
            "apitestka_run_script_label": "運行 APITestka 腳本",
            "apitestka_run_script_with_send_label": "運行 APITestka 腳本並寄信",
            "apitestka_run_multi_script_label": "運行多個 APITestka 腳本",
            "apitestka_run_multi_script_with_send_label": "運行多個 APITestka 腳本並寄信",
            "apitestka_doc_label": "開啟 APITestka 文件",
            "apitestka_doc_tab_label": "APITestka 文件",
            "apitestka_github_label": "開啟 APITestka GitHub",
            "apitestka_github_tab_label": "APITestka GitHub",
            "apitestka_create_project_label": "建立 APITestka 專案",
            # Autocontrol Menu
            "autocontrol_menu_label": "Autocontrol",
            "autocontrol_run_script_label": "運行 Autocontrol 腳本",
            "autocontrol_run_script_with_send_label": "運行 Autocontrol 腳本並寄信",
            "autocontrol_run_multi_script_label": "運行 Multi Autocontrol 腳本",
            "autocontrol_run_multi_script_with_send_label": "運行 Multi Autocontrol 腳本 腳本並寄信",
            "autocontrol_doc_label": "開啟 Autocontrol 文件",
            "autocontrol_doc_tab_label": "Autocontrol 文件",
            "autocontrol_github_label": "開啟 Autocontrol GitHub",
            "autocontrol_github_tab_label": "Autocontrol GitHub",
            "autocontrol_create_project_label": "建立 Autocontrol 專案",
            "autocontrol_record_menu_label": "紀錄",
            "autocontrol_record_start_label": "紀錄 Start",
            "autocontrol_record_stop_label": "紀錄 Stop",
            # File Automation Menu
            "file_automation_menu_label": "FileAutomation",
            "file_automation_run_script_label": "運行 FileAutomation 腳本",
            "file_automation_run_script_with_send_label": "運行 FileAutomation 腳本並寄信",
            "file_automation_run_multi_script_label": "運行 Multi FileAutomation 腳本",
            "file_automation_run_multi_script_with_send_label": "運行 Multi FileAutomation 腳本 腳本並寄信",
            "file_automation_doc_label": "開啟 FileAutomation 文件",
            "file_automation_doc_tab_label": "FileAutomation 文件",
            "file_automation_github_label": "開啟 FileAutomation GitHub",
            "file_automation_github_tab_label": "FileAutomation GitHub",
            "file_automation_create_project_label": "建立 FileAutomation 專案",
            # Load Density Menu
            "load_density_menu_label": "LoadDensity",
            "load_density_run_script_label": "運行 LoadDensity 腳本",
            "load_density_run_script_with_send_label": "運行 LoadDensity 腳本並寄信",
            "load_density_run_multi_script_label": "運行 Multi LoadDensity 腳本",
            "load_density_run_multi_script_with_send_label": "運行 Multi LoadDensity 腳本 腳本並寄信",
            "load_density_doc_label": "開啟 LoadDensity 文件",
            "load_density_doc_tab_label": "LoadDensity 文件",
            "load_density_github_label": "開啟 LoadDensity GitHub",
            "load_density_github_tab_label": "LoadDensity GitHub",
            "load_density_create_project_label": "建立 LoadDensity 專案",
            # Mail Thunder Menu
            "mail_thunder_menu_label": "MailThunder",
            "mail_thunder_run_script_label": "運行 MailThunder 腳本",
            "mail_thunder_doc_label": "開啟 MailThunder 文件",
            "mail_thunder_doc_tab_label": "MailThunder 文件",
            "mail_thunder_github_label": "開啟 MailThunder GitHub",
            "mail_thunder_github_tab_label": "MailThunder GitHub",
            "mail_thunder_create_project_label": "建立 MailThunder 專案",
            # Webrunner Menu
            "web_runner_menu_label": "WebRunner",
            "web_runner_run_script_label": "運行 WebRunner 腳本",
            "web_runner_run_script_with_send_label": "運行 WebRunner 腳本並寄信",
            "web_runner_run_multi_script_label": "運行 Multi WebRunner 腳本",
            "web_runner_run_multi_script_with_send_label": "運行 Multi WebRunner 腳本 腳本並寄信",
            "web_runner_doc_label": "開啟 WebRunner 文件",
            "web_runner_doc_tab_label": "WebRunner 文件",
            "web_runner_github_label": "開啟 WebRunner GitHub",
            "web_runner_github_tab_label": "WebRunner GitHub",
            "web_runner_create_project_label": "建立 WebRunner 專案",
            # Install Menu
            "install_menu_autocontrol": "安裝 AutoControl",
            "install_menu_apitestka": "安裝 APITestka",
            "install_menu_loaddensity": "安裝 LoadDensity",
            "install_menu_webrunner": "安裝 WebRunner",
            "install_menu_automation_file": "安裝 Automation File",
            "install_menu_mail_thunder": "安裝 MailThunder",
            "install_menu_tools_install_menu_label": "工具",
            "install_menu_tools_install_build_tools": "安裝 Build Tools",
            # Tools Menu
            "tools_menu_re_edge_gpt_label": "ReEdgeGPT",
            "tools_menu_re_edge_gpt_doc_label": "開啟 ReEdgeGPT 文件",
            "tools_menu_re_edge_gpt_doc_tab_label": "ReEdgeGPT 文件",
            "tools_menu_re_edge_gpt_github_label": "開啟 ReEdgeGPT GitHub",
            "tools_menu_re_edge_gpt_github_tab_label": "ReEdgeGPT GitHub",
            # Test Pioneer Menu
            "test_pioneer_label": "TestPioneer",
            "test_pioneer_create_template_label": "建立 TestPioneer Yaml 模板",
            "test_pioneer_run_yaml": "執行 Test Pioneer Yaml",
            "test_pioneer_not_choose_yaml": "請選擇 Yaml 檔案",
            # SSH command widget
            "ssh_command_widget_window_title_ssh_command_widget": "SSH 指令介面",
            "ssh_command_widget_button_label_send_command": "送出",
            "ssh_command_widget_input_placeholder_command_line": "輸入指令後按 Enter...",
            "ssh_command_widget_dialog_title_input_error": "輸入錯誤",
            "ssh_command_widget_dialog_message_input_error_host_user_required": "必須輸入主機與使用者名稱。",
            "ssh_command_widget_dialog_title_key_error": "金鑰錯誤",
            "ssh_command_widget_dialog_message_key_file_not_exist": "金鑰檔案不存在。",
            "ssh_command_widget_error_message_unsupported_private_key": "不支援或無效的私鑰。",
            "ssh_command_widget_error_message_key_auth_failed": "金鑰驗證失敗",
            "ssh_command_widget_status_label_connected": "已連線",
            "ssh_command_widget_status_label_disconnected": "已斷線",
            "ssh_command_widget_log_message_connected": "已連線至",
            "ssh_command_widget_log_message_error": "[錯誤]",
            "ssh_command_widget_error_message_decode_failed": "<解碼錯誤> {error}",
            "ssh_command_widget_log_message_channel_closed": "[通道已關閉]",
            "ssh_command_widget_error_message_reader_failed": "讀取錯誤",
            "ssh_command_widget_log_message_reader_closed": "讀取已關閉",
            "ssh_command_widget_error_message_send_failed": "[傳送錯誤]",
            "ssh_command_widget_dialog_title_not_connected": "尚未連線",
            "ssh_command_widget_dialog_message_not_connected_shell": "SSH shell 尚未連線。",
            "ssh_command_widget_log_message_disconnect_in_progress": "[正在斷線...]",
            # SSH File Viewer GUI
            "ssh_file_viewer_dialog_title_list_error": "列出錯誤",
            "ssh_file_viewer_dialog_message_list_failed": "無法列出",
            "ssh_file_viewer_dialog_title_operation_failed": "操作失敗",
            "ssh_file_viewer_dialog_message_operation_failed": "錯誤",
            "ssh_file_viewer_context_menu_action_refresh": "重新整理",
            "ssh_file_viewer_context_menu_action_create_folder": "建立資料夾",
            "ssh_file_viewer_context_menu_action_rename": "重新命名",
            "ssh_file_viewer_context_menu_action_delete": "刪除",
            "ssh_file_viewer_context_menu_action_download": "下載",
            "ssh_file_viewer_context_menu_action_upload": "上傳至此資料夾",
            "ssh_file_viewer_log_message_refreshing": "正在重新整理目前項目的子項（或根）",
            "ssh_file_viewer_dialog_title_no_selection": "未選取",
            "ssh_file_viewer_dialog_message_select_folder_to_create": "請選擇一個資料夾以建立子資料夾。",
            "ssh_file_viewer_dialog_title_create_folder": "建立資料夾",
            "ssh_file_viewer_dialog_label_folder_name": "資料夾名稱：",
            "ssh_file_viewer_dialog_title_rename": "重新命名",
            "ssh_file_viewer_dialog_label_new_name_for_item": "新名稱",
            "ssh_file_viewer_dialog_title_confirm_delete": "確認刪除",
            "ssh_file_viewer_dialog_message_confirm_delete": "是否刪除",
            "ssh_file_viewer_dialog_title_invalid_selection": "選取無效",
            "ssh_file_viewer_dialog_message_select_file_to_download": "請選擇要下載的檔案。",
            "ssh_file_viewer_dialog_title_save_as": "另存新檔",
            "ssh_file_viewer_dialog_title_downloaded": "已下載",
            "ssh_file_viewer_dialog_message_saved_to": "已儲存至",
            "ssh_file_viewer_dialog_title_select_local_file": "選擇要上傳的本地檔案",
            "ssh_file_viewer_dialog_title_uploaded": "已上傳",
            "ssh_file_viewer_dialog_message_uploaded_to": "已上傳至",
            "ssh_file_viewer_dialog_label_input_text": "輸入文字",
            "ssh_file_viewer_dialog_button_ok": "確定",
            "ssh_file_viewer_window_title_file_tree_manager": "SSH 檔案樹狀管理器",
            "ssh_file_viewer_tree_header_name": "名稱",
            "ssh_file_viewer_tree_header_type": "類型",
            "ssh_file_viewer_tree_header_size": "大小",
            "ssh_file_viewer_tree_header_path": "路徑",
            "ssh_file_viewer_dialog_title_missing_input": "缺少輸入",
            "ssh_file_viewer_dialog_message_missing_input": "必須輸入主機、使用者與密碼。",
            "ssh_file_viewer_dialog_title_connection_failed": "連線失敗",
            "ssh_file_viewer_dialog_message_connection_failed": "連線失敗",
            # SSH Login Widget
            "ssh_login_widget_label_host": "主機",
            "ssh_login_widget_label_port": "連接埠",
            "ssh_login_widget_label_user": "使用者",
            "ssh_login_widget_label_key": "金鑰",
            "ssh_login_widget_label_password": "密碼",
            "ssh_login_widget_placeholder_host": "主機 (例如: 192.168.0.10)",
            "ssh_login_widget_placeholder_username": "使用者名稱",
            "ssh_login_widget_placeholder_password": "密碼",
            "ssh_login_widget_placeholder_private_key": "私鑰路徑 (.pem/.ppk)",
            "ssh_login_widget_button_use_key_auth": "使用金鑰驗證",
            "ssh_login_widget_button_connect": "連線",
            "ssh_login_widget_button_disconnect": "斷線",
            "ssh_login_widget_status_disconnected": "已斷線",
            # AI Code Review GUI
            "ai_code_review_gui_window_title": "AI 程式碼審查客戶端",
            "ai_code_review_gui_label_url": "網址：",
            "ai_code_review_gui_label_method": "方法：",
            "ai_code_review_gui_label_code_to_send": "要送出的程式碼：",
            "ai_code_review_gui_label_response": "回應：",
            "ai_code_review_gui_button_send_request": "送出請求",
            "ai_code_review_gui_button_accept_response": "接受回應",
            "ai_code_review_gui_button_reject_response": "拒絕回應",
            "ai_code_review_gui_message_enter_valid_url": "請輸入有效的網址",
            "ai_code_review_gui_message_url_already_recorded": "此網址已被紀錄，仍然送出請求...",
            "ai_code_review_gui_message_new_url_recorded": "新網址已紀錄，正在送出請求...",
            "ai_code_review_gui_message_unsupported_http_method": "不支援的 HTTP 方法",
            "ai_code_review_gui_message_error": "錯誤",
            "ai_code_review_gui_status_accepted": "[已接受]",
            "ai_code_review_gui_status_rejected": "[已拒絕]",
            "ai_code_review_gui_status_save_failed": "儲存失敗"
        }
    )
