File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 66from pathlib import Path
77
88def extract_full_header (po_file ):
9- """Extract complete header including license comments from PO file."""
9+ """Extract complete header from PO file."""
1010 if not po_file .exists ():
1111 return None
1212
@@ -16,11 +16,8 @@ def extract_full_header(po_file):
1616
1717 with open (po_file , 'r' , encoding = 'utf-8' ) as f :
1818 for line in f :
19- # Include initial comments (license, copyright, etc.)
20- if line .startswith ('#' ) and not in_header :
21- header_lines .append (line )
2219 # Detect start of header (first msgid "")
23- elif line .strip () == 'msgid ""' and not in_header :
20+ if line .strip () == 'msgid ""' and not in_header :
2421 in_header = True
2522 header_lines .append (line )
2623 # Inside header
You can’t perform that action at this time.
0 commit comments