Fix gettext comments loading with a leading newline

This commit is contained in:
Marc Gilleron 2018-11-14 22:48:18 +00:00
parent 7d970fe552
commit 77c5db71c6

View File

@ -32,7 +32,10 @@ static func load_po_translation(folder_path, valid_locales):
var line = f.get_line().strip_edges()
if line != "" and line[0] == "#":
comment = str(comment, "\n", line.right(1).strip_edges())
if comment == "":
comment = str(comment, line.right(1))
else:
comment = str(comment, "\n", line.right(1))
continue
var space_index = line.find(" ")