From c1fbf9d25e3d72ed9197691b1d3a9ebd5ee5eb8c Mon Sep 17 00:00:00 2001 From: Hongyu Shi Date: Sat, 25 Oct 2025 11:49:04 +0800 Subject: [PATCH 1/3] =?UTF-8?q?fix:=20=E6=9B=B4=E6=96=B0=E6=99=BA=E8=83=BD?= =?UTF-8?q?=E4=BD=93=E5=90=8D=E7=A7=B0=E4=B8=BA=E5=8F=AF=E6=9C=AC=E5=9C=B0?= =?UTF-8?q?=E5=8C=96=E6=96=87=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Hongyu Shi --- src/app/tui.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/app/tui.py b/src/app/tui.py index 292662c..7b46b4b 100644 --- a/src/app/tui.py +++ b/src/app/tui.py @@ -1041,7 +1041,7 @@ class IntelligentTerminal(App): llm_client = self.get_llm_client() # 构建智能体列表 - 默认第一项为"智能问答"(无智能体) - agent_list = [("", "智能问答")] + agent_list = [("", _("智能问答"))] # 尝试获取可用智能体 if hasattr(llm_client, "get_available_agents"): @@ -1067,7 +1067,7 @@ class IntelligentTerminal(App): except (OSError, ValueError, RuntimeError) as e: log_exception(self.logger, "显示智能体选择对话框失败", e) # 即使出错也显示默认选项 - agent_list = [("", "智能问答")] + agent_list = [("", _("智能问答"))] try: llm_client = self.get_llm_client() await self._display_agent_dialog(agent_list, llm_client) @@ -1261,7 +1261,7 @@ class IntelligentTerminal(App): # 这里先返回 ID 和 ID 作为临时方案,后续在智能体列表加载后更新名称 return (default_app, default_app) # 如果没有配置默认智能体,使用智能问答 - return ("", "智能问答") + return ("", _("智能问答")) def _reinitialize_agent_state(self) -> None: """重新初始化智能体状态,用于后端切换时""" @@ -1405,7 +1405,7 @@ class IntelligentTerminal(App): llm_client = self.get_llm_client() if hasattr(llm_client, "get_available_agents"): available_agents = await llm_client.get_available_agents() # type: ignore[attr-defined] - app_id, _ = self.current_agent + app_id, _name = self.current_agent # 查找匹配的智能体 agent_found = False @@ -1423,7 +1423,7 @@ class IntelligentTerminal(App): if not agent_found and app_id: self.logger.warning("配置的默认智能体 '%s' 不存在,回退到智能问答并清理配置", app_id) # 回退到智能问答 - self.current_agent = ("", "智能问答") + self.current_agent = ("", _("智能问答")) # 清理配置中的无效ID self.config_manager.set_default_app("") # 确保客户端也切换到智能问答 -- Gitee From 36fa2bee38054d533c7462b69de9b02d003c3f4a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E9=B8=BF=E5=AE=87?= Date: Sat, 25 Oct 2025 14:43:07 +0800 Subject: [PATCH 2/3] =?UTF-8?q?fix(i18n):=20=E4=BF=AE=E5=A4=8D=E6=99=BA?= =?UTF-8?q?=E8=83=BD=E9=97=AE=E7=AD=94=E7=BF=BB=E8=AF=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 史鸿宇 --- .../locales/en_US/LC_MESSAGES/messages.po | 102 ++++++++++-------- src/i18n/locales/messages.pot | 81 +++++++------- .../locales/zh_CN/LC_MESSAGES/messages.po | 81 +++++++------- 3 files changed, 138 insertions(+), 126 deletions(-) diff --git a/src/i18n/locales/en_US/LC_MESSAGES/messages.po b/src/i18n/locales/en_US/LC_MESSAGES/messages.po index 8e5ecdf..592bb50 100644 --- a/src/i18n/locales/en_US/LC_MESSAGES/messages.po +++ b/src/i18n/locales/en_US/LC_MESSAGES/messages.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: oi-cli\n" "Report-Msgid-Bugs-To: contact@openeuler.org\n" -"POT-Creation-Date: 2025-10-21 10:54+0800\n" +"POT-Creation-Date: 2025-10-25 14:40+0800\n" "PO-Revision-Date: 2025-10-20 19:28+0800\n" "Last-Translator: openEuler Intelligence Team\n" "Language-Team: English\n" @@ -214,6 +214,14 @@ msgstr "Authentication failed, please check configuration" msgid "Error processing command: {error}" msgstr "Processing command failed with error: {error}" +#: src/app/tui.py:1044 src/app/tui.py:1070 src/app/tui.py:1264 +#: src/app/tui.py:1426 src/app/dialogs/agent.py:60 src/app/dialogs/agent.py:130 +#: src/app/dialogs/agent.py:185 src/app/dialogs/agent.py:205 +#: src/app/dialogs/agent.py:208 src/tool/oi_select_agent.py:67 +#: src/tool/oi_select_agent.py:94 +msgid "智能问答" +msgstr "Smart Chat" + #: src/app/tui.py:1170 msgid "💡 MCP response sent" msgstr "💡 MCP response sent" @@ -264,13 +272,6 @@ msgstr "Please select openEuler Intelligence backend to use agent features" msgid "按任意键关闭" msgstr "Press any key to close" -#: src/app/dialogs/agent.py:60 src/app/dialogs/agent.py:130 -#: src/app/dialogs/agent.py:185 src/app/dialogs/agent.py:205 -#: src/app/dialogs/agent.py:208 src/tool/oi_select_agent.py:67 -#: src/tool/oi_select_agent.py:94 -msgid "智能问答" -msgstr "Smart Chat" - #: src/app/dialogs/agent.py:113 msgid "OS 智能助手" msgstr "OS Smart Assistant" @@ -321,11 +322,11 @@ msgstr "Name" msgid "说明" msgstr "Description" -#: src/main.py:28 +#: src/main.py:27 msgid "openEuler Intelligence - Intelligent command-line tool" msgstr "openEuler Intelligence - Command-line Client" -#: src/main.py:29 +#: src/main.py:28 msgid "" "\n" "For more information and documentation, please visit:\n" @@ -337,33 +338,33 @@ msgstr "" " https://gitee.com/openeuler/euler-copilot-shell/tree/master/docs\n" " " -#: src/main.py:39 +#: src/main.py:38 msgid "General Options" msgstr "General Options" -#: src/main.py:40 +#: src/main.py:39 msgid "Show help and version information" msgstr "Show help and version information" -#: src/main.py:46 +#: src/main.py:45 msgid "Show this help message and exit" msgstr "Show this help message and exit" -#: src/main.py:53 +#: src/main.py:52 msgid "Show program version number and exit" msgstr "Show program version number and exit" -#: src/main.py:58 +#: src/main.py:57 msgid "Backend Configuration Options" msgstr "Backend Configuration Options" -#: src/main.py:59 +#: src/main.py:58 msgid "" "For initializing and configuring openEuler Intelligence backend services" msgstr "" "For initializing and configuring openEuler Intelligence backend services" -#: src/main.py:65 +#: src/main.py:64 msgid "" "Initialize openEuler Intelligence backend\n" " * Initialization requires administrator privileges and network connection" @@ -371,7 +372,7 @@ msgstr "" "Initialize openEuler Intelligence backend\n" " * Initialization requires administrator privileges and network connection" -#: src/main.py:73 +#: src/main.py:72 msgid "" "Change openEuler Intelligence LLM settings (requires valid local backend " "service)\n" @@ -381,98 +382,98 @@ msgstr "" "service)\n" " * Configuration editing requires administrator privileges" -#: src/main.py:80 +#: src/main.py:79 msgid "Application Configuration Options" msgstr "Application Configuration Options" -#: src/main.py:81 +#: src/main.py:80 msgid "For configuring application frontend behavior and preferences" msgstr "For configuring application frontend behavior and preferences" -#: src/main.py:86 +#: src/main.py:85 msgid "Select default agent" msgstr "Select default agent" -#: src/main.py:91 +#: src/main.py:90 msgid "Language Settings" msgstr "Language Settings" -#: src/main.py:92 +#: src/main.py:91 msgid "For configuring application display language" msgstr "For configuring application display language" -#: src/main.py:100 +#: src/main.py:99 #, python-brace-format msgid "Set display language (available: {locales})" msgstr "Set display language (available: {locales})" -#: src/main.py:105 +#: src/main.py:104 msgid "Log Management Options" msgstr "Log Management Options" -#: src/main.py:106 +#: src/main.py:105 msgid "For viewing and configuring log output" msgstr "For viewing and configuring log output" -#: src/main.py:111 +#: src/main.py:110 msgid "Show latest log content (up to 1000 lines)" msgstr "Show latest log content (up to 1000 lines)" -#: src/main.py:117 +#: src/main.py:116 msgid "Set log level (available: DEBUG, INFO, WARNING, ERROR)" msgstr "Set log level (available: DEBUG, INFO, WARNING, ERROR)" -#: src/main.py:140 +#: src/main.py:139 #, python-brace-format msgid "Failed to retrieve logs: {error}\n" msgstr "Failed to retrieve logs: {error}\n" -#: src/main.py:147 +#: src/main.py:146 #, python-brace-format msgid "Invalid log level: {level}\n" msgstr "Invalid log level: {level}\n" -#: src/main.py:156 +#: src/main.py:155 #, python-format msgid "Log level has been set to: %s" msgstr "Log level has been set to: %s" -#: src/main.py:157 +#: src/main.py:156 msgid "This is a DEBUG level test message" msgstr "This is a DEBUG level test message" -#: src/main.py:158 +#: src/main.py:157 msgid "This is an INFO level test message" msgstr "This is an INFO level test message" -#: src/main.py:159 +#: src/main.py:158 msgid "This is a WARNING level test message" msgstr "This is a WARNING level test message" -#: src/main.py:160 +#: src/main.py:159 msgid "This is an ERROR level test message" msgstr "This is an ERROR level test message" -#: src/main.py:162 +#: src/main.py:161 #, python-brace-format msgid "✓ Log level successfully set to: {level}\n" msgstr "✓ Log level successfully set to: {level}\n" -#: src/main.py:163 +#: src/main.py:162 msgid "✓ Logging system initialized\n" msgstr "✓ Logging system initialized\n" -#: src/main.py:191 +#: src/main.py:190 #, python-brace-format msgid "✓ Language set to: {locale}\n" msgstr "✓ Language set to: {locale}\n" -#: src/main.py:193 +#: src/main.py:192 #, python-brace-format msgid "✗ Unsupported language: {locale}\n" msgstr "✗ Unsupported language: {locale}\n" -#: src/main.py:228 +#: src/main.py:230 msgid "Fatal error in Intelligent Shell application" msgstr "Fatal error in Intelligent Shell application" @@ -520,7 +521,9 @@ msgstr "Error: {error}\n" #: src/tool/oi_llm_config.py:77 msgid "需要管理员权限才能修改 openEuler Intelligence 配置文件" -msgstr "Administrator privileges are required to modify openEuler Intelligence configuration files" +msgstr "" +"Administrator privileges are required to modify openEuler Intelligence " +"configuration files" #: src/tool/oi_llm_config.py:84 #, python-brace-format @@ -549,13 +552,16 @@ msgstr "Error occurred when accessing configuration file: {error}" #: src/tool/oi_llm_config.py:127 #, python-brace-format msgid "权限不足:无法访问配置文件 {filename},请以管理员身份运行" -msgstr "Insufficient permissions: Cannot access configuration file {filename}, please run as administrator" +msgstr "" +"Insufficient permissions: Cannot access configuration file {filename}, " +"please run as administrator" #: src/tool/validators.py:135 src/tool/validators.py:584 #: src/tool/validators.py:647 #, python-brace-format msgid "连接超时 - 无法在 {timeout} 秒内连接到 {endpoint}" -msgstr "Connection timeout - Unable to connect to {endpoint} within {timeout} seconds" +msgstr "" +"Connection timeout - Unable to connect to {endpoint} within {timeout} seconds" #: src/tool/validators.py:140 #, python-brace-format @@ -676,7 +682,8 @@ msgstr "OpenAI Embedding configuration validation failed: {error}" #: src/tool/validators.py:598 #, python-brace-format msgid "OpenAI Embedding 配置验证成功 - 维度: {dimension}" -msgstr "OpenAI Embedding configuration validation successful - Dimension: {dimension}" +msgstr "" +"OpenAI Embedding configuration validation successful - Dimension: {dimension}" #: src/tool/validators.py:606 msgid "OpenAI Embedding 响应为空" @@ -685,7 +692,8 @@ msgstr "OpenAI Embedding response is empty" #: src/tool/validators.py:634 #, python-brace-format msgid "MindIE Embedding 配置验证成功 - 维度: {dimension}" -msgstr "MindIE Embedding configuration validation successful - Dimension: {dimension}" +msgstr "" +"MindIE Embedding configuration validation successful - Dimension: {dimension}" #: src/tool/validators.py:644 msgid "MindIE Embedding 响应格式不正确" @@ -762,7 +770,9 @@ msgstr "[Command start failed] Unable to create subprocess" #: src/tool/command_processor.py:136 #, python-brace-format msgid "无法启动命令 '{command}',请分析可能原因并给出解决建议。" -msgstr "Unable to start command '{command}', please analyze possible causes and provide solutions." +msgstr "" +"Unable to start command '{command}', please analyze possible causes and " +"provide solutions." #: src/tool/command_processor.py:165 #, python-brace-format diff --git a/src/i18n/locales/messages.pot b/src/i18n/locales/messages.pot index c110956..c345f8a 100644 --- a/src/i18n/locales/messages.pot +++ b/src/i18n/locales/messages.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: oi-cli 0.10.2\n" "Report-Msgid-Bugs-To: contact@openeuler.org\n" -"POT-Creation-Date: 2025-10-21 10:54+0800\n" +"POT-Creation-Date: 2025-10-25 14:40+0800\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -213,6 +213,14 @@ msgstr "" msgid "Error processing command: {error}" msgstr "" +#: src/app/tui.py:1044 src/app/tui.py:1070 src/app/tui.py:1264 +#: src/app/tui.py:1426 src/app/dialogs/agent.py:60 src/app/dialogs/agent.py:130 +#: src/app/dialogs/agent.py:185 src/app/dialogs/agent.py:205 +#: src/app/dialogs/agent.py:208 src/tool/oi_select_agent.py:67 +#: src/tool/oi_select_agent.py:94 +msgid "智能问答" +msgstr "" + #: src/app/tui.py:1170 msgid "💡 MCP response sent" msgstr "" @@ -263,13 +271,6 @@ msgstr "" msgid "按任意键关闭" msgstr "" -#: src/app/dialogs/agent.py:60 src/app/dialogs/agent.py:130 -#: src/app/dialogs/agent.py:185 src/app/dialogs/agent.py:205 -#: src/app/dialogs/agent.py:208 src/tool/oi_select_agent.py:67 -#: src/tool/oi_select_agent.py:94 -msgid "智能问答" -msgstr "" - #: src/app/dialogs/agent.py:113 msgid "OS 智能助手" msgstr "" @@ -318,11 +319,11 @@ msgstr "" msgid "说明" msgstr "" -#: src/main.py:28 +#: src/main.py:27 msgid "openEuler Intelligence - Intelligent command-line tool" msgstr "" -#: src/main.py:29 +#: src/main.py:28 msgid "" "\n" "For more information and documentation, please visit:\n" @@ -330,136 +331,136 @@ msgid "" " " msgstr "" -#: src/main.py:39 +#: src/main.py:38 msgid "General Options" msgstr "" -#: src/main.py:40 +#: src/main.py:39 msgid "Show help and version information" msgstr "" -#: src/main.py:46 +#: src/main.py:45 msgid "Show this help message and exit" msgstr "" -#: src/main.py:53 +#: src/main.py:52 msgid "Show program version number and exit" msgstr "" -#: src/main.py:58 +#: src/main.py:57 msgid "Backend Configuration Options" msgstr "" -#: src/main.py:59 +#: src/main.py:58 msgid "" "For initializing and configuring openEuler Intelligence backend services" msgstr "" -#: src/main.py:65 +#: src/main.py:64 msgid "" "Initialize openEuler Intelligence backend\n" " * Initialization requires administrator privileges and network connection" msgstr "" -#: src/main.py:73 +#: src/main.py:72 msgid "" "Change openEuler Intelligence LLM settings (requires valid local backend " "service)\n" " * Configuration editing requires administrator privileges" msgstr "" -#: src/main.py:80 +#: src/main.py:79 msgid "Application Configuration Options" msgstr "" -#: src/main.py:81 +#: src/main.py:80 msgid "For configuring application frontend behavior and preferences" msgstr "" -#: src/main.py:86 +#: src/main.py:85 msgid "Select default agent" msgstr "" -#: src/main.py:91 +#: src/main.py:90 msgid "Language Settings" msgstr "" -#: src/main.py:92 +#: src/main.py:91 msgid "For configuring application display language" msgstr "" -#: src/main.py:100 +#: src/main.py:99 #, python-brace-format msgid "Set display language (available: {locales})" msgstr "" -#: src/main.py:105 +#: src/main.py:104 msgid "Log Management Options" msgstr "" -#: src/main.py:106 +#: src/main.py:105 msgid "For viewing and configuring log output" msgstr "" -#: src/main.py:111 +#: src/main.py:110 msgid "Show latest log content (up to 1000 lines)" msgstr "" -#: src/main.py:117 +#: src/main.py:116 msgid "Set log level (available: DEBUG, INFO, WARNING, ERROR)" msgstr "" -#: src/main.py:140 +#: src/main.py:139 #, python-brace-format msgid "Failed to retrieve logs: {error}\n" msgstr "" -#: src/main.py:147 +#: src/main.py:146 #, python-brace-format msgid "Invalid log level: {level}\n" msgstr "" -#: src/main.py:156 +#: src/main.py:155 #, python-format msgid "Log level has been set to: %s" msgstr "" -#: src/main.py:157 +#: src/main.py:156 msgid "This is a DEBUG level test message" msgstr "" -#: src/main.py:158 +#: src/main.py:157 msgid "This is an INFO level test message" msgstr "" -#: src/main.py:159 +#: src/main.py:158 msgid "This is a WARNING level test message" msgstr "" -#: src/main.py:160 +#: src/main.py:159 msgid "This is an ERROR level test message" msgstr "" -#: src/main.py:162 +#: src/main.py:161 #, python-brace-format msgid "✓ Log level successfully set to: {level}\n" msgstr "" -#: src/main.py:163 +#: src/main.py:162 msgid "✓ Logging system initialized\n" msgstr "" -#: src/main.py:191 +#: src/main.py:190 #, python-brace-format msgid "✓ Language set to: {locale}\n" msgstr "" -#: src/main.py:193 +#: src/main.py:192 #, python-brace-format msgid "✗ Unsupported language: {locale}\n" msgstr "" -#: src/main.py:228 +#: src/main.py:230 msgid "Fatal error in Intelligent Shell application" msgstr "" diff --git a/src/i18n/locales/zh_CN/LC_MESSAGES/messages.po b/src/i18n/locales/zh_CN/LC_MESSAGES/messages.po index c0926a4..832bd40 100644 --- a/src/i18n/locales/zh_CN/LC_MESSAGES/messages.po +++ b/src/i18n/locales/zh_CN/LC_MESSAGES/messages.po @@ -6,7 +6,7 @@ msgid "" msgstr "" "Project-Id-Version: oi-cli\n" "Report-Msgid-Bugs-To: contact@openeuler.org\n" -"POT-Creation-Date: 2025-10-21 10:54+0800\n" +"POT-Creation-Date: 2025-10-25 14:40+0800\n" "PO-Revision-Date: 2025-10-21 09:40+0800\n" "Last-Translator: openEuler Intelligence Team\n" "Language-Team: Chinese (Simplified)\n" @@ -213,6 +213,14 @@ msgstr "认证失败,请检查配置" msgid "Error processing command: {error}" msgstr "处理命令时出错: {error}" +#: src/app/tui.py:1044 src/app/tui.py:1070 src/app/tui.py:1264 +#: src/app/tui.py:1426 src/app/dialogs/agent.py:60 src/app/dialogs/agent.py:130 +#: src/app/dialogs/agent.py:185 src/app/dialogs/agent.py:205 +#: src/app/dialogs/agent.py:208 src/tool/oi_select_agent.py:67 +#: src/tool/oi_select_agent.py:94 +msgid "智能问答" +msgstr "智能问答" + #: src/app/tui.py:1170 msgid "💡 MCP response sent" msgstr "💡 MCP 响应已发送" @@ -263,13 +271,6 @@ msgstr "请选择 openEuler Intelligence 后端来使用智能体功能" msgid "按任意键关闭" msgstr "按任意键关闭" -#: src/app/dialogs/agent.py:60 src/app/dialogs/agent.py:130 -#: src/app/dialogs/agent.py:185 src/app/dialogs/agent.py:205 -#: src/app/dialogs/agent.py:208 src/tool/oi_select_agent.py:67 -#: src/tool/oi_select_agent.py:94 -msgid "智能问答" -msgstr "智能问答" - #: src/app/dialogs/agent.py:113 msgid "OS 智能助手" msgstr "OS 智能助手" @@ -318,11 +319,11 @@ msgstr "名称" msgid "说明" msgstr "说明" -#: src/main.py:28 +#: src/main.py:27 msgid "openEuler Intelligence - Intelligent command-line tool" msgstr "openEuler Intelligence - 智能命令行助手" -#: src/main.py:29 +#: src/main.py:28 msgid "" "\n" "For more information and documentation, please visit:\n" @@ -334,32 +335,32 @@ msgstr "" " https://gitee.com/openeuler/euler-copilot-shell/tree/master/docs\n" " " -#: src/main.py:39 +#: src/main.py:38 msgid "General Options" msgstr "通用选项" -#: src/main.py:40 +#: src/main.py:39 msgid "Show help and version information" msgstr "显示帮助信息和版本信息" -#: src/main.py:46 +#: src/main.py:45 msgid "Show this help message and exit" msgstr "显示此帮助信息并退出" -#: src/main.py:53 +#: src/main.py:52 msgid "Show program version number and exit" msgstr "显示程序版本号并退出" -#: src/main.py:58 +#: src/main.py:57 msgid "Backend Configuration Options" msgstr "后端配置选项" -#: src/main.py:59 +#: src/main.py:58 msgid "" "For initializing and configuring openEuler Intelligence backend services" msgstr "用于初始化和配置 openEuler Intelligence 后端服务" -#: src/main.py:65 +#: src/main.py:64 msgid "" "Initialize openEuler Intelligence backend\n" " * Initialization requires administrator privileges and network connection" @@ -367,7 +368,7 @@ msgstr "" "初始化 openEuler Intelligence 后端\n" " * 初始化操作需要管理员权限和网络连接" -#: src/main.py:73 +#: src/main.py:72 msgid "" "Change openEuler Intelligence LLM settings (requires valid local backend " "service)\n" @@ -376,98 +377,98 @@ msgstr "" "更改 openEuler Intelligence 大模型设置(需要有效的本地后端服务)\n" " * 配置编辑操作需要管理员权限" -#: src/main.py:80 +#: src/main.py:79 msgid "Application Configuration Options" msgstr "应用配置选项" -#: src/main.py:81 +#: src/main.py:80 msgid "For configuring application frontend behavior and preferences" msgstr "用于配置应用前端行为和偏好设置" -#: src/main.py:86 +#: src/main.py:85 msgid "Select default agent" msgstr "选择默认智能体" -#: src/main.py:91 +#: src/main.py:90 msgid "Language Settings" msgstr "语言设置" -#: src/main.py:92 +#: src/main.py:91 msgid "For configuring application display language" msgstr "用于配置应用显示语言" -#: src/main.py:100 +#: src/main.py:99 #, python-brace-format msgid "Set display language (available: {locales})" msgstr "设置显示语言 (可选: {locales})" -#: src/main.py:105 +#: src/main.py:104 msgid "Log Management Options" msgstr "日志管理选项" -#: src/main.py:106 +#: src/main.py:105 msgid "For viewing and configuring log output" msgstr "用于查看和配置日志输出" -#: src/main.py:111 +#: src/main.py:110 msgid "Show latest log content (up to 1000 lines)" msgstr "显示最新的日志内容(最多1000行)" -#: src/main.py:117 +#: src/main.py:116 msgid "Set log level (available: DEBUG, INFO, WARNING, ERROR)" msgstr "设置日志级别 (可选: DEBUG, INFO, WARNING, ERROR)" -#: src/main.py:140 +#: src/main.py:139 #, python-brace-format msgid "Failed to retrieve logs: {error}\n" msgstr "获取日志失败: {error}\n" -#: src/main.py:147 +#: src/main.py:146 #, python-brace-format msgid "Invalid log level: {level}\n" msgstr "无效的日志级别: {level}\n" -#: src/main.py:156 +#: src/main.py:155 #, python-format msgid "Log level has been set to: %s" msgstr "日志级别已设置为: %s" -#: src/main.py:157 +#: src/main.py:156 msgid "This is a DEBUG level test message" msgstr "这是一条 DEBUG 级别的测试消息" -#: src/main.py:158 +#: src/main.py:157 msgid "This is an INFO level test message" msgstr "这是一条 INFO 级别的测试消息" -#: src/main.py:159 +#: src/main.py:158 msgid "This is a WARNING level test message" msgstr "这是一条 WARNING 级别的测试消息" -#: src/main.py:160 +#: src/main.py:159 msgid "This is an ERROR level test message" msgstr "这是一条 ERROR 级别的测试消息" -#: src/main.py:162 +#: src/main.py:161 #, python-brace-format msgid "✓ Log level successfully set to: {level}\n" msgstr "✓ 日志级别已成功设置为: {level}\n" -#: src/main.py:163 +#: src/main.py:162 msgid "✓ Logging system initialized\n" msgstr "✓ 日志系统初始化完成\n" -#: src/main.py:191 +#: src/main.py:190 #, python-brace-format msgid "✓ Language set to: {locale}\n" msgstr "✓ 语言已设置为: {locale}\n" -#: src/main.py:193 +#: src/main.py:192 #, python-brace-format msgid "✗ Unsupported language: {locale}\n" msgstr "✗ 不支持的语言: {locale}\n" -#: src/main.py:228 +#: src/main.py:230 msgid "Fatal error in Intelligent Shell application" msgstr "智能 Shell 应用发生致命错误" -- Gitee From 895b8bb933ddcb9703ad9ea73b4c66fc5dea2756 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B2=E9=B8=BF=E5=AE=87?= Date: Sat, 25 Oct 2025 14:48:20 +0800 Subject: [PATCH 3/3] chore: release 0.10.2, revision 2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 史鸿宇 --- distribution/linux/euler-copilot-shell.spec | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/distribution/linux/euler-copilot-shell.spec b/distribution/linux/euler-copilot-shell.spec index b0a27fc..0c46909 100644 --- a/distribution/linux/euler-copilot-shell.spec +++ b/distribution/linux/euler-copilot-shell.spec @@ -4,7 +4,7 @@ Name: euler-copilot-shell Version: 0.10.2 -Release: 1%{?dev_timestamp:.dev%{dev_timestamp}}%{?dist} +Release: 2%{?dev_timestamp:.dev%{dev_timestamp}}%{?dist} Summary: openEuler Intelligence 智能命令行工具集 License: MulanPSL-2.0 URL: https://gitee.com/openeuler/euler-copilot-shell @@ -135,6 +135,10 @@ rm -f /usr/lib/openeuler-intelligence/scripts/5-resource/env.* fi %changelog +* Sat Oct 25 2025 openEuler - 0.10.2-2 +- Add internationalization support (currently supports English and Simplified Chinese) +- Fix issue where settings page may reopen multiple times + * Mon Oct 20 2025 openEuler - 0.10.2-1 - 修复后端可用性校验,优化令牌格式验证 -- Gitee