From 5d8272bffb351130855c7d4a09c0c013ba834d10 Mon Sep 17 00:00:00 2001 From: Rick Calixte <10281587+rcalixte@users.noreply.github.com> Date: Tue, 20 Aug 2024 21:02:17 -0400 Subject: [PATCH] Replace default location header --- cinnamon-spices-makepot | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cinnamon-spices-makepot b/cinnamon-spices-makepot index a863c6ec..8413813f 100755 --- a/cinnamon-spices-makepot +++ b/cinnamon-spices-makepot @@ -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 , 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 ', '') content = content.replace('LANGUAGE ', '') + content = content.replace('#: ', '#. ') po.seek(0) po.write(content) po.truncate()