summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorSkyJJ <jjchai01@hotmail.com>2020-07-03 20:24:54 +0200
committerSkyJJ <jjchai01@hotmail.com>2020-07-05 12:14:56 +0200
commitcae6f0bda282c8e831cbae5d45cfaa4e841ff3bf (patch)
tree3d3db4190712ddf25b8e7f606aeae23a28e3a5a9 /editor/plugins
parent0287508dcdf51c7349b41aabb7679061a5147fdf (diff)
Change translation parser plugin API to parse_file()
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/packed_scene_translation_parser_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/packed_scene_translation_parser_plugin.cpp b/editor/plugins/packed_scene_translation_parser_plugin.cpp
index f9aaa93614..52af0008b7 100644
--- a/editor/plugins/packed_scene_translation_parser_plugin.cpp
+++ b/editor/plugins/packed_scene_translation_parser_plugin.cpp
@@ -71,7 +71,7 @@ Error PackedSceneEditorTranslationParserPlugin::parse_file(const String &p_path,
String extension = s->get_language()->get_extension();
if (EditorTranslationParser::get_singleton()->can_parse(extension)) {
Vector<String> temp;
- EditorTranslationParser::get_singleton()->get_parser(extension)->parse_text(s->get_source_code(), &temp);
+ EditorTranslationParser::get_singleton()->get_parser(extension)->parse_file(s->get_path(), &temp);
parsed_strings.append_array(temp);
}
} else if (property_name == "filters") {