-
Notifications
You must be signed in to change notification settings - Fork 163
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace default location header (#1260)
- Loading branch information
Showing
1 changed file
with
2 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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() | ||
|
@@ -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() | ||
|