CSV 文件#

CSV 文件可以包含源和翻譯的簡單列表。 Weblate 支持以下文件:

  • 帶有標頭定義字段(location, source, target, ID, fuzzy, context, translator_comments, ` developer_comments`)的文件。這是推薦的方法,因為它最不容易出錯。挑選 CSV file 作為一種文件格式。

  • 具有兩個字段的文件 —— 源和翻譯(按此順序),選擇 Simple CSV file 作為文件格式。

  • 無標頭文件字段順序由`translate-toolkit`_: locationsourcetargetIDfuzzycontexttranslator_commentsdeveloper_comments 所定義。選擇 CSV file 作為一種文件格式。

  • 請記住定義:ref:“組件 - 模板”(參見:ref:`Bimono)。

提示

By default, the CSV format does autodetection of file encoding. This can be unreliable in some corner cases and causes performance penalty. Please choose file format variant with encoding to avoid this (for example CSV file (UTF-8)).

警告

CSV 格式當前會自動檢測 CSV 文件的方言。在某些情況下,自動檢測可能會失敗,並且您會得到不同的結果。對於值中包含換行符的 CSV 文件尤其如此。作為一種解決方法,推薦省略引用的字符。

也參考

CSV

Multivalue CSV file#

在 4.13 版本新加入.

This variant of the CSV files allows storing multiple translations per string.

Example files#

範例檔案:

Thank you for using Weblate.,Děkujeme za použití Weblate.

Weblate 設定組態#

雙語 CSV 文件的典型Weblate 組件配置

文件掩碼

locale/*.csv

單語的基底語言檔

Empty

新翻譯的模板

locale/en.csv

檔案格式

CSV 文件

單語 CSV 文件的典型 Weblate 組件配置

文件掩碼

locale/*.csv

單語的基底語言檔

locale/en.csv

新翻譯的模板

locale/en.csv

檔案格式

Simple CSV file