From 4015ac6d594f971f83e9ff70578eb08fea390c80 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Wed, 26 Nov 2025 13:33:27 +0800 Subject: Add hold and throw commands for file edit rights - Implement `jv hold` and `jv throw` commands with file selection - Add pre-check validation for file existence, mapping, and edit rights - Support --details and --skip-failed flags for error handling - Add localization strings for both English and Chinese --- locales/help_docs/en.yml | 41 +++++++++++++++++++++++++++++++++++++++++ locales/help_docs/zh-CN.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 82 insertions(+) (limited to 'locales/help_docs') diff --git a/locales/help_docs/en.yml b/locales/help_docs/en.yml index 548ce0f..af6cea3 100644 --- a/locales/help_docs/en.yml +++ b/locales/help_docs/en.yml @@ -542,6 +542,31 @@ jv: The current workspace is not stained, cannot perform the next operation! **Tip**: Please first use `jv direct ` to direct to an upstream vault + change_edit_right: + no_selection: No files selected! + check_failed: | + In the %{num} selected files, there are items that failed pre-check! + Add `--details` after the command to view specific details + + **Tip**: Add `--skip-failed` after the command to skip the current failed items and proceed with the operation + + check_failed_details: + In the %{num} selected files, %{failed} files failed pre-check! + %{items} + + check_fail_item: | + %{path} (%{reason}) + + check_fail_reason: + not_found_in_local: File Not Found + not_found_in_sheet: Mapping Not Found In Sheet + not_a_tracked_file: File Not Tracked + base_version_unmatch: Version Mismatch + not_holder: Not Holder + has_holder: Held by %{holder} + already_held: Already Held + already_modified: Already Modified + docs: not_found: Doc `%{docs_name}` not found! no_doc_dir: | @@ -809,6 +834,22 @@ jv: not_owner: | You are not the holder of sheet `%{name}`, cannot drop it! + change_edit_right: + failed: + none: | + Do nothing! + + success: + hold: | + Held %{num} files! + + throw: | + Threw %{num} files! + + mixed: | + Successfully modified edit rights for %{num} files! + Held %{num_hold}, Threw %{num_throw} + track: done: | Tracked %{count} files to latest! diff --git a/locales/help_docs/zh-CN.yml b/locales/help_docs/zh-CN.yml index 267e85c..2f496ae 100644 --- a/locales/help_docs/zh-CN.yml +++ b/locales/help_docs/zh-CN.yml @@ -544,6 +544,31 @@ jv: 当前工作区并未被染色,无法执行下一步操作! **提示**:请先使用 `jv direct <上游地址>` 定向到上游库 + change_edit_right: + no_selection: 您未选中任何文件! + check_failed: | + 在您选中的 %{num} 个文件中,存在预检查失败的项! + 在命令后添加 `--details` 查看具体事项 + + **提示**:命令后添加 `--skip-failed` 可跳过当前检查失败的项进行操作 + + check_failed_details: | + 在您选中的 %{num} 个文件中,有 %{failed} 个文件预先检查未通过! + %{items} + + check_fail_item: | + %{path}(%{reason}) + + check_fail_reason: + not_found_in_local: 文件未找到 + not_found_in_sheet: 表中不存在 + not_a_tracked_file: 文件未被跟踪 + base_version_unmatch: 基准版本不匹配 + not_holder: 期望丢弃,但不是持有者 + has_holder: 期望持有,但被 %{holder} 持有 + already_held: 文件已持有 + already_modified: 文件已修改 + docs: not_found: 文档 `%{docs_name}` 未找到! no_doc_dir: | @@ -815,6 +840,22 @@ jv: not_owner: | 您不是表 `%{name}` 的持有人,无法放弃该表! + change_edit_right: + failed: + none: | + 没有处理任何文件! + + success: + hold: | + 成功持有 %{num} 个文件! + + throw: | + 成功丢弃 %{num} 个文件! + + mixed: | + 成功修改 %{num} 个文件的编辑权! + 持有 %{num_hold},丢弃 %{num_throw} + track: done: | 追踪 %{count} 个文件至最新! -- cgit