From 75d5b1be9a53180bf1c09fde4b3f05418c232ead Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Mon, 19 Nov 2018 02:20:05 -0200 Subject: Fill info for translation related docs --- doc/classes/PHashTranslation.xml | 1 + doc/classes/Translation.xml | 12 ++++++++---- doc/classes/TranslationServer.xml | 12 +++++++++++- 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/doc/classes/PHashTranslation.xml b/doc/classes/PHashTranslation.xml index 18c72a0576..e5745375b0 100644 --- a/doc/classes/PHashTranslation.xml +++ b/doc/classes/PHashTranslation.xml @@ -17,6 +17,7 @@ + Generates and sets an optimized translation from the given [Translation] resource. diff --git a/doc/classes/Translation.xml b/doc/classes/Translation.xml index c4e9dbfb70..b57f8f3556 100644 --- a/doc/classes/Translation.xml +++ b/doc/classes/Translation.xml @@ -7,6 +7,8 @@ Translations are resources that can be loaded/unloaded on demand. They map a string to another string. + https://docs.godotengine.org/en/stable/tutorials/i18n/internationalizing_games.html + https://docs.godotengine.org/en/stable/tutorials/i18n/locales.html @@ -19,7 +21,7 @@ - Add a message for translation. + Adds a message if nonexistent, followed by its translation. @@ -28,7 +30,7 @@ - Erase a message. + Erases a message. @@ -37,25 +39,27 @@ - Return a message for translation. + Returns a message's translation. + Returns the number of existing messages. - Return all the messages (keys). + Returns all the messages (keys). + The locale of the translation. diff --git a/doc/classes/TranslationServer.xml b/doc/classes/TranslationServer.xml index 52d2b2cc47..c2c400ccd5 100644 --- a/doc/classes/TranslationServer.xml +++ b/doc/classes/TranslationServer.xml @@ -1,11 +1,14 @@ - Server that manages all translations. Translations can be set to it and removed from it. + Server that manages all translations. + Server that manages all translations. Translations can be set to it and removed from it. + https://docs.godotengine.org/en/stable/tutorials/i18n/internationalizing_games.html + https://docs.godotengine.org/en/stable/tutorials/i18n/locales.html @@ -16,18 +19,21 @@ + Adds a [Translation] resource. + Clears the server from all translations. + Returns the current locale of the game. @@ -36,6 +42,7 @@ + Returns a locale's language and its variant (e.g. "en_US" would return "English (United States)"). @@ -44,6 +51,7 @@ + Removes the given translation from the server. @@ -52,6 +60,7 @@ + Sets the locale of the game. @@ -60,6 +69,7 @@ + Returns the current locale's translation for the given message (key). -- cgit v1.2.3