123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
- .. DO NOT EDIT THIS FILE, but the Translation.xml source instead.
- .. The source is found in doc/classes or modules/<name>/doc_classes.
- .. _class_Translation:
- Translation
- ===========
- **Inherits:** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
- **Inherited By:** :ref:`PHashTranslation<class_phashtranslation>`
- **Category:** Core
- Brief Description
- -----------------
- Language Translation.
- Member Functions
- ----------------
- +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`add_message<class_Translation_add_message>` **(** :ref:`String<class_string>` src_message, :ref:`String<class_string>` xlated_message **)** |
- +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`erase_message<class_Translation_erase_message>` **(** :ref:`String<class_string>` src_message **)** |
- +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_string>` | :ref:`get_message<class_Translation_get_message>` **(** :ref:`String<class_string>` src_message **)** const |
- +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_message_count<class_Translation_get_message_count>` **(** **)** const |
- +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`PoolStringArray<class_poolstringarray>` | :ref:`get_message_list<class_Translation_get_message_list>` **(** **)** const |
- +------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------+
- Member Variables
- ----------------
- .. _class_Translation_locale:
- - :ref:`String<class_string>` **locale**
- Description
- -----------
- Translations are resources that can be loaded/unloaded on demand. They map a string to another string.
- Member Function Description
- ---------------------------
- .. _class_Translation_add_message:
- - void **add_message** **(** :ref:`String<class_string>` src_message, :ref:`String<class_string>` xlated_message **)**
- Add a message for translation.
- .. _class_Translation_erase_message:
- - void **erase_message** **(** :ref:`String<class_string>` src_message **)**
- Erase a message.
- .. _class_Translation_get_message:
- - :ref:`String<class_string>` **get_message** **(** :ref:`String<class_string>` src_message **)** const
- Return a message for translation.
- .. _class_Translation_get_message_count:
- - :ref:`int<class_int>` **get_message_count** **(** **)** const
- .. _class_Translation_get_message_list:
- - :ref:`PoolStringArray<class_poolstringarray>` **get_message_list** **(** **)** const
- Return all the messages (keys).
|