Topic was automatically imported from the old Question2Answer platform.
Asked By
Calinou
Old Version
Published before Godot 3 was released.
I know I can set a button’s text to a translation key, and it gets automatically translated this way. But what if I set the text by code using GDScript?
For this to work, your translation text will have to contain a text that matches the %1. Note that %1 is just an example, you could use anything instead, it should probably be unique in each string though.