class_resourceimportercsvtranslation.rst 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/ResourceImporterCSVTranslation.xml.
  6. .. _class_ResourceImporterCSVTranslation:
  7. ResourceImporterCSVTranslation
  8. ==============================
  9. **Inherits:** :ref:`ResourceImporter<class_ResourceImporter>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. Imports comma-separated values
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. 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.
  15. \ **Example CSV file:**\
  16. .. code:: text
  17. keys,en,es,ja
  18. GREET,"Hello, friend!","Hola, amigo!",こんにちは
  19. ASK,How are you?,Cómo está?,元気ですか
  20. BYE,Goodbye,Adiós,さようなら
  21. QUOTE,"""Hello"" said the man.","""Hola"" dijo el hombre.",「こんにちは」男は言いました
  22. .. rst-class:: classref-introduction-group
  23. Tutorials
  24. ---------
  25. - :doc:`Importing translations <../tutorials/assets_pipeline/importing_translations>`
  26. .. rst-class:: classref-reftable-group
  27. Properties
  28. ----------
  29. .. table::
  30. :widths: auto
  31. +-------------------------+---------------------------------------------------------------------------+----------+
  32. | :ref:`bool<class_bool>` | :ref:`compress<class_ResourceImporterCSVTranslation_property_compress>` | ``true`` |
  33. +-------------------------+---------------------------------------------------------------------------+----------+
  34. | :ref:`int<class_int>` | :ref:`delimiter<class_ResourceImporterCSVTranslation_property_delimiter>` | ``0`` |
  35. +-------------------------+---------------------------------------------------------------------------+----------+
  36. .. rst-class:: classref-section-separator
  37. ----
  38. .. rst-class:: classref-descriptions-group
  39. Property Descriptions
  40. ---------------------
  41. .. _class_ResourceImporterCSVTranslation_property_compress:
  42. .. rst-class:: classref-property
  43. :ref:`bool<class_bool>` **compress** = ``true`` :ref:`🔗<class_ResourceImporterCSVTranslation_property_compress>`
  44. If ``true``, creates an :ref:`OptimizedTranslation<class_OptimizedTranslation>` instead of a :ref:`Translation<class_Translation>`. This makes the resulting file smaller at the cost of a small CPU overhead.
  45. .. rst-class:: classref-item-separator
  46. ----
  47. .. _class_ResourceImporterCSVTranslation_property_delimiter:
  48. .. rst-class:: classref-property
  49. :ref:`int<class_int>` **delimiter** = ``0`` :ref:`🔗<class_ResourceImporterCSVTranslation_property_delimiter>`
  50. The delimiter to use in the CSV file. The default value matches the common CSV convention. Tab-separated values are sometimes called TSV files.
  51. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  52. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  53. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  54. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  55. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  56. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  57. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  58. .. |void| replace:: :abbr:`void (No return value.)`