Rename localization method to tr again

Partial revert of #10380 based on contributor ~~bullying~~ feedback.
This commit is contained in:
Rémi Verschelde
2017-08-18 22:29:15 +02:00
parent b20952ebff
commit 18a7315381
10 changed files with 35 additions and 35 deletions

View File

@@ -59,7 +59,7 @@ void Button::_notification(int p_what) {
if (p_what == NOTIFICATION_TRANSLATION_CHANGED) {
xl_text = localize(text);
xl_text = tr(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 = localize(p_text);
xl_text = tr(p_text);
update();
_change_notify("text");
minimum_size_changed();