|
99 | 99 | - 'vLLM Ascend' → 'vLLM Ascend' |
100 | 100 | - 'vllm-ascend' → 'vllm-ascend' |
101 | 101 | - vLLM, CANN, Huawei, Atlas, etc.. |
| 102 | +9. Preserve the EXACT leading spaces of every line after a "\n" in msgid. |
| 103 | + These spaces encode Markdown nesting (tabs, ordered/unordered list items, |
| 104 | + nested code fences). Never trim, never re-wrap, never normalize them. |
| 105 | + Example: msgid "...\n Keep the remaining flags ..." must produce |
| 106 | + msgstr "....\n 保留其余标志 ..." with the same 7-space indent. |
102 | 107 |
|
103 | 108 | --- CONTENT THAT SHOULD NOT BE TRANSLATED --- |
104 | | -9. DO NOT translate contributor names, GitHub usernames, or dates. |
| 109 | +10. DO NOT translate contributor names, GitHub usernames, or dates. |
105 | 110 | These should be copied verbatim from msgid to msgstr. |
106 | 111 | Example: "Xiyuan Wang [@wangxiyuan] 2025-01-15" → keep as-is. |
107 | 112 |
|
108 | | -10. Translate text in all table header rows. Preserve row order, indentation, |
| 113 | +11. Translate text in all table header rows. Preserve row order, indentation, |
109 | 114 | separators, URLs, code, and identifiers. |
110 | 115 | Keep || (merged columns), ^^ (merged rows), and | | (a blank cell) unchanged. |
111 | 116 | Example: "| Model | Graph Mode ||" → "| 模型 | 图模式 ||". |
112 | 117 | Example: "|:-----------:|:-----:|:-----:|" → keep as-is. |
113 | 118 |
|
114 | | -11. DO NOT translate code identifiers, variable names, CLI flags, or shell |
| 119 | +12. DO NOT translate code identifiers, variable names, CLI flags, or shell |
115 | 120 | commands. Copy them verbatim. |
116 | 121 | Example: "--data-parallel-size" → keep as-is. |
117 | 122 | Example: "vllm serve /path/to/model" → keep as-is. |
118 | 123 |
|
119 | | -12. DO NOT translate URLs, email addresses, or paths. |
| 124 | +13. DO NOT translate URLs, email addresses, or paths. |
120 | 125 | Copy them verbatim from msgid to msgstr. |
121 | 126 |
|
122 | 127 | --- TERMINOLOGY (MUST TRANSLATE) --- |
123 | 128 |
|
124 | | -13. standalone 'Ascend' → '昇腾' |
125 | | -14. '950PR&950DT Products' → 'Ascend 950PR&950DT系列产品' |
126 | | -15. '950DT Products' → 'Ascend 950DT系列产品' |
127 | | -16. '950PR Products' → 'Ascend 950PR系列产品' |
128 | | -17. 'Atlas A2 Products' → 'Atlas A2系列产品' |
129 | | -18. 'Atlas A3 Products' → 'Atlas A3系列产品' |
130 | | -19. 'Atlas 850E SuperPoD (Air-Cooled)' → 'Atlas 850E 风冷超节点' |
| 129 | +14. standalone 'Ascend' → '昇腾' |
| 130 | +15. '950PR&950DT Products' → 'Ascend 950PR&950DT系列产品' |
| 131 | +16. '950DT Products' → 'Ascend 950DT系列产品' |
| 132 | +17. '950PR Products' → 'Ascend 950PR系列产品' |
| 133 | +18. 'Atlas A2 Products' → 'Atlas A2系列产品' |
| 134 | +19. 'Atlas A3 Products' → 'Atlas A3系列产品' |
| 135 | +20. 'Atlas 850E SuperPoD (Air-Cooled)' → 'Atlas 850E 风冷超节点' |
131 | 136 |
|
132 | 137 | --- MkDocs MATERIAL EXTENSIONS --- |
133 | | -20. ADMONITIONS (!!! type): Keep "!!!" and type keyword (note, warning, tip) |
| 138 | +21. ADMONITIONS (!!! type): Keep "!!!" and type keyword (note, warning, tip) |
134 | 139 | in English. Only translate the title text after type. |
135 | 140 | Example: msgid "!!! note" → msgstr "!!! note" |
136 | 141 | Example: msgid "!!! note \"Important\"" → msgstr "!!! note \"重要\"" |
137 | 142 |
|
138 | | -21. COLLAPSIBLE BLOCKS (??? type / ???+ type): Keep the exact "???" or |
| 143 | +22. COLLAPSIBLE BLOCKS (??? type / ???+ type): Keep the exact "???" or |
139 | 144 | "???+" marker, the type keyword, and quote syntax unchanged. The "+" |
140 | 145 | means expanded by default and MUST NOT be added or removed. Translate only |
141 | 146 | the title text inside quotes. |
142 | 147 | Example: msgid "??? note \\"Click here...\\"" → msgstr "??? note \\"点击这里...\\"" |
143 | 148 | Example: msgid "???+ warning \\"Important\\"" → msgstr "???+ warning \\"重要\\"" |
144 | 149 |
|
145 | | -22. CONTENT TABS (===): Keep "===" and quote syntax. Translate only the label. |
| 150 | +23. CONTENT TABS (===): Keep "===" and quote syntax. Translate only the label. |
146 | 151 | Example: msgid "=== \"Before using pip\"" → msgstr "=== \"使用pip之前\"" |
147 | 152 |
|
148 | 153 |
|
149 | 154 |
|
150 | 155 | --- TRANSLATION QUALITY --- |
151 | | -23. Use natural, fluent Chinese technical documentation style. Avoid word-by-word |
| 156 | +24. Use natural, fluent Chinese technical documentation style. Avoid word-by-word |
152 | 157 | literal translation. |
153 | | -24. Use standard Chinese technical terminology consistently. |
154 | | -25. For markdown links [text](url): translate the display text in [] but keep |
| 158 | +25. Use standard Chinese technical terminology consistently. |
| 159 | +26. For markdown links [text](url): translate the display text in [] but keep |
155 | 160 | the URL in () exactly as-is. |
156 | 161 | Example: [Quick Start](quick_start.md) → [快速开始](quick_start.md) |
157 | | -26. For headings: translate the heading text but KEEP the "#" / "##" / "###" |
| 162 | +27. For headings: translate the heading text but KEEP the "#" / "##" / "###" |
158 | 163 | prefix exactly as in the msgid. |
159 | 164 | Example: msgid "# Quick Start" → msgstr "# 快速开始" |
160 | 165 | Example: msgid "## Overview" → msgstr "## 概述" |
161 | | -27. DO NOT add "#, fuzzy" markers. |
162 | | -28. If a msgid is purely structural (symbols, code, file paths only), copy it |
| 166 | +28. DO NOT add "#, fuzzy" markers. |
| 167 | +29. If a msgid is purely structural (symbols, code, file paths only), copy it |
163 | 168 | verbatim to msgstr. |
164 | | -29. Never invent or guess content. If unsure about a term, leave it in English. |
| 169 | +30. Never invent or guess content. If unsure about a term, leave it in English. |
165 | 170 |
|
166 | 171 | {content}""" |
167 | 172 |
|
|
0 commit comments