Skip to content

更新中文翻译:2026-07 上游同步 - #7

Merged
Binlogo merged 1 commit into
rust-lang-cn:zhfrom
Binlogo:Binlogo/zh-update-2026-07
Jul 5, 2026
Merged

Binlogo merged 1 commit into
rust-lang-cn:zhfrom
Binlogo:Binlogo/zh-update-2026-07

Conversation

@Binlogo

@Binlogo Binlogo commented Jul 5, 2026

Copy link
Copy Markdown
Member

概述

将 po/zh.po 与最新上游源码同步后,翻译了自 2025-08 以来上游新增/变更的字符串。完成后中文版翻译完成度达 100%(2959/2959)。

改动明细

  • 新增翻译 32 条(原为未译)
  • 重译修订 42 条(上游源码文本发生变更)
  • 清理 15 条已从源码移除的过时条目

主要涉及章节:

章节 说明
hello/comment 注释章节重构(普通注释 / 文档注释)
trait/clone 新增 “Copy:隐式克隆” 一节
fn/closures/…/iter_find 迭代器 find/position 注释重写
generics/new_types 示例由「年龄/年」改为「英里/马拉松」
trait/drop 新增 TempFile 自动清理示例注释
hello/print/fmt、types/cast、variable_bindings 等 提示语与代码注释同步

术语与约定

  • 沿用现有译法:trait/Copy/Clone 保留英文,predicate 译作「闭包」,edition → 「版本」,move → 「移动」,heap memory → 「堆内存」,file handle → 「文件句柄」。
  • "MIT"、"alice_codes" 等数据/标识符保留原文。
  • 参考 Rust 语言术语中英文对照表。

校验

  • msgfmt --check --statistics:2959 条全部翻译,无格式错误。
  • 语义比对确认:未改动任何既有译文,仅处理本轮新增/变更条目。
  • 已在本地 mdbook serve(mdbook 0.5.1 + i18n-helpers 0.4.0)预览确认各章节渲染正常。

Sync po/zh.po with the latest source and translate the new/changed
strings introduced upstream since the 2025-08 update:

- 32 newly translated entries (previously untranslated)
- 42 retranslated entries (source text changed upstream)
- 15 obsolete strings removed from source dropped

Main chapters affected: hello/comment (comment section rework),
trait/clone (new "Copy: Implicit Cloning" section), fn/closures
iter_find, generics/new_types (miles/marathon example), trait/drop,
hello/print/fmt. Now 100% translated (2959/2959); msgfmt --check clean.
@Binlogo
Binlogo merged commit 4d0f115 into rust-lang-cn:zh Jul 5, 2026
1 check passed
@Binlogo
Binlogo deleted the Binlogo/zh-update-2026-07 branch July 5, 2026 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant