Change translation parser plugin API to parse_file()
This commit is contained in:
parent
0287508dcd
commit
cae6f0bda2
6 changed files with 35 additions and 60 deletions
|
|
@ -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") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue