Doc2X Translation Glossary Guide
This document provides detailed instructions on how to import and use CSV-format translation glossaries in Doc2X, helping you customize the translation effects of professional vocabulary.
Currently, each glossary supports a maximum of 500 terms.
Template Content Format
Simply put, it's a table file where the first row contains headers, and each subsequent row contains terms to be translated:
source,target,src_lang,tgt_lng
车辆制动定速巡航系统,CCS,zh,en
Header Field Explanation
From left to right:
Field Name | Description | Required | Default Value |
---|---|---|---|
source | Source text | ✅ Required | - |
target | Translated content | ✅ Required | - |
src_lang | Source language | ⭕ Optional | English |
tgt_lng | Target language | ⭕ Optional | Chinese |
Language Code Reference Table
Display Name | Code | Example |
---|---|---|
English | en | Use en for English |
Chinese Simplified | zh | Use zh for Chinese |
Français | fr | Use fr for French |
日本語 | ja | Use ja for Japanese |
Русский | ru | Use ru for Russian |
Português | pt | Use pt for Portuguese |
Español | es | Use es for Spanish |
Deutsch | de | Use de for German |
한국어 | ko | Use ko for Korean |
العربية | ar | Use ar for Arabic |
Important Notes
Separator Requirements
- ✅ File must use English comma separator (
,
) - ❌ Chinese comma (
,
) will cause errors!
- ✅ File must use English comma separator (
Language Code Standards
- Language codes must strictly follow the 2-letter abbreviations in the table
- Case-sensitive, please use lowercase
Simplified Format
- If translating from English to Chinese, you can omit the last two columns:
csvsource,target CCS,车辆制动定速巡航系统
File Saving Recommendations
- When saving files, it's recommended to use Notepad or professional CSV editors
- ❌ Avoid using Excel's automatic formatting
What to do if the downloaded template appears garbled when opened
- When opening CSV files with Excel, it usually defaults to GBK or other encodings. You can use Excel's import function and select UTF-8 encoding to avoid garbled text
- When saving with Excel, please ensure you save as CSV with UTF-8 encoding
Frequently Asked Questions
Q: Can I import multiple languages at once?
A: Yes! For example, you can have both Chinese-to-English and French-to-German translations in the same file.
Q: What if I write the wrong language code?
A: The system will prompt an error. Please check against the code table above.
Q: What's the maximum length of a glossary?
A: There's no limit on CSV file content length. However, Doc2X glossaries have a maximum of 500 entries. Content exceeding this limit in the CSV file will not be added to the glossary.
Complete Example
Here's a complete example of a multilingual translation glossary (example.csv):
source,target,src_lang,tgt_lng
Hello,你好,en,zh
Bonjour,早安,fr,zh
こんにちは,Hello,ja,en
Example Explanation
- Row 1: English "Hello" translated to Chinese "你好"
- Row 2: French "Bonjour" translated to Chinese "早安"
- Row 3: Japanese "こんにちは" translated to English "Hello"