1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-24 15:26:15 +00:00

Add translation preview in editor

This commit is contained in:
Haoyu Qiu
2024-09-13 00:50:09 +08:00
parent 6c9765d87e
commit 8d93b6a54c
15 changed files with 407 additions and 56 deletions

View File

@@ -197,13 +197,6 @@ void Node::_notification(int p_notification) {
data.is_auto_translate_dirty = true;
data.is_translation_domain_dirty = true;
#ifdef TOOLS_ENABLED
// Don't translate UI elements when they're being edited.
if (is_part_of_edited_scene()) {
set_message_translation(false);
}
#endif
if (data.input) {
add_to_group("_vp_input" + itos(get_viewport()->get_instance_id()));
}