File CSV¶
CSV files can contain a simple list of source and translation. Weblate supports the following files:
Files with header defining fields (
location,source,target,ID,fuzzy,context,translator_comments,developer_comments). This is the recommended approach, as it is the least error prone. Choose CSV file as a file format.Files with two fields—source and translation (in this order). Choose Simple CSV file as a file format.
Headerless files with fields in order defined by the translate-toolkit:
location,source,target,ID,fuzzy,context,translator_comments,developer_comments. Choose CSV file as a file format.Remember to define File di lingua a base monolingue when your files are monolingual (see Bilingual and monolingual formats).
Suggerimento
By default, the CSV format does autodetection of file encoding. This can be unreliable in some corner cases and causes performance penalty. Please choose a file format encoding to avoid this (for example UTF-8).
Avvertimento
The CSV format currently automatically detects the dialect of the CSV file. In some cases the automatic detection might fail and you will get mixed results. This is especially true for CSV files with newlines in the values. As a workaround it is recommended to omit quoting characters.
Vedi anche
File CSV multivalore¶
Added in version 4.13.
This variant of the CSV files allows storing multiple translations per string.
See Multivalue formats for how alternatives are handled by quality checks, automatic fixes, and machine translation.
File di esempio¶
Example file:
Thank you for using Weblate.,Děkujeme za použití Weblate.
Estensioni dei file |
|
|---|---|
Linguality ⓘ |
Both monolingual and bilingual |
Supports plural ⓘ |
|
Supports descriptions ⓘ |
|
Supports explanation ⓘ |
|
Supports context ⓘ |
|
Supports location ⓘ |
|
Supports flags ⓘ |
|
Additional states ⓘ |
|
API identifier |
|
Supports read-only strings ⓘ |
|
Supports removing obsolete strings ⓘ |
|
Configurazione Weblate¶
Typical Weblate Component configuration for bilingual CSV |
|
|---|---|
Maschera del file |
|
File di lingua a base monolingue |
Empty |
Modello per le nuove traduzioni |
|
Formato file |
CSV file |
Typical Weblate Component configuration for monolingual CSV |
|
|---|---|
Maschera del file |
|
File di lingua a base monolingue |
|
Modello per le nuove traduzioni |
|
Formato file |
Simple CSV file |