diff --git a/doc/classes/Control.xml b/doc/classes/Control.xml index b135fda4a06..94a1e5f1e1e 100644 --- a/doc/classes/Control.xml +++ b/doc/classes/Control.xml @@ -1002,7 +1002,7 @@ Anchors the top edge of the node to the origin, the center or the end of its parent control. It changes how the top offset updates when the node moves or changes size. You can use one of the [enum Anchor] constants for convenience. - + Toggles if any text should automatically change to its translated version depending on the current locale. diff --git a/doc/classes/Node.xml b/doc/classes/Node.xml index b7d2939e9c5..9267d0d0c1d 100644 --- a/doc/classes/Node.xml +++ b/doc/classes/Node.xml @@ -239,6 +239,12 @@ This function ensures that the calling of this function will succeed, no matter whether it's being done from a thread or not. If called from a thread that is not allowed to call the function, the call will become deferred. Otherwise, the call will go through directly. + + + + Returns [code]true[/code] if this node can automatically translate messages depending on the current locale. See [member auto_translate_mode], [method atr], and [method atr_n]. + + diff --git a/doc/classes/Window.xml b/doc/classes/Window.xml index 2fb7ea39886..d390e97ba53 100644 --- a/doc/classes/Window.xml +++ b/doc/classes/Window.xml @@ -587,7 +587,7 @@ If [code]true[/code], the window will be on top of all other windows. Does not work if [member transient] is enabled. - + Toggles if any text should automatically change to its translated version depending on the current locale. diff --git a/scene/main/node.cpp b/scene/main/node.cpp index a1b7b8b7f9b..52d0a6fd726 100644 --- a/scene/main/node.cpp +++ b/scene/main/node.cpp @@ -3792,6 +3792,7 @@ void Node::_bind_methods() { ClassDB::bind_method(D_METHOD("set_auto_translate_mode", "mode"), &Node::set_auto_translate_mode); ClassDB::bind_method(D_METHOD("get_auto_translate_mode"), &Node::get_auto_translate_mode); + ClassDB::bind_method(D_METHOD("can_auto_translate"), &Node::can_auto_translate); ClassDB::bind_method(D_METHOD("set_translation_domain_inherited"), &Node::set_translation_domain_inherited); ClassDB::bind_method(D_METHOD("get_window"), &Node::get_window);