i18n: 全部用户可见字符串统一为英文(46个文件)

- 所有Command/Tool/Core/MCP/Plugin中的中文提示改为英文
- Javadoc注释和行内注释保留中文不变
- AI提示词(compact/commit/review等)改为英文
- 编译验证通过

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
liuzh
2026-04-02 00:30:47 +08:00
co-authored by Copilot
parent 1172ab6b08
commit ff734d6b0d
46 changed files with 469 additions and 469 deletions
@@ -62,7 +62,7 @@ public class ClaudeMdLoader {
.sorted()
.forEach(p -> loadFile(p, "rule").ifPresent(sections::add));
} catch (IOException e) {
log.debug("加载规则目录失败: {}", e.getMessage());
log.debug("Failed to load rules directory: {}", e.getMessage());
}
}
@@ -80,11 +80,11 @@ public class ClaudeMdLoader {
try {
String content = Files.readString(path, StandardCharsets.UTF_8).strip();
if (!content.isEmpty()) {
log.debug("已加载 {} 级 CLAUDE.md: {}", level, path);
log.debug("Loaded {} level CLAUDE.md: {}", level, path);
return java.util.Optional.of(content);
}
} catch (IOException e) {
log.warn("读取 {} 失败: {}", path, e.getMessage());
log.warn("Failed to read {}: {}", path, e.getMessage());
}
return java.util.Optional.empty();
}
@@ -36,7 +36,7 @@ public class GitContext {
*/
public GitContext collect() {
if (!isGitRepo) {
log.debug("当前目录不是 Git 仓库: {}", projectDir);
log.debug("Current directory is not a Git repository: {}", projectDir);
return this;
}
@@ -114,7 +114,7 @@ public class GitContext {
return output.toString().stripTrailing();
} catch (Exception e) {
log.debug("Git 命令执行失败: {}", e.getMessage());
log.debug("Git command execution failed: {}", e.getMessage());
return "";
}
}
@@ -58,7 +58,7 @@ public class SkillLoader {
Path commandsDir = projectDir.resolve(".claude").resolve("commands");
loadFromDirectory(commandsDir, "command");
log.debug("共加载 {} 个技能", skills.size());
log.debug("Loaded {} skills in total", skills.size());
return Collections.unmodifiableList(skills);
}
@@ -77,13 +77,13 @@ public class SkillLoader {
try {
Skill skill = parseSkillFile(p, source);
skills.add(skill);
log.debug("加载技能: {} [{}] from {}", skill.name(), source, p.getFileName());
log.debug("Loaded skill: {} [{}] from {}", skill.name(), source, p.getFileName());
} catch (IOException e) {
log.warn("加载技能文件失败: {}: {}", p, e.getMessage());
log.warn("Failed to load skill file: {}: {}", p, e.getMessage());
}
});
} catch (IOException e) {
log.debug("扫描技能目录失败: {}: {}", dir, e.getMessage());
log.debug("Failed to scan skill directory: {}: {}", dir, e.getMessage());
}
}