diff options
| author | 魏曹先生 <1992414357@qq.com> | 2025-11-17 17:45:06 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2025-11-17 17:45:06 +0800 |
| commit | 7e0d609459fdcc228ff2fcc667bb5b03295fc732 (patch) | |
| tree | 02bd14b60fd66704c580ad63fb3fa41eb5c6ef7d | |
| parent | a53750aeacb95b65b99a3413dc07c1292bf6f564 (diff) | |
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.
| -rw-r--r-- | locales/help_docs/en.yml | 6 | ||||
| -rw-r--r-- | locales/help_docs/zh-CN.yml | 8 |
2 files changed, 11 insertions, 3 deletions
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: | 无文件结构变更 |
