summaryrefslogtreecommitdiffstats
path: root/editor/editor_node.cpp
diff options
context:
space:
mode:
authorLalit Shankar Chowdhury <lalitshankarch@gmail.com>2024-09-25 22:42:15 +0530
committerLalit Shankar Chowdhury <lalitshankarch@gmail.com>2024-10-01 22:22:12 +0530
commitb9ce6c90471239c9f0de43147ce3a35e98212c5c (patch)
tree33a81aace465f93ad04bdf879021e96d036e6594 /editor/editor_node.cpp
parent24b4607309ce734d3647c9f26cb1dacd3c36c265 (diff)
downloadredot-engine-b9ce6c90471239c9f0de43147ce3a35e98212c5c.tar.gz
Improve "Replace in Files" dialog button text
Diffstat (limited to 'editor/editor_node.cpp')
-rw-r--r--editor/editor_node.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/editor/editor_node.cpp b/editor/editor_node.cpp
index 3bae9ae984..0fb3eeb3ce 100644
--- a/editor/editor_node.cpp
+++ b/editor/editor_node.cpp
@@ -7697,24 +7697,28 @@ EditorNode::EditorNode() {
disk_changed = memnew(ConfirmationDialog);
{
- disk_changed->set_title(TTR("Files have been modified on disk"));
+ disk_changed->set_title(TTR("Files have been modified outside Godot"));
VBoxContainer *vbc = memnew(VBoxContainer);
disk_changed->add_child(vbc);
Label *dl = memnew(Label);
- dl->set_text(TTR("The following files are newer on disk.\nWhat action should be taken?"));
+ dl->set_text(TTR("The following files are newer on disk:"));
vbc->add_child(dl);
disk_changed_list = memnew(Tree);
vbc->add_child(disk_changed_list);
disk_changed_list->set_v_size_flags(Control::SIZE_EXPAND_FILL);
+ Label *what_action_label = memnew(Label);
+ what_action_label->set_text(TTR("What action should be taken?"));
+ vbc->add_child(what_action_label);
+
disk_changed->connect(SceneStringName(confirmed), callable_mp(this, &EditorNode::_reload_modified_scenes));
disk_changed->connect(SceneStringName(confirmed), callable_mp(this, &EditorNode::_reload_project_settings));
- disk_changed->set_ok_button_text(TTR("Discard local changes and reload"));
+ disk_changed->set_ok_button_text(TTR("Reload from disk"));
- disk_changed->add_button(TTR("Keep local changes and overwrite"), !DisplayServer::get_singleton()->get_swap_cancel_ok(), "resave");
+ disk_changed->add_button(TTR("Ignore external changes"), !DisplayServer::get_singleton()->get_swap_cancel_ok(), "resave");
disk_changed->connect("custom_action", callable_mp(this, &EditorNode::_resave_scenes));
}