mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 07:25:53 +08:00
fix pom_merger: now correctly parse page string
supermerill/SuperSlicer#1203
This commit is contained in:
parent
0449a49665
commit
949ed6a24d
@ -395,7 +395,15 @@ def parse_ui_file(file_path):
|
||||
while line_idx < len(lines):
|
||||
items = lines[line_idx].strip().split(":");
|
||||
if len(items) > 1:
|
||||
if items[0]=="page" or items[0]=="group" or items[0]=="line":
|
||||
if items[0]=="page:
|
||||
current_line = TranslationLine();
|
||||
current_line.header_comment = "\n#: "+file_path;#+":"+str(line_idx);
|
||||
current_line.raw_msgid = "msgid \""+items[1]+"\"";
|
||||
current_line.msgid = items[1];
|
||||
current_line.raw_msgstr = "msgstr \"\"";
|
||||
current_line.msgstr = "";
|
||||
read_data_lines.append(current_line);
|
||||
if items[0]=="group" or items[0]=="line":
|
||||
current_line = TranslationLine();
|
||||
current_line.header_comment = "\n#: "+file_path;#+":"+str(line_idx);
|
||||
current_line.raw_msgid = "msgid \""+items[-1]+"\"";
|
||||
|
Loading…
x
Reference in New Issue
Block a user