Skip to content

Commit

Permalink
Replace default location header (#1260)
Browse files Browse the repository at this point in the history
  • Loading branch information
rcalixte authored Aug 21, 2024
1 parent f5b20d4 commit 39b61ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cinnamon-spices-makepot
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ def process_po(path_to_po: str, po_info: list, uuid: str) -> CapturedOutput:
content = po.read()
content = content.replace('SOME DESCRIPTIVE TITLE.', name)
content = content.replace('FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.', f'{po_author}, {year}')
content = content.replace('#: ', '#. ')
po.seek(0)
po.write(content)
po.truncate()
Expand Down Expand Up @@ -294,6 +295,7 @@ def make_pot(uuid: str) -> CapturedOutput:
content = content.replace('YEAR-MO-DA HO:MI+ZONE', '')
content = content.replace('FULL NAME <EMAIL@ADDRESS>', '')
content = content.replace('LANGUAGE <[email protected]>', '')
content = content.replace('#: ', '#. ')
po.seek(0)
po.write(content)
po.truncate()
Expand Down

0 comments on commit 39b61ab

Please sign in to comment.