diff --git a/addons/zylann.translation_editor/tools/po_loader.gd b/addons/zylann.translation_editor/tools/po_loader.gd index 25a0a1e..07cc9c6 100644 --- a/addons/zylann.translation_editor/tools/po_loader.gd +++ b/addons/zylann.translation_editor/tools/po_loader.gd @@ -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(" ")