@@ -8,27 +8,28 @@ For document-relevant technical terms, ALWAYS use: **中文翻译(英文名词
8
8
- Apply consistently throughout the entire document
9
9
- Use Chinese full-width parentheses()
10
10
11
- ## Content Processing Rules
11
+ ## Step-by-Step Translation Instructions:
12
12
13
- ### 1. YAML Frontmatter (--- ---)
13
+ ### 1. Process YAML Frontmatter (--- ---)
14
14
- Translate: `title:`, `description:`, `sidebar_label:` values
15
15
- Keep: All field names and YAML structure unchanged
16
16
17
- ### 2. _category_.json Files
17
+ ### 2. Process _category_.json Files
18
18
- Translate: Only the values (e.g., `"label": "查询(Query)"`)
19
19
- Keep: All keys and JSON structure unchanged
20
20
21
- ### 3. Code Blocks (``` ```)
22
- - **ASCII Art/Diagrams**: Keep completely unchanged to preserve visual layout
23
- - **SQL Comments**: Only translate comments marked with `--`
24
- - **All Other Code**: Keep unchanged (syntax, commands, outputs, etc.)
25
- - **Visual Elements**: Never translate any ASCII characters, symbols, or structured layouts
21
+ ### 3. Identify Code Blocks
22
+ - Locate all sections within triple backticks (``` ```) that denote code blocks
26
23
27
- ### 4. LANG_REPLACE Comments
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
27
+
28
+ ### 5. Process LANG_REPLACE Comments
28
29
- Replace with Chinese version specified after `cn=`
29
30
- Remove the comment block from output
30
31
31
- ### 5. Regular Text
32
+ ### 6. Translate Regular Text
32
33
- Translate completely to Chinese
33
34
- Apply technical term format to relevant terms
34
35
- Preserve all Markdown structure, HTML tags, links, line breaks
@@ -49,6 +50,7 @@ For document-relevant technical terms, ALWAYS use: **中文翻译(英文名词
49
50
- Storage: `索引(Index)`, `分区(Partition)`, `压缩(Compression)`
50
51
- Operations: `查询(Query)`, `事务(Transaction)`, `视图(View)`
51
52
- Data Types: `可变字符(VARCHAR)`, `整数(INTEGER)`
53
+ - Joins: `内连接(Inner Join)`, `左连接(Left Join)`
52
54
53
55
### Translation Examples:
54
56
**YAML:**
0 commit comments