2021-05-14 04:34:34 +08:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-07-12 23:30:34 +08:00
<class name= "ResourceImporterCSVTranslation" inherits= "ResourceImporter" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../class.xsd" >
2021-05-14 04:34:34 +08:00
<brief_description >
2023-07-13 08:25:33 +08:00
Imports comma-separated values
2021-05-14 04:34:34 +08:00
</brief_description>
<description >
2023-07-13 08:25:33 +08:00
Comma-separated values are a plain text table storage format. The format's simplicity makes it easy to edit in any text editor or spreadsheet software. This makes it a common choice for game localization.
[b]Example CSV file:[/b]
2024-03-09 23:58:44 +08:00
[codeblock lang=text]
2023-07-13 08:25:33 +08:00
keys,en,es,ja
GREET,"Hello, friend!","Hola, amigo!",こんにちは
ASK,How are you?,Cómo está?,元気ですか
BYE,Goodbye,Adiós,さようなら
QUOTE,"""Hello"" said the man.","""Hola"" dijo el hombre.",「こんにちは」男は言いました
[/codeblock]
2021-05-14 04:34:34 +08:00
</description>
<tutorials >
2023-08-15 18:14:01 +08:00
<link title= "Importing translations" > $DOCS_URL/tutorials/assets_pipeline/importing_translations.html</link>
2021-05-14 04:34:34 +08:00
</tutorials>
<members >
<member name= "compress" type= "bool" setter= "" getter= "" default= "true" >
2023-07-13 08:25:33 +08:00
If [code]true[/code], creates an [OptimizedTranslation] instead of a [Translation]. This makes the resulting file smaller at the cost of a small CPU overhead.
2021-05-14 04:34:34 +08:00
</member>
<member name= "delimiter" type= "int" setter= "" getter= "" default= "0" >
2023-07-13 08:25:33 +08:00
The delimiter to use in the CSV file. The default value matches the common CSV convention. Tab-separated values are sometimes called TSV files.
2021-05-14 04:34:34 +08:00
</member>
</members>
</class>