Commit b6ef0f6
committed
feat(i18n): 补全并修复 EN 翻译,修 translate.py 两处静默丢内容 bug
全量补译 447 篇 CN→EN (glm-4.6),本次更新 337 篇 + 新增 1 篇。
translate.py 两处根因修复:
1. 8192 输出截断: MAX_SINGLE_FILE_CHARS 60K→14K,长文件按 ## 拆块,避免单块英译撞 max_tokens 上限被静默截断(曾致 ReferenceCard 未闭合炸构建)。
2. glm-4.6 剥占位符: 改 prose-only 流水线(_translate_body_prose_only),按代码块边界切、代码逐字保留、\n\n 缝合,替代对 glm-4.6 失效的 __PRESERVED_N__ 机制。
附带: coverage.py --update 补全 EN translation 元数据块、刷新 README 覆盖率徽章; v0.6.0 changelog。
验证: 447 篇 EN 结构差异归零,markdownlint 通过,构建 ✓ SUCCESS。1 parent 35b5fbc commit b6ef0f6
341 files changed
Lines changed: 41485 additions & 52538 deletions
File tree
- changelogs
- documents/en
- appendix
- community/dev
- compilation
- cpp-reference
- concurrency
- containers
- core-language
- memory
- templates
- vol1-fundamentals
- c_tutorials
- advanced_feature
- ch00
- ch01
- ch02
- ch03
- ch04
- ch05
- ch06
- ch07
- ch08
- ch09
- ch10
- ch11
- ch12
- vol10-open-lecture-notes/cppcon/2025
- 01-concept-based-generic-programming
- 02-some-assembly-required
- 03-back-to-basics-ranges
- 04-back-to-basics-move-semantics
- vol2-modern-features
- ch00-move-semantics
- ch01-smart-pointers
- ch02-constexpr
- ch03-lambda
- ch04-type-safety
- ch05-structured-bindings
- ch06-auto-decltype
- ch07-attributes
- ch08-string-view
- ch09-filesystem
- ch10-error-handling
- ch11-user-defined-literals
- vol3-standard-library
- vol4-advanced
- vol2-modern-cpp17
- vol5-concurrency
- ch00-concurrency-fundamentals
- ch01-thread-lifecycle-raii
- ch02-mutex-condition-sync
- ch03-atomic-memory-model
- ch04-concurrent-data-structures
- ch05-future-task-threadpool
- ch06-async-io-coroutine
- ch07-actor-channel
- ch08-debug-testing-perf
- ch09-distributed-bridge
- exercises
- vol6-performance
- vol7-engineering
- vol8-domains
- cpp-deep-dives/pointer-semantics
- embedded
- 00-env-setup
- 01-led
- 02-button
- 03-uart
- vol9-open-source-project-learn/chrome/01_once_callback
- full
- hands_on
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
161 | 162 | | |
162 | 163 | | |
163 | 164 | | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
164 | 175 | | |
165 | 176 | | |
166 | 177 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
164 | 165 | | |
165 | 166 | | |
166 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
167 | 178 | | |
168 | 179 | | |
169 | 180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
12 | 11 | | |
13 | | - | |
14 | | - | |
15 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
0 commit comments