summaryrefslogtreecommitdiff
path: root/editor/plugins/script_editor_plugin.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-12-21 14:41:18 +0100
committerGitHub <noreply@github.com>2019-12-21 14:41:18 +0100
commit78f1513928bd5a683f0a0b40d4a4fec42fb1d4f3 (patch)
tree7e1818e14fc96569d969437cf1e3cbfa35f12479 /editor/plugins/script_editor_plugin.cpp
parent0b776ebbe4105c5ef3b1c6314157f76be58227b7 (diff)
parent0693718164bcb5875af9211713bfa7c4cce86d58 (diff)
Merge pull request #34508 from timothyqiu/i18n
Makes more editor strings translatable
Diffstat (limited to 'editor/plugins/script_editor_plugin.cpp')
-rw-r--r--editor/plugins/script_editor_plugin.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/editor/plugins/script_editor_plugin.cpp b/editor/plugins/script_editor_plugin.cpp
index 3d814878a3..9e6201db2b 100644
--- a/editor/plugins/script_editor_plugin.cpp
+++ b/editor/plugins/script_editor_plugin.cpp
@@ -1225,7 +1225,7 @@ void ScriptEditor::_menu_option(int p_option) {
Ref<Script> scr = current->get_edited_resource();
if (scr == NULL || scr.is_null()) {
- EditorNode::get_singleton()->show_warning("Can't obtain the script for running.");
+ EditorNode::get_singleton()->show_warning(TTR("Can't obtain the script for running."));
break;
}
@@ -1233,18 +1233,18 @@ void ScriptEditor::_menu_option(int p_option) {
Error err = scr->reload(false); //hard reload script before running always
if (err != OK) {
- EditorNode::get_singleton()->show_warning("Script failed reloading, check console for errors.");
+ EditorNode::get_singleton()->show_warning(TTR("Script failed reloading, check console for errors."));
return;
}
if (!scr->is_tool()) {
- EditorNode::get_singleton()->show_warning("Script is not in tool mode, will not be able to run.");
+ EditorNode::get_singleton()->show_warning(TTR("Script is not in tool mode, will not be able to run."));
return;
}
if (!ClassDB::is_parent_class(scr->get_instance_base_type(), "EditorScript")) {
- EditorNode::get_singleton()->show_warning("To run this script, it must inherit EditorScript and be set to tool mode.");
+ EditorNode::get_singleton()->show_warning(TTR("To run this script, it must inherit EditorScript and be set to tool mode."));
return;
}