mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
64 lines
3.4 KiB
ReStructuredText
64 lines
3.4 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.
|
|
|
|
Member Functions
|
|
----------------
|
|
|
|
+------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
|
|
| 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 |
|
|
+------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
|
|
| 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 |
|
|
+------------------------------+---------------------------------------------------------------------------------------------------------------------------------------+
|
|
|
|
Member Function Description
|
|
---------------------------
|
|
|
|
.. _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_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
|
|
|
|
|