diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-08-18 22:29:15 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2017-08-18 22:38:38 +0200 |
commit | 18a73153812d4f9be82ec30eafdb8961c625c97b (patch) | |
tree | 62a0624429a5000fee51f9ff8279651a4e85a214 /doc/base | |
parent | b20952ebfff216acc07f6bbcad35b5a1e97a310c (diff) |
Rename localization method to `tr` again
Partial revert of #10380 based on contributor ~~bullying~~ feedback.
Diffstat (limited to 'doc/base')
-rw-r--r-- | doc/base/classes.xml | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 418739aa3d..f21fa2c7c0 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -28259,15 +28259,6 @@ <description> </description> </method> - <method name="localize" qualifiers="const"> - <return type="String"> - </return> - <argument index="0" name="message" type="String"> - </argument> - <description> - Localize (translate) a message. Only works if message localization is enabled (which it is by default). See [method set_message_localization]. - </description> - </method> <method name="notification"> <argument index="0" name="what" type="int"> </argument> @@ -28297,11 +28288,11 @@ If set to true, signal emission is blocked. </description> </method> - <method name="set_message_localization"> + <method name="set_message_translation"> <argument index="0" name="enable" type="bool"> </argument> <description> - Define whether this object can localize strings (with calls to [code]localize[/code]). Default is true. + Define whether this object can translate strings (with calls to [method tr]). Default is true. </description> </method> <method name="set_meta"> @@ -28320,6 +28311,15 @@ Set a script into the object, scripts extend the object functionality. </description> </method> + <method name="tr" qualifiers="const"> + <return type="String"> + </return> + <argument index="0" name="message" type="String"> + </argument> + <description> + Translate a message. Only works if message translation is enabled (which it is by default). See [method set_message_translation]. + </description> + </method> </methods> <signals> <signal name="script_changed"> |