summaryrefslogtreecommitdiff
path: root/tools/editor/editor_run_script.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2016-05-21 11:34:19 +0200
committerRémi Verschelde <remi@verschelde.fr>2016-05-21 11:34:19 +0200
commit436debb0450baffc44956523b8277ecf1a477b7a (patch)
tree7da06093df103b151358db1f4b1395aeef67df15 /tools/editor/editor_run_script.cpp
parent2b29e7ba6ff20f81dc512c14fbb0153d1ef6a201 (diff)
parent00d8f8604476b525869787f0962bf41b4b591061 (diff)
Merge pull request #4733 from akien-mga/pr-i18n-proofreading
i18n: Proofreading of all strings
Diffstat (limited to 'tools/editor/editor_run_script.cpp')
-rw-r--r--tools/editor/editor_run_script.cpp10
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?"));
}
}