Add auto_translate toggle for automatic translation
This commit is contained in:
parent
bdcc8741e4
commit
94a64d557e
13 changed files with 92 additions and 23 deletions
|
|
@ -79,7 +79,7 @@ void Button::_notification(int p_what) {
|
|||
update();
|
||||
} break;
|
||||
case NOTIFICATION_TRANSLATION_CHANGED: {
|
||||
xl_text = tr(text);
|
||||
xl_text = atr(text);
|
||||
_shape();
|
||||
|
||||
minimum_size_changed();
|
||||
|
|
@ -355,7 +355,7 @@ void Button::_shape() {
|
|||
void Button::set_text(const String &p_text) {
|
||||
if (text != p_text) {
|
||||
text = p_text;
|
||||
xl_text = tr(text);
|
||||
xl_text = atr(text);
|
||||
_shape();
|
||||
|
||||
update();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue