mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-14 15:45:56 +08:00
updated it translation by Liger0
and fix & updates on pom_merger.py
This commit is contained in:
parent
4ed4ec0151
commit
ad47355f3b
File diff suppressed because it is too large
Load Diff
@ -395,7 +395,7 @@ def parse_ui_file(file_path):
|
|||||||
while line_idx < len(lines):
|
while line_idx < len(lines):
|
||||||
items = lines[line_idx].strip().split(":");
|
items = lines[line_idx].strip().split(":");
|
||||||
if len(items) > 1:
|
if len(items) > 1:
|
||||||
if items[0]=="page:
|
if items[0]=="page":
|
||||||
current_line = TranslationLine();
|
current_line = TranslationLine();
|
||||||
current_line.header_comment = "\n#: "+file_path;#+":"+str(line_idx);
|
current_line.header_comment = "\n#: "+file_path;#+":"+str(line_idx);
|
||||||
current_line.raw_msgid = "msgid \""+items[1]+"\"";
|
current_line.raw_msgid = "msgid \""+items[1]+"\"";
|
||||||
@ -413,14 +413,15 @@ def parse_ui_file(file_path):
|
|||||||
read_data_lines.append(current_line);
|
read_data_lines.append(current_line);
|
||||||
if items[0]=="setting":
|
if items[0]=="setting":
|
||||||
for item in items:
|
for item in items:
|
||||||
if item.startswith("label$") or item.startswith("sidetext$") or item.startswith("sidetext$"):
|
if item.startswith("label$") or item.startswith("full_label$") or item.startswith("sidetext$") or item.startswith("tooltip$"):
|
||||||
current_line = TranslationLine();
|
if item.split("$")[-1] != "_" and len(item.split("$")[-1]) > 0 :
|
||||||
current_line.header_comment = "\n#: "+file_path+" : l"+str(line_idx);
|
current_line = TranslationLine();
|
||||||
current_line.msgid = item.split("$")[-1];
|
current_line.header_comment = "\n#: "+file_path+" : l"+str(line_idx);
|
||||||
current_line.raw_msgid = "msgid \""+current_line.msgid+"\"";
|
current_line.msgid = item.split("$")[-1];
|
||||||
current_line.raw_msgstr = "msgstr \"\"";
|
current_line.raw_msgid = "msgid \""+current_line.msgid+"\"";
|
||||||
current_line.msgstr = "";
|
current_line.raw_msgstr = "msgstr \"\"";
|
||||||
read_data_lines.append(current_line);
|
current_line.msgstr = "";
|
||||||
|
read_data_lines.append(current_line);
|
||||||
line_idx+=1;
|
line_idx+=1;
|
||||||
|
|
||||||
return read_data_lines;
|
return read_data_lines;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user