[index]
title = "AOBA 青叶"
com_ports = "COM 端口"
details = "详情"
home = "主页"
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)"
