Rename XL_MESSAGE aka tr to localize

Also renames `set_message_translation` to `set_message_localization`
for consistency.
This commit is contained in:
Rémi Verschelde
2017-08-16 17:59:04 +02:00
parent 5485233549
commit c72529baf0
10 changed files with 34 additions and 50 deletions

View File

@@ -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;