summaryrefslogtreecommitdiffstats
path: root/scene/gui/button.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-08-16 17:59:04 +0200
committerRémi Verschelde <rverschelde@gmail.com>2017-08-17 18:10:22 +0200
commitc72529baf09927b381e7850a0f132c1473b16ee2 (patch)
treeda64b9684d3db8cce6b50a20a50da2e1d99230bc /scene/gui/button.cpp
parent5485233549c97c7128fc2026bc2c01d3c1c5b48d (diff)
downloadredot-engine-c72529baf09927b381e7850a0f132c1473b16ee2.tar.gz
Rename `XL_MESSAGE` aka `tr` to `localize`
Also renames `set_message_translation` to `set_message_localization` for consistency.
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();