You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Reworked translation system
-Label and Button reload translation on the fly -Resources are loaded and reload depending on locale
This commit is contained in:
@@ -65,7 +65,12 @@ void Label::_notification(int p_what) {
|
||||
|
||||
if (p_what == NOTIFICATION_TRANSLATION_CHANGED) {
|
||||
|
||||
xl_text = XL_MESSAGE(text);
|
||||
String new_text = XL_MESSAGE(text);
|
||||
if (new_text == xl_text)
|
||||
return; //nothing new
|
||||
xl_text = new_text;
|
||||
|
||||
regenerate_word_cache();
|
||||
minimum_size_changed();
|
||||
update();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user