From 7e0d609459fdcc228ff2fcc667bb5b03295fc732 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Mon, 17 Nov 2025 17:45:06 +0800 Subject: Improve invalid modification messages with specific reasons Add detailed reasons for invalid modifications including "not_holder" and "base_version_mismatch" to provide clearer feedback to users. --- locales/help_docs/en.yml | 6 +++++- locales/help_docs/zh-CN.yml | 8 ++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'locales/help_docs') diff --git a/locales/help_docs/en.yml b/locales/help_docs/en.yml index 820da3a..4997257 100644 --- a/locales/help_docs/en.yml +++ b/locales/help_docs/en.yml @@ -659,7 +659,11 @@ jv: * Modified: %{path} invalid_modified_item: | - * Modified: %{path} (INVALID) + * Modified: %{path} (%{reason}) + + invalid_modified_reasons: + not_holder: Modified without holding + base_version_mismatch: Base version mismatch for editing no_structure_changes: | No structural changes locally diff --git a/locales/help_docs/zh-CN.yml b/locales/help_docs/zh-CN.yml index 922514b..c35b6aa 100644 --- a/locales/help_docs/zh-CN.yml +++ b/locales/help_docs/zh-CN.yml @@ -661,13 +661,17 @@ jv: - 丢失: %{path} moved_item: | - > 移动: %{from} -> %{to} + > 移动: %{from} 至 %{to} modified_item: | * 修改: %{path} invalid_modified_item: | - * 修改: %{path} (无法提交的修改) + * 修改: %{path}(%{reason}) + + invalid_modified_reasons: + not_holder: 不持有但被修改 + base_version_mismatch: 基于的编辑版本不匹配 no_structure_changes: | 无文件结构变更 -- cgit