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:`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

多值 CSV 檔案

Added in version 4.13.

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

範例檔案

範例檔案:

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