mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Turn off auto translate for some editor controls
* Scene tab
* Animation name list in Animation panel
* Feature profile name list in Editor Feature Profile dialog
* Layout names in editor layout menu
* Subresource list in Inspector dock
* Resource type shown in EditorResourcePicker
* Enum dropdowns in inspectors: We'll eventually allow auto translating
these after implementing a way to opt-out auto translation on a
property-by-property basis and a way to extract enumerators.
(cherry picked from commit 26553be424)
This commit is contained in:
@@ -233,6 +233,7 @@ EditorPath::EditorPath(EditorSelectionHistory *p_history) {
|
||||
current_object_label = memnew(Label);
|
||||
current_object_label->set_text_overrun_behavior(TextServer::OVERRUN_TRIM_ELLIPSIS);
|
||||
current_object_label->set_h_size_flags(SIZE_EXPAND_FILL);
|
||||
current_object_label->set_auto_translate(false);
|
||||
main_hb->add_child(current_object_label);
|
||||
|
||||
sub_objects_icon = memnew(TextureRect);
|
||||
@@ -241,6 +242,7 @@ EditorPath::EditorPath(EditorSelectionHistory *p_history) {
|
||||
main_hb->add_child(sub_objects_icon);
|
||||
|
||||
sub_objects_menu = memnew(PopupMenu);
|
||||
sub_objects_menu->set_auto_translate(false);
|
||||
add_child(sub_objects_menu);
|
||||
sub_objects_menu->connect("about_to_popup", callable_mp(this, &EditorPath::_about_to_show));
|
||||
sub_objects_menu->connect("id_pressed", callable_mp(this, &EditorPath::_id_pressed));
|
||||
|
||||
Reference in New Issue
Block a user