summaryrefslogtreecommitdiffstats
path: root/editor/plugins/script_text_editor.cpp
diff options
context:
space:
mode:
authorHaoyu Qiu <timothyqiu32@gmail.com>2019-12-27 10:31:55 +0800
committerHaoyu Qiu <timothyqiu32@gmail.com>2019-12-30 10:36:31 +0800
commit8cf941a8cb6ea5cf778bba12ec34261edc7ff0bb (patch)
tree9bc08f8527bb98c95e45603847d64bec31c2ba81 /editor/plugins/script_text_editor.cpp
parentb8e8f4942d5ae49d4661ed685486abcc8b5cbd55 (diff)
downloadredot-engine-8cf941a8cb6ea5cf778bba12ec34261edc7ff0bb.tar.gz
Makes more editor strings translatable
* Title of Sprite Editor convert preview dialogs * Title of UV Channel Debug dialog * Various editor warnings * GridMap popup menu item "Paste Selects" * Tileset editor shape button texts * MeshLibrary update confirmation text
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 c57ffa8ee3..35ca97b427 100644
--- a/editor/plugins/script_text_editor.cpp
+++ b/editor/plugins/script_text_editor.cpp
@@ -1559,7 +1559,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;
}