mirror of
https://github.com/Relintai/godot_translation_editor.git
synced 2024-11-20 08:37:18 +01:00
Fix gettext comments loading with a leading newline
This commit is contained in:
parent
7d970fe552
commit
77c5db71c6
@ -32,7 +32,10 @@ static func load_po_translation(folder_path, valid_locales):
|
|||||||
var line = f.get_line().strip_edges()
|
var line = f.get_line().strip_edges()
|
||||||
|
|
||||||
if line != "" and line[0] == "#":
|
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
|
continue
|
||||||
|
|
||||||
var space_index = line.find(" ")
|
var space_index = line.find(" ")
|
||||||
|
Loading…
Reference in New Issue
Block a user