Repository: godotengine/godot
File: editor/file_system/dependency_editor.cpp (C++)

Code before:
		empty->hide();
		owners_count->set_text(vformat(TTR("Owners of: %s (Total: %d)"), p_path.get_file(), count));
		owners_count->show();
		owners_mc->show();
	} else {
		owners_count->hide();
		owners_mc->hide();
		empty->show();
	}
}

DependencyEditorOwners::DependencyEditorOwners() {
	file_options = memnew(PopupMenu);
	add_child(file_options);
	file_options->connect(SceneStringName(id_pressed), callable_mp(this, &DependencyEditorOwners::_file_option));

	VBoxContainer *vbox = memnew(VBoxContainer);
	add_child(vbox);

	owners_count = memnew(Label);
	vbox->add_child(owners_count);

	empty = memnew(Label(TTRC("No owners found.")));
	empty->set_horizontal_alignment(HORIZONTAL_ALIGNMENT_CENTER);
	empty->set_vertical_alignment(VERTICAL_ALIGNMENT_CENTER);
	empty->set_v_size_flags(Control::SIZE_EXPAND_FILL);
	empty->hide();
	vbox->add_child(empty);

	owners_mc = memnew(MarginContainer);
	owners_mc->set_v_size_flags(Control::SIZE_EXPAND_FILL);
	owners_mc->set_theme_type_variation("NoBorderHorizontalWindow");
	vbox->add_child(owners_mc);

	owners = memnew(ItemList);
	owners->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
	owners->set_select_mode(ItemList::SELECT_MULTI);
	owners->set_scroll_hint_mode(ItemList::SCROLL_HINT_MODE_BOTH);
	owners->connect("item_clicked", callable_mp(this, &DependencyEditorOwners::_list_rmb_clicked));
	owners->connect("item_activated", callable_mp(this, &DependencyEditorOwners::_select_file));
	owners->connect("empty_clicked", callable_mp(this, &DependencyEditorOwners::_empty_clicked));
	owners->set_allow_rmb_select(true);
	owners_mc->add_child(owners);

	set_title(TTRC("Owners List"));
}

///////////////////////

void DependencyRemoveDialog::_find_files_in_removed_folder(EditorFileSystemDirectory *efsd, const String &p_folder) {
	if (!efsd) {

Review comment (suggestion):
```suggestion
	owners_count = memnew(Label);
	owners_count->set_auto_translate_node(AUTO_TRANSLATE_DISABLED);
	vbox->add_child(owners_count);
```

Code after:
		owners_count->set_text(vformat(TTR("Owners of: %s (Total: %d)"), p_path.get_file(), count));
		owners_count->show();
		owners_mc->show();
	} else {
		owners_count->hide();
		owners_mc->hide();
		empty->set_text(vformat(TTR("No owners found for: %s"), p_path.get_file()));
		empty->show();
	}

	popup_centered_ratio(0.3);
}

DependencyEditorOwners::DependencyEditorOwners() {
	file_options = memnew(PopupMenu);
	add_child(file_options);
	file_options->connect(SceneStringName(id_pressed), callable_mp(this, &DependencyEditorOwners::_file_option));

	VBoxContainer *vbox = memnew(VBoxContainer);
	add_child(vbox);

	owners_count = memnew(Label);
	owners_count->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
	owners_count->set_autowrap_mode(TextServer::AUTOWRAP_WORD_SMART);
	owners_count->set_custom_minimum_size(Size2(200 * EDSCALE, 0));
	vbox->add_child(owners_count);

	empty = memnew(Label);
	empty->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
	empty->set_horizontal_alignment(HORIZONTAL_ALIGNMENT_CENTER);
	empty->set_vertical_alignment(VERTICAL_ALIGNMENT_CENTER);
	empty->set_autowrap_mode(TextServer::AUTOWRAP_WORD_SMART);
	empty->set_custom_minimum_size(Size2(200 * EDSCALE, 0));
	empty->set_v_size_flags(Control::SIZE_EXPAND_FILL);
	empty->hide();
	vbox->add_child(empty);

	owners_mc = memnew(MarginContainer);
	owners_mc->set_v_size_flags(Control::SIZE_EXPAND_FILL);
	owners_mc->set_theme_type_variation("NoBorderHorizontalWindow");
	vbox->add_child(owners_mc);

	owners = memnew(ItemList);
	owners->set_auto_translate_mode(AUTO_TRANSLATE_MODE_DISABLED);
	owners->set_select_mode(ItemList::SELECT_MULTI);
	owners->set_scroll_hint_mode(ItemList::SCROLL_HINT_MODE_BOTH);
	owners->connect("item_clicked", callable_mp(this, &DependencyEditorOwners::_list_rmb_clicked));
	owners->connect("item_activated", callable_mp(this, &DependencyEditorOwners::_select_file));
	owners->connect("empty_clicked", callable_mp(this, &DependencyEditorOwners::_empty_clicked));
	owners->set_allow_rmb_select(true);
	owners_mc->add_child(owners);