diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2017-08-18 22:29:15 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2017-08-18 22:38:38 +0200 |
commit | 18a73153812d4f9be82ec30eafdb8961c625c97b (patch) | |
tree | 62a0624429a5000fee51f9ff8279651a4e85a214 /scene/gui/button.cpp | |
parent | b20952ebfff216acc07f6bbcad35b5a1e97a310c (diff) | |
download | redot-engine-18a73153812d4f9be82ec30eafdb8961c625c97b.tar.gz |
Rename localization method to `tr` again
Partial revert of #10380 based on contributor ~~bullying~~ feedback.
Diffstat (limited to 'scene/gui/button.cpp')
-rw-r--r-- | scene/gui/button.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/button.cpp b/scene/gui/button.cpp index e2c9f5ecb4..5036e4f7f6 100644 --- a/scene/gui/button.cpp +++ b/scene/gui/button.cpp @@ -59,7 +59,7 @@ void Button::_notification(int p_what) { if (p_what == NOTIFICATION_TRANSLATION_CHANGED) { - xl_text = localize(text); + xl_text = tr(text); minimum_size_changed(); update(); } @@ -172,7 +172,7 @@ void Button::set_text(const String &p_text) { if (text == p_text) return; text = p_text; - xl_text = localize(p_text); + xl_text = tr(p_text); update(); _change_notify("text"); minimum_size_changed(); |