mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
69 lines
3.8 KiB
ReStructuredText
69 lines
3.8 KiB
ReStructuredText
.. Generated automatically by doc/tools/makerst.py in Godot's source tree.
|
|
.. DO NOT EDIT THIS FILE, but the TranslationServer.xml source instead.
|
|
.. The source is found in doc/classes or modules/<name>/doc_classes.
|
|
|
|
.. _class_TranslationServer:
|
|
|
|
TranslationServer
|
|
=================
|
|
|
|
**Inherits:** :ref:`Object<class_Object>`
|
|
|
|
**Category:** Core
|
|
|
|
Brief Description
|
|
-----------------
|
|
|
|
Server that manages all translations. Translations can be set to it and removed from it.
|
|
|
|
Methods
|
|
-------
|
|
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`add_translation<class_TranslationServer_add_translation>` **(** :ref:`Translation<class_Translation>` translation **)** |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`clear<class_TranslationServer_clear>` **(** **)** |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`String<class_String>` | :ref:`get_locale<class_TranslationServer_get_locale>` **(** **)** const |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`String<class_String>` | :ref:`get_locale_name<class_TranslationServer_get_locale_name>` **(** :ref:`String<class_String>` locale **)** const |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`remove_translation<class_TranslationServer_remove_translation>` **(** :ref:`Translation<class_Translation>` translation **)** |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
|
|
| void | :ref:`set_locale<class_TranslationServer_set_locale>` **(** :ref:`String<class_String>` locale **)** |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
|
|
| :ref:`String<class_String>` | :ref:`translate<class_TranslationServer_translate>` **(** :ref:`String<class_String>` message **)** const |
|
|
+------------------------------+-------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
Method Descriptions
|
|
-------------------
|
|
|
|
.. _class_TranslationServer_add_translation:
|
|
|
|
- void **add_translation** **(** :ref:`Translation<class_Translation>` translation **)**
|
|
|
|
.. _class_TranslationServer_clear:
|
|
|
|
- void **clear** **(** **)**
|
|
|
|
.. _class_TranslationServer_get_locale:
|
|
|
|
- :ref:`String<class_String>` **get_locale** **(** **)** const
|
|
|
|
.. _class_TranslationServer_get_locale_name:
|
|
|
|
- :ref:`String<class_String>` **get_locale_name** **(** :ref:`String<class_String>` locale **)** const
|
|
|
|
.. _class_TranslationServer_remove_translation:
|
|
|
|
- void **remove_translation** **(** :ref:`Translation<class_Translation>` translation **)**
|
|
|
|
.. _class_TranslationServer_set_locale:
|
|
|
|
- void **set_locale** **(** :ref:`String<class_String>` locale **)**
|
|
|
|
.. _class_TranslationServer_translate:
|
|
|
|
- :ref:`String<class_String>` **translate** **(** :ref:`String<class_String>` message **)** const
|
|
|