diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-08-17 22:41:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-17 22:41:55 +0200 |
commit | ee59e627ded8c9d0a3d2d33b2d6cc6734a62b04d (patch) | |
tree | 7c70f0dad8e79e273d9bcaadd0ff07a0c189b299 /scene/gui/label.cpp | |
parent | 33c1d25517050470689924c60414feaf295ce05f (diff) | |
parent | c72529baf09927b381e7850a0f132c1473b16ee2 (diff) |
Merge pull request #10380 from akien-mga/XL_MESSAGE
Rename `XL_MESSAGE`/`tr` to `localize`
Diffstat (limited to 'scene/gui/label.cpp')
-rw-r--r-- | scene/gui/label.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/gui/label.cpp b/scene/gui/label.cpp index 874156821e..758aafd115 100644 --- a/scene/gui/label.cpp +++ b/scene/gui/label.cpp @@ -63,7 +63,7 @@ void Label::_notification(int p_what) { if (p_what == NOTIFICATION_TRANSLATION_CHANGED) { - String new_text = XL_MESSAGE(text); + String new_text = localize(text); if (new_text == xl_text) return; //nothing new xl_text = new_text; @@ -526,7 +526,7 @@ void Label::set_text(const String &p_string) { if (text == p_string) return; text = p_string; - xl_text = XL_MESSAGE(p_string); + xl_text = localize(p_string); word_cache_dirty = true; if (percent_visible < 1) visible_chars = get_total_character_count() * percent_visible; |