diff options
Diffstat (limited to 'tools/editor/editor_run_script.cpp')
-rw-r--r-- | tools/editor/editor_run_script.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/editor/editor_run_script.cpp b/tools/editor/editor_run_script.cpp index 65aaf3d734..d34cac1530 100644 --- a/tools/editor/editor_run_script.cpp +++ b/tools/editor/editor_run_script.cpp @@ -9,12 +9,12 @@ void EditorScript::add_root_node(Node *p_node) { if (!editor) { - EditorNode::add_io_error(TTR("EditorScript::add_root_node : Write your logic in the _run() method.")); + EditorNode::add_io_error("EditorScript::add_root_node: "+TTR("Write your logic in the _run() method.")); return; } if (editor->get_edited_scene()) { - EditorNode::add_io_error(TTR("EditorScript::add_root_node : There is an edited scene already.")); + EditorNode::add_io_error("EditorScript::add_root_node: "+TTR("There is an edited scene already.")); return; } @@ -24,7 +24,7 @@ void EditorScript::add_root_node(Node *p_node) { Node *EditorScript::get_scene() { if (!editor) { - EditorNode::add_io_error(TTR("EditorScript::get_scene : Write your logic in the _run() method.")); + EditorNode::add_io_error("EditorScript::get_scene: "+TTR("Write your logic in the _run() method.")); return NULL; } @@ -36,7 +36,7 @@ void EditorScript::_run() { Ref<Script> s = get_script(); ERR_FAIL_COND(!s.is_valid()); if (!get_script_instance()) { - EditorNode::add_io_error("Couldn't instance script:\n "+s->get_path()+"\nDid you forget the 'tool' keyword?"); + EditorNode::add_io_error(TTR("Couldn't instance script:")+"\n "+s->get_path()+"\n"+TTR("Did you forget the 'tool' keyword?")); return; } @@ -46,7 +46,7 @@ void EditorScript::_run() { get_script_instance()->call("_run",NULL,0,ce); if (ce.error!=Variant::CallError::CALL_OK) { - EditorNode::add_io_error("Couldn't run script:\n "+s->get_path()+"\nDid you forget the '_run' method?"); + EditorNode::add_io_error(TTR("Couldn't run script:")+"\n "+s->get_path()+"\n"+TTR("Did you forget the '_run' method?")); } } |