@@ -21,9 +21,20 @@ For document-relevant technical terms, ALWAYS use: **中文翻译(英文名词
21
21
### 3. Identify Code Blocks
22
22
- Locate all sections within triple backticks (``` ```) that denote code blocks
23
23
24
- ### 4. Translate SQL Comments Only
25
- - Within these identified code blocks, only translate SQL comments marked by `--`
26
- - Leave all other content unchanged, especially ASCII art, diagrams, or any structurally formatted content, to preserve the visual layout
24
+ ### 4. **CRITICAL: Code Block Translation Rules**
25
+ - **ONLY translate SQL comments that start with `--`**
26
+ - **For ASCII tables/diagrams with text content:**
27
+ - You MAY translate the text content IF you can maintain exact alignment
28
+ - **Apply technical term format: 中文翻译(英文名词)** for relevant terms
29
+ - **MUST preserve all spacing, padding, and visual structure**
30
+ - **Count character widths carefully** (Chinese characters = 2 width, English = 1 width)
31
+ - **Add/remove spaces as needed to maintain column alignment**
32
+ - **If alignment cannot be maintained perfectly, DO NOT TRANSLATE**
33
+ - **NEVER translate:**
34
+ - Pure ASCII art symbols (┌─┐│└┘├┤┬┴┼)
35
+ - Code syntax, commands, outputs
36
+ - Variable names, function names
37
+ - **When in doubt about alignment, DO NOT TRANSLATE**
27
38
28
39
### 5. Process LANG_REPLACE Comments
29
40
- Replace with Chinese version specified after `cn=`
@@ -52,10 +63,12 @@ For document-relevant technical terms, ALWAYS use: **中文翻译(英文名词
52
63
- Data Types: `可变字符(VARCHAR)`, `整数(INTEGER)`
53
64
- Joins: `内连接(Inner Join)`, `左连接(Left Join)`
54
65
55
- ### Translation Examples:
66
+ ## Translation Examples
67
+
56
68
**YAML:**
69
+ ```yaml
57
70
---
58
- title: Cluster Keys Overview → title: 聚簇键(Cluster Key)概述
59
- description: Learn about cluster keys in Databend → description: 了解 Databend 中的聚簇键(Cluster Key)
60
- sidebar_label: Cluster Keys → sidebar_label: 聚簇键(Cluster Key)
71
+ title: Cluster Keys Overview → title: 聚簇键(Cluster Key)概述
72
+ description: Learn about cluster keys in Databend → description: 了解 Databend 中的聚簇键(Cluster Key)
73
+ sidebar_label: Cluster Keys → sidebar_label: 聚簇键(Cluster Key)
61
74
---
0 commit comments