Add auto_translate toggle for automatic translation

This commit is contained in:
Michael Alexsander 2021-05-27 14:31:33 -03:00
parent bdcc8741e4
commit 94a64d557e
13 changed files with 92 additions and 23 deletions

View file

@ -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();