From c72529baf09927b381e7850a0f132c1473b16ee2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 16 Aug 2017 17:59:04 +0200 Subject: Rename `XL_MESSAGE` aka `tr` to `localize` Also renames `set_message_translation` to `set_message_localization` for consistency. --- scene/gui/button.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scene/gui/button.cpp') 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(); -- cgit v1.2.3