mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-06-29 09:55:56 +08:00
feat: CSV 导入导出、导入撤销支持及多项 bug 修复
功能: - 新增 CSV 格式导入导出支持(含 BOM 处理、引号转义、智能标题行检测) - 导入操作支持撤销/重做 - 保存时 PATH 长度检查与警告 - 深色模式状态持久化(darkmode.txt) - 提取 get_current_target/push_record 为共享函数,消除控制器层重复代码 - 新增 string_list_insert_at,修复撤销删除时的索引恢复 - 新增 undo_redo、error_code、import_export 单元测试 Bug 修复: - 修复备份目录对话框和失败原因的硬编码中文字符串 - 提取 get_exe_dir 到 os_env 消除 i18n.c/ui_utils.c 重复定义 - 修复导入撤销 old_sys/old_user 内存管理(push 后置 NULL 防止重复释放) - 修复 CSV 导出转义与导入解析不一致(移除反斜杠转义,依赖 CSV 引号机制) - 修正 PATH 长度 8191 限制描述为 "command line safe limit"
This commit is contained in:
+29
-1
@@ -414,4 +414,32 @@ msgstr "深色模式"
|
||||
|
||||
#: src/ui/main_window.c
|
||||
msgid "Light Mode"
|
||||
msgstr "浅色模式"
|
||||
msgstr "浅色模式"
|
||||
|
||||
#: src/controller/callbacks_sys.c
|
||||
msgid "Select backup directory"
|
||||
msgstr "选择备份目录"
|
||||
|
||||
#: src/controller/callbacks_sys.c
|
||||
msgid "Unknown error"
|
||||
msgstr "未知错误"
|
||||
|
||||
#: src/controller/callbacks_sys.c
|
||||
msgid "Failed to get AppData path"
|
||||
msgstr "无法获取 AppData 路径"
|
||||
|
||||
#: src/controller/callbacks_sys.c
|
||||
msgid "Failed to create backup directory or file"
|
||||
msgstr "无法创建备份目录或文件"
|
||||
|
||||
#: src/controller/callbacks_sys.c
|
||||
msgid "Failed to read PATH from registry"
|
||||
msgstr "无法读取注册表中的 PATH 值"
|
||||
|
||||
#: src/controller/callbacks_sys.c
|
||||
msgid "Backup failed! Reason: %s\n\nContinue saving?\n(Continuing may prevent recovery)"
|
||||
msgstr "备份失败!原因:%s\n\n是否继续保存?\n(继续保存可能导致无法恢复)"
|
||||
|
||||
#: src/controller/callbacks_sys.c
|
||||
msgid "Total PATH length: %d characters (command line safe limit: 8191)\n"
|
||||
msgstr "总 PATH 长度:%d 字符(命令行安全限制:8191)\n"
|
||||
Reference in New Issue
Block a user