diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-07-30 13:23:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-30 13:23:20 +0200 |
commit | 714fa370b76ea56ff75be5b54b5d82771e1688c3 (patch) | |
tree | 64f3f049d83bcc4a935f70a365728e527f202fb1 /scene/gui/line_edit.cpp | |
parent | 7ab3e8aa20a075b1090314bfae057e0d6307e325 (diff) | |
parent | 94a64d557ed6d275a2e284acb8ea39e06fccdd09 (diff) |
Merge pull request #49149 from YeldhamDev/auto_translate_toggle
Add `auto_translate` toggle for automatic translation
Diffstat (limited to 'scene/gui/line_edit.cpp')
-rw-r--r-- | scene/gui/line_edit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 19ffcfca6d..68e9171c15 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -597,7 +597,7 @@ void LineEdit::_notification(int p_what) { update(); } break; case NOTIFICATION_TRANSLATION_CHANGED: { - placeholder_translated = tr(placeholder); + placeholder_translated = atr(placeholder); _shape(); update(); } break; @@ -1364,7 +1364,7 @@ String LineEdit::get_text() const { void LineEdit::set_placeholder(String p_text) { placeholder = p_text; - placeholder_translated = tr(placeholder); + placeholder_translated = atr(placeholder); _shape(); update(); } |