From 06e73522dccdd683194bc439a6698ae93b4bbac6 Mon Sep 17 00:00:00 2001 From: Yuri Chornoivan Date: Tue, 28 Aug 2018 21:15:04 +0300 Subject: [PATCH] Fix vformat(), minor typos and word puzzles --- editor/connections_dialog.cpp | 4 ++-- editor/plugins/script_editor_plugin.cpp | 2 +- editor/plugins/tile_set_editor_plugin.cpp | 2 +- editor/rename_dialog.cpp | 8 ++++---- modules/visual_script/visual_script_property_selector.cpp | 4 ++-- scene/3d/soft_body.cpp | 2 +- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/editor/connections_dialog.cpp b/editor/connections_dialog.cpp index da73a3930ab..85965768cc1 100644 --- a/editor/connections_dialog.cpp +++ b/editor/connections_dialog.cpp @@ -650,8 +650,8 @@ void ConnectionsDock::_handle_signal_menu_option(int option) { _open_connection_dialog(*item); } break; case DISCONNECT_ALL: { - StringName signalName = item->get_metadata(0).operator Dictionary()["name"]; - disconnect_all_dialog->set_text(TTR("Are you sure you want to remove all connections from the \"") + signalName + "\" signal?"); + StringName signal_name = item->get_metadata(0).operator Dictionary()["name"]; + disconnect_all_dialog->set_text(vformat(TTR("Are you sure you want to remove all connections from the \"%s\" signal?"), signal_name)); disconnect_all_dialog->popup_centered(); } break; } diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp index fa034c97c08..70f1789a86c 100644 --- a/editor/plugins/script_editor_plugin.cpp +++ b/editor/plugins/script_editor_plugin.cpp @@ -862,7 +862,7 @@ void ScriptEditor::_file_dialog_action(String p_file) { if (extensions.find(p_file.get_extension())) { Ref