summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_text_editor.cpp
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-12-30 17:28:11 +0100
committerGitHub <noreply@github.com>2019-12-30 17:28:11 +0100
commite37ad996a19396542009b058d00f30a909489834 (patch)
tree80d4f78c45881ac1e644251ec0d3a94da855a7cf /editor/plugins/script_text_editor.cpp
parentfdfb7e5fc44d5fbbcaf9a09c8732596d925c7a80 (diff)
parent8cf941a8cb6ea5cf778bba12ec34261edc7ff0bb (diff)
downloadredot-engine-e37ad996a19396542009b058d00f30a909489834.tar.gz
Merge pull request #34625 from timothyqiu/i18n
Makes more editor strings translatable
Diffstat (limited to 'editor/plugins/script_text_editor.cpp')
-rw-r--r--editor/plugins/script_text_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/script_text_editor.cpp b/editor/plugins/script_text_editor.cpp
index 4c23e3fcd2..ef6f864a87 100644
--- a/editor/plugins/script_text_editor.cpp
+++ b/editor/plugins/script_text_editor.cpp
@@ -1560,7 +1560,7 @@ void ScriptTextEditor::drop_data_fw(const Point2 &p_point, const Variant &p_data
Node *sn = _find_script_node(get_tree()->get_edited_scene_root(), get_tree()->get_edited_scene_root(), script);
if (!sn) {
- EditorNode::get_singleton()->show_warning("Can't drop nodes because script '" + get_name() + "' is not used in this scene.");
+ EditorNode::get_singleton()->show_warning(vformat(TTR("Can't drop nodes because script '%s' is not used in this scene."), get_name()));
return;
}