Expand i18n coverage

This commit is contained in:
ZacharyZcR
2026-05-23 15:18:40 +08:00
parent 9ed6cc95b6
commit 73cbe803c4
79 changed files with 2540 additions and 621 deletions
+3 -3
View File
@@ -58,7 +58,7 @@ func (p *CleanerPlugin) cleanFiles(output *strings.Builder, dir string, names []
for _, name := range names {
path := filepath.Join(dir, name)
if err := os.Remove(path); err == nil {
fmt.Fprintf(output, "[清理] %s\n", path)
fmt.Fprintln(output, i18n.Tr("cleaner_removed", path))
cleaned++
}
}
@@ -70,7 +70,7 @@ func (p *CleanerPlugin) cleanGlob(output *strings.Builder, dir, pattern string)
cleaned := 0
for _, f := range matches {
if err := os.Remove(f); err == nil {
fmt.Fprintf(output, "[清理] %s\n", f)
fmt.Fprintln(output, i18n.Tr("cleaner_removed", f))
cleaned++
}
}
@@ -87,7 +87,7 @@ func (p *CleanerPlugin) cleanUnix(output *strings.Builder) int {
}
for _, hf := range histFiles {
if p.scrubHistory(hf) {
fmt.Fprintf(output, "[清理] %s 中的 fscan 记录\n", hf)
fmt.Fprintln(output, i18n.Tr("cleaner_history_removed", hf))
cleaned++
}
}