Move tr
and tr_n
to @GlobalScope
#4454
Replies: 3 comments
-
Is there any reason why variant utility functions don't support default values? I wanted to implement this suggestion, but didn't find the right macro in |
Beta Was this translation helpful? Give feedback.
-
Sorry for the bumping, but I'd like some kind of answer. Yes, you can can easily workaround the restriction on using |
Beta Was this translation helpful? Give feedback.
-
This cannot be done in 4.x due to backwards compatibility. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
godotengine/godot#49149 added the
auto_translate
property to theControl
andWindow
classes. Now I thinkset_message_translation
has no use cases left (correct me if I'm wrong).I propose:
tr
andtr_n
to@GlobalScope
.can_translate_messages
andset_message_translation
.Arguments:
tr
andtr_n
can be used in static functions;tr
andtr_n
will work the same anywhere.Beta Was this translation helpful? Give feedback.
All reactions