[index]
title = "AOBA 青葉"
home = "主頁"
com_ports = "COM 端口"
details = "詳細"
no_com_ports = "未檢測到 COM 端口"

port_state_free = "可用"
port_state_owned = "佔用"
port_state_other = "被佔用"
port_occupied_error = "無法配置端口：該端口正被外部程式佔用，請先關閉佔用該端口的程式"
refresh_action = "刷新"
manual_specify_label = "手動指定設備"
about_label = "關於"
port_suffix = "串口"
virtual_port_prefix = "虛擬"
new_action = "新建"
delete_action = "刪除"
port_creation_new_label = "新建"
port_creation_ipc_pipe = "IPC 管道"
port_creation_http_server = "HTTP 服務器"
press_enter_confirm = "確認"
press_esc_cancel_action = "取消"
hint_press_n_new_port = "按 n 新建端口"
hint_press_d_delete_port = "按 d 刪除端口"
hint_press_a_about = "按 a 查看關於"
config_path_label = "配置文件："
config_temporary_mode = "臨時模式"
scan_last_header = "最近掃描："
scan_none = "尚無掃描"
scan_truncated_suffix = "更多行已截斷"
invalid_port_selection = "無效的埠選擇"
entry_page_required = "需要入口頁"
error_loading_content = "載入內容失敗"
err_modbus_config_empty = "無法啟用端口：請先配置至少一個站點"

[about]
version = "版本"
authors = "作者"
repository = "代碼倉庫"
license = "許可"
dependencies = "依賴"
dependencies_license_list = "依賴項及許可"
welcome = "感謝使用本工具，一個小而全的串列埠調試終端；這是一個開源專案，任何人都可以自由使用。"

[hotkeys]
hint_kv_template = "按 {key} {label}"
press_c_clear = "清空日誌"
press_x_clear_error = "按 x 消除錯誤警告"
press_c_confirm = "再按一次 c 確認清空日誌"
press_enter_toggle = "按 Enter 選中/啟用端口"
press_enter_select = "按 Enter 選中"
press_enter_enable = "按 Enter 啟用端口"
press_enter_release = "按 Enter 解除佔用端口"
press_enter_unavailable = "按 Enter 無法佔用該端口"
press_enter_refresh = "按 Enter 刷新"
press_enter_manual_specify = "按 Enter 手動指定設備"
press_enter_modify = "按 Enter 修改"
press_enter_submit = "按 Enter 提交"
press_esc_cancel = "按 Esc 取消"
press_esc_save_and_return = "按 Esc 儲存並返回"
press_ctrl_esc_return_no_save = "按 Ctrl+Esc 強制返回不儲存"
press_ctrl_s_save_config = "按 Ctrl+S 保存設定"
press_esc_return = "按 Esc 返回"
press_ctrl_esc_discard_return = "按 Ctrl+Esc 放棄修改並返回"
press_q_quit = "按 q 退出"
hint_enter_subpage = "按 Enter 進入子頁面"
hint_back_list = "按 Esc 返回端口列表"
hint_back_list_save = "按 Esc 儲存並返回端口列表"
hint_switch_tab = "按 Tab 切換模式"
hint_move_vertical = "按 ↑ / k 或 ↓ / j 移動"
hint_move_horizontal = "按 ← / h 或 → / l 移動"
hint_move_with_panels = "按 Tab 切換焦點；按 ↑ / k 或 ↓ / j 移動"
hint_switch_options = "按 ← / h 或 → / l 切換選項"
hint_master_enter_edit = "按 Enter 進入編輯"
hint_master_editing = "編輯模式"
hint_master_edit_hex = "直接輸入 HEX 數字"
hint_hex_input_mode = "當前為十六進制 HEX 輸入模式"
hint_hex_enter_save = "按 Enter 保存"
hint_hex_esc_exit = "按 Esc 儲存並退出編輯（Ctrl+Esc 捨棄）"
hint_master_edit_move = "按 ↑ / k 或 ↓ / j 切換欄位"
hint_master_edit_backspace = "按 Backspace 刪除一位"
hint_master_edit_exit = "按 Esc 儲存並退出"
hint_esc_return_home = "按 Esc 儲存並返回主頁（Ctrl+Esc 捨棄）"
hint_master_delete = "按 d 刪除主站"
hint_master_field_select = "按 Enter 編輯該項目"
hint_master_field_move = "按 方向鍵 切換編輯條目"
hint_master_field_exit_select = "按 Esc 退出選中"
hint_master_field_apply = "按 Enter 應用修改"
hint_master_field_cancel_edit = "按 Esc 退出編輯"
hint_master_type_switch = "按 ← / j 或 → / k 切換寄存器類型"
hint_reset_req_counter = "按 Enter 清零計數"

[tabs]
tab_config = "設定"
tab_log = "日誌"
log_dir_send = "發送"
log_dir_recv = "接收"

[tabs.log]
hint_follow_on = "跟隨最新日誌"
hint_follow_off = "停止跟隨日誌"
lifecycle_label = "子程序狀態"
lifecycle_started = "CLI 子程序已啟動"
lifecycle_shutdown = "CLI 子程序已關閉"
lifecycle_restarted = "CLI 子程序已重啟"
lifecycle_failed = "CLI 子程序失敗"
reason_label = "原因"
comm_send = "發送"
comm_receive = "接收"
comm_direction_label = "方向"
comm_role_label = "角色"
comm_error_label = "解析"
comm_station_label = "站點"
comm_register_label = "暫存器"
comm_count_label = "數量"
comm_unknown = "未知"
comm_range_label = "範圍"
comm_master_response = "主站回應"
comm_slave_request = "從站請求"
comm_station_id_label = "站點 ID"
comm_register_type_label = "暫存器類型"
comm_address_range_label = "位址範圍"
comm_error_frame_short = "框架長度不足"
comm_error_unsupported_func = "不支援的功能碼"
error_prefix = "錯誤"
management_label = "管理"
stations_update_summary = "站點設定更新"
stations_update_failed_summary = "站點設定更新失敗"
stations_count_label = "站點數量"
result_success = "成功"
result_failure = "失敗"
result_label = "結果"
state_lock_request_summary = "狀態鎖請求"
state_lock_requester_label = "請求人"
state_lock_ack_summary = "狀態鎖回覆"
state_lock_locked = "已鎖定"
state_lock_unlocked = "已解鎖"
status_summary = "狀態"
status_label = "狀態"
status_details_label = "詳情"
cli_log_summary = "CLI 日誌訊息"
log_level_label = "等級"
log_message_label = "內容"
subprocess_spawned_summary = "CLI 子程序已啟動"
subprocess_stopped_summary = "CLI 子程序已停止"
subprocess_exited_summary = "CLI 子程序已結束"
subprocess_mode_label = "模式"
subprocess_pid_label = "程序號"
subprocess_exit_label = "結束狀態"
subprocess_stopped_reason_tui = "由 TUI 管理停止"
subprocess_exit_success = "正常結束"
subprocess_exit_code_label = "結束碼"
subprocess_exit_signal = "被訊號終止"
runtime_restart_summary = "CLI 子程序已重新啟動"
runtime_restart_mode_label = "端口模式"
runtime_restart_reason_connection_mode_change = "端口模式已切換為"
runtime_restart_reason_data_source_change = "主站資料源已切換為"
runtime_restart_reason_station_mode_change = "站點寄存器模式已修改為"
cli_mode_slave_poll = "從站輪詢"
cli_mode_slave_listen = "從站監聽"
cli_mode_master_provide = "主站提供"
reason_none = "沒有更多資訊"

[input]
input_label = "輸入"
hint_input_edit = "按 i 進入編輯，Enter 提交，Esc 取消"
hint_input_mode = "按 m 切換輸入模式（ASCII / HEX）"
input_editing_hint = "正在編輯輸入 — 在此輸入負載"
input_mode_ascii = "ASCII 字符輸入"
input_mode_hex = "HEX 數字輸入"
input_mode_current = "當前輸入模式為"
hint_input_edit_short = "編輯"
hint_input_mode_short = "切換輸入模式"

[protocol.common]
serial_unknown = "未知"
label_port = "端口"
label_type = "類型"
label_status = "狀態"
label_mode = "模式"
label_baud = "波特率"
label_data_bits = "資料位"
label_parity = "校驗"
label_stop_bits = "停止位"
label_request_interval = "請求間隔"
label_timeout = "超時時間"
label_guid = "GUID"
label_usb = "USB"
label_mapping_code = "映射編碼"
mapping_none = "（無映射）"
label_serial = "序列號"
label_manufacturer = "廠商"
label_product = "產品"
custom = "自定義"
parity_none = "無校驗"
parity_even = "偶校驗"
parity_odd = "奇校驗"
toggle_too_fast = "切換過快，請稍候"
enable_port = "啟用端口"
protocol_selection = "通信協議"
protocol_mode = "協議模式"
configure_protocol = "配置"
enter_modbus_config = "進入 Modbus 配置頁面"
enter_mqtt_config = "進入 MQTT 配置頁面"
enter_business_config = "進入業務配置頁面"
enter_log_page = "進入日誌頁面"
log_monitoring = "日誌監控"
port_enabled = "已啟用"
port_disabled = "已禁用"
mode_modbus = "ModBus RTU"
mode_mqtt = "MQTT"
mode_tcp = "TCP"
mode_overlay_title = "模式選擇"
mode_overlay_hint = "↑/↓: 移動  Enter: 確認  Esc: 取消  m: 顯示/隱藏"

# Port status indicator messages (for title bar)
status_not_started = "未啟動"
status_starting = "啟動中"
status_running = "運行中"
status_restarting = "重啟中"
status_saving = "儲存中"
status_syncing = "同步中"
status_applied_success = "已應用"
status_startup_failed = "無法創建端口"

[protocol.modbus]
edit_suffix = "[編輯: {}]"
registers_list = "寄存器列表:"
label_master_list = "模擬主站列表"
label_slave_listen = "從站監聽"
label_modbus_settings = "ModBus 主/從站設定"
label_working = "是否開始工作"
status_running = "運行中"
status_paused = "暫停"
hint_enter_toggle_work = "按 Enter 啟動/暫停"
hint_enter_start_work = "按 Enter 啟動"
hint_enter_pause_work = "按 Enter 暫停"
invalid_baud_range = "無效的波特率：必須介於 1200 到 2000000 之間"
new_master = "新建主站"
new_slave = "新建從站"
new_entry = "新建條目"
label_address_range = "位址範圍"
reg_type_coils = "線圈暫存器(01)"
reg_type_discrete_inputs = "離散輸入暫存器(02)"
reg_type_holding = "保持輸出暫存器(03)"
reg_type_input = "保持輸入暫存器(04)"
reg_type_name_coils = "線圈暫存器"
reg_type_name_discrete_inputs = "離散輸入暫存器"
reg_type_name_holding = "保持輸出暫存器"
reg_type_name_input = "保持輸入暫存器"
label_req_counter = "請求次數計數"
refresh_rate = "刷新頻率"
global_interval = "全域間隔"
global_timeout = "全域逾時"
value_true = "真"
value_false = "假"
role_master = "主站"
role_slave = "從站"
log_sent_frame = "發送幀"
log_recv_match = "接收匹配"
log_recv_unmatched = "接收未匹配"
log_reconfigured = "已重新配置"
log_req_timeout = "請求逾時"
log_unparsed_master = "未解析的主站請求"
label_master_passive = "是否監聽外來請求"
status_master_passive = "被動, 僅監聽"
status_master_active = "主動, 輪詢"
label_default_marker = "預設"
add_master_slave = "建立站點"
connection_mode = "連接模式"
station_id = "站點ID"
register_mode = "暫存器類型"
register_start_address = "起始位址"
register_length = "暫存器長度"
data_source = "資料來源"
data_source_port = "資料來源連接埠"
data_source_path = "資料來源路徑"
data_source_address = "資料來源位址"
data_source_manual = "手動除錯"
data_source_mqtt = "MQTT 伺服器位址"
data_source_http = "HTTP 資料接收埠"
data_source_ipc = "IPC 管道路徑"
data_source_port_forwarding = "透明轉發埠"
data_source_source_port = "資料來源埠"
data_source_placeholder_mqtt = "mqtt://localhost:1883/topic"
data_source_placeholder_http = "8080"
data_source_placeholder_ipc_unix = "/tmp/modbus_ipc"
data_source_placeholder_ipc_windows = "\\\\.\\pipe\\modbus_ipc"
data_source_placeholder_port_forwarding = "選擇埠..."
data_source_port_forwarding_hint = "暫無其他可用埠"
err_invalid_url = "無法解析: {}"
err_file_not_found = "檔案不存在: {}"

[protocol.mqtt]
panel_placeholder = "MQTT 模式佔位面板 (尚未實作)"
panel_not_current = "(當前模式不是 MQTT)"
