docs: replace File with FileAccess

This commit is contained in:
Jiri Suchan
2023-01-30 22:21:36 +08:00
parent 312011fade
commit 4a4adec33d
4 changed files with 10 additions and 16 deletions

View File

@@ -15,8 +15,7 @@
extends EditorTranslationParserPlugin
func _parse_file(path, msgids, msgids_context_plural):
var file = File.new()
file.open(path, File.READ)
var file = FileAccess.open(path, FileAccess.READ)
var text = file.get_as_text()
var split_strs = text.split(",", false)
for s in split_strs: