Browse Source

i18n: Fix malformed TTR call

Rémi Verschelde 9 years ago
parent
commit
519086af60
1 changed files with 2 additions and 2 deletions
  1. 2 2
      tools/editor/editor_node.cpp

+ 2 - 2
tools/editor/editor_node.cpp

@@ -1867,7 +1867,7 @@ void EditorNode::_run(bool p_current,const String& p_custom) {
 
 			current_option=-1;
 			//accept->get_cancel()->hide();
-			pick_main_scene->set_text(TTR("Selected scene '"+run_filename+"' does not exist, select a valid one?\nYou can change it later in \"Project Settings\" under the 'application' category."));
+			pick_main_scene->set_text(vformat(TTR("Selected scene '%s' does not exist, select a valid one?\nYou can change it later in \"Project Settings\" under the 'application' category."), run_filename));
 			pick_main_scene->popup_centered_minsize();
 			return;
 
@@ -1877,7 +1877,7 @@ void EditorNode::_run(bool p_current,const String& p_custom) {
 
 			current_option=-1;
 			//accept->get_cancel()->hide();
-			pick_main_scene->set_text(TTR("Selected scene '"+run_filename+"' is not a scene file, select a valid one?\nYou can change it later in \"Project Settings\" under the 'application' category."));
+			pick_main_scene->set_text(vformat(TTR("Selected scene '%s' is not a scene file, select a valid one?\nYou can change it later in \"Project Settings\" under the 'application' category."), run_filename));
 			pick_main_scene->popup_centered_minsize();
 			return;