mirror of
https://github.com/godotengine/godot.git
synced 2026-01-05 06:11:29 +03:00
Rename localization method to tr again
Partial revert of #10380 based on contributor ~~bullying~~ feedback.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user