mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Rename XL_MESSAGE aka tr to localize
Also renames `set_message_translation` to `set_message_localization` for consistency.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user