Skip to content

Commit 0537277

Browse files
authored
Merge pull request godotengine#89599 from timothyqiu/vegetate
Fix unexpected auto translation of editor `Tree` content
2 parents 9a8fb26 + 8cd1ebb commit 0537277

37 files changed

+54
-0
lines changed

editor/animation_track_editor.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7569,6 +7569,7 @@ AnimationTrackEditor::AnimationTrackEditor() {
75697569
track_copy_vbox->add_child(select_all_button);
75707570

75717571
track_copy_select = memnew(Tree);
7572+
track_copy_select->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
75727573
track_copy_select->set_h_size_flags(SIZE_EXPAND_FILL);
75737574
track_copy_select->set_v_size_flags(SIZE_EXPAND_FILL);
75747575
track_copy_select->set_hide_root(true);

editor/connections_dialog.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -751,6 +751,7 @@ ConnectDialog::ConnectDialog() {
751751

752752
method_tree = memnew(Tree);
753753
method_vbc->add_child(method_tree);
754+
method_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
754755
method_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL);
755756
method_tree->set_hide_root(true);
756757
method_tree->connect("item_selected", callable_mp(this, &ConnectDialog::_method_selected));

editor/create_dialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,7 @@ CreateDialog::CreateDialog() {
779779
vsc->add_child(fav_vb);
780780

781781
favorites = memnew(Tree);
782+
favorites->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
782783
favorites->set_hide_root(true);
783784
favorites->set_hide_folding(true);
784785
favorites->set_allow_reselect(true);
@@ -823,6 +824,7 @@ CreateDialog::CreateDialog() {
823824
vbc->add_margin_child(TTR("Search:"), search_hb);
824825

825826
search_options = memnew(Tree);
827+
search_options->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
826828
search_options->connect("item_activated", callable_mp(this, &CreateDialog::_confirmed));
827829
search_options->connect("cell_selected", callable_mp(this, &CreateDialog::_item_selected));
828830
vbc->add_margin_child(TTR("Matches:"), search_options, true);

editor/debugger/editor_profiler.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,6 +670,7 @@ EditorProfiler::EditorProfiler() {
670670
h_split->set_v_size_flags(SIZE_EXPAND_FILL);
671671

672672
variables = memnew(Tree);
673+
variables->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
673674
variables->set_custom_minimum_size(Size2(320, 0) * EDSCALE);
674675
variables->set_hide_folding(true);
675676
h_split->add_child(variables);

editor/dependency_editor.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ DependencyEditor::DependencyEditor() {
246246
add_child(vb);
247247

248248
tree = memnew(Tree);
249+
tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
249250
tree->set_columns(2);
250251
tree->set_column_titles_visible(true);
251252
tree->set_column_title(0, TTR("Resource"));
@@ -672,6 +673,7 @@ DependencyRemoveDialog::DependencyRemoveDialog() {
672673
vb->add_child(text);
673674

674675
owners = memnew(Tree);
676+
owners->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
675677
owners->set_hide_root(true);
676678
vb->add_child(owners);
677679
owners->set_v_size_flags(Control::SIZE_EXPAND_FILL);
@@ -724,6 +726,7 @@ DependencyErrorDialog::DependencyErrorDialog() {
724726
add_child(vb);
725727

726728
files = memnew(Tree);
729+
files->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
727730
files->set_hide_root(true);
728731
vb->add_margin_child(TTR("Load failed due to missing dependencies:"), files, true);
729732
files->set_v_size_flags(Control::SIZE_EXPAND_FILL);
@@ -879,6 +882,7 @@ OrphanResourcesDialog::OrphanResourcesDialog() {
879882
add_child(vbc);
880883

881884
files = memnew(Tree);
885+
files->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
882886
files->set_columns(2);
883887
files->set_column_titles_visible(true);
884888
files->set_column_custom_minimum_width(1, 100 * EDSCALE);

editor/editor_about.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,7 @@ EditorAbout::EditorAbout() {
304304
license_thirdparty->add_child(tpl_hbc);
305305

306306
_tpl_tree = memnew(Tree);
307+
_tpl_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
307308
_tpl_tree->set_hide_root(true);
308309
TreeItem *root = _tpl_tree->create_item();
309310
TreeItem *tpl_ti_all = _tpl_tree->create_item(root);

editor/editor_asset_installer.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,7 @@ EditorAssetInstaller::EditorAssetInstaller() {
735735
source_tree_vb->add_child(source_tree_label);
736736

737737
source_tree = memnew(Tree);
738+
source_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
738739
source_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL);
739740
source_tree->connect("item_edited", callable_mp(this, &EditorAssetInstaller::_item_checked_cbk));
740741
source_tree_vb->add_child(source_tree);
@@ -749,6 +750,7 @@ EditorAssetInstaller::EditorAssetInstaller() {
749750
destination_tree_vb->add_child(destination_tree_label);
750751

751752
destination_tree = memnew(Tree);
753+
destination_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
752754
destination_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL);
753755
destination_tree->connect("item_edited", callable_mp(this, &EditorAssetInstaller::_item_checked_cbk));
754756
destination_tree_vb->add_child(destination_tree);

editor/editor_build_profile.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,7 @@ EditorBuildProfileManager::EditorBuildProfileManager() {
854854
main_vbc->add_margin_child(TTR("Actions:"), profiles_hbc);
855855

856856
class_list = memnew(Tree);
857+
class_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
857858
class_list->set_hide_root(true);
858859
class_list->set_edit_checkbox_cell_only_when_checkbox_is_pressed(true);
859860
class_list->connect("cell_selected", callable_mp(this, &EditorBuildProfileManager::_class_list_item_selected));

editor/editor_feature_profile.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,7 @@ EditorFeatureProfileManager::EditorFeatureProfileManager() {
976976
class_list_vbc->set_h_size_flags(Control::SIZE_EXPAND_FILL);
977977

978978
class_list = memnew(Tree);
979+
class_list->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
979980
class_list_vbc->add_margin_child(TTR("Configure Selected Profile:"), class_list, true);
980981
class_list->set_hide_root(true);
981982
class_list->set_edit_checkbox_cell_only_when_checkbox_is_pressed(true);

editor/editor_help_search.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ EditorHelpSearch::EditorHelpSearch() {
356356

357357
// Create the results tree.
358358
results_tree = memnew(Tree);
359+
results_tree->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
359360
results_tree->set_v_size_flags(Control::SIZE_EXPAND_FILL);
360361
results_tree->set_columns(2);
361362
results_tree->set_column_title(0, TTR("Name"));

0 commit comments

Comments
 (0)