diff options
| author | Rémi Verschelde | 2017-08-18 22:29:15 +0200 |
|---|---|---|
| committer | Rémi Verschelde | 2017-08-18 22:38:38 +0200 |
| commit | 18a73153812d4f9be82ec30eafdb8961c625c97b (patch) | |
| tree | 62a0624429a5000fee51f9ff8279651a4e85a214 /scene/gui/label.cpp | |
| parent | b20952ebfff216acc07f6bbcad35b5a1e97a310c (diff) | |
| download | godot-18a73153812d4f9be82ec30eafdb8961c625c97b.tar.gz godot-18a73153812d4f9be82ec30eafdb8961c625c97b.tar.zst godot-18a73153812d4f9be82ec30eafdb8961c625c97b.zip | |
Rename localization method to `tr` again
Partial revert of #10380 based on contributor ~~bullying~~ feedback.
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 758aafd11..b2afca876 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 = localize(text); + String new_text = tr(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 = localize(p_string); + xl_text = tr(p_string); word_cache_dirty = true; if (percent_visible < 1) visible_chars = get_total_character_count() * percent_visible; |
