Skip to content

Commit 1d84ca4

Browse files
committed
update gettex action
1 parent 8abfe16 commit 1d84ca4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

scripts/update_translations.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from pathlib import Path
77

88
def 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

0 commit comments

Comments
 (0)