Help:Extension:Translate/Import Translations via CSV/zh

This page describes the feature that allows translators to submit their translations via CSV to an system administrator, and then have it imported.

步骤


导出CSV
首先确定您希望通过CSV提交翻译的页面. 示例页面：开发指南.

Go to Special:ExportTranslations and export that page in CSV format in the French (fr) language.

The CSV file exported will be in the following format:




 * Highlight 1 in image - Message definition in the source language
 * Highlight 2 in image - Translations in the exported language. French in this case



向CSV添加翻译
可以修改上一步中导出的文件以更新现有翻译或添加更多翻译.

请参见CSV文件中的下图，该文件添加了西班牙语(ES)和荷兰语(NL)的翻译：



然后，可以将该文件提供给管理员，以便将翻译导入系统.

注意

 * Empty translations will be ignored. Translations will not actually be removed if a cell in the CSV is made empty.
 * If no modification is made to a translation no new entries will be added to the translation change history.



通过CSV导入翻译
The file received from the translator can be imported via a command line script made available in the translate extension :

The script expects the following parameters:


 * Path to the CSV file
 * - Name of the user performing the import
 * - Edit summary to be used when updating the translations
 * - Actually perform the import. Without this a dry run will be carried out.

Example run
First, a dry run to see what will be imported:

Now perform the actual import: