summaryrefslogtreecommitdiff
path: root/scene/gui/button.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-08-17 22:41:55 +0200
committerGitHub <noreply@github.com>2017-08-17 22:41:55 +0200
commitee59e627ded8c9d0a3d2d33b2d6cc6734a62b04d (patch)
tree7c70f0dad8e79e273d9bcaadd0ff07a0c189b299 /scene/gui/button.cpp
parent33c1d25517050470689924c60414feaf295ce05f (diff)
parentc72529baf09927b381e7850a0f132c1473b16ee2 (diff)
Merge pull request #10380 from akien-mga/XL_MESSAGE
Rename `XL_MESSAGE`/`tr` to `localize`
Diffstat (limited to 'scene/gui/button.cpp')
-rw-r--r--scene/gui/button.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/button.cpp b/scene/gui/button.cpp
index 9a0b3b3c89..e2c9f5ecb4 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 = XL_MESSAGE(text);
+ xl_text = localize(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 = XL_MESSAGE(p_text);
+ xl_text = localize(p_text);
update();
_change_notify("text");
minimum_size_changed();