From 0aaa90890faba69f5ea2a42ab9b5df597b7287fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20J=C3=BCrgens?= Date: Sun, 6 Oct 2024 14:37:08 +0200 Subject: [PATCH] Fix appstrings.properties --- scripts/librewolf-patches.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/librewolf-patches.py b/scripts/librewolf-patches.py index be92a93..e68690d 100755 --- a/scripts/librewolf-patches.py +++ b/scripts/librewolf-patches.py @@ -153,14 +153,16 @@ def librewolf_patches(): exec(f"unzip -qo {tmpdir}/l10n.zip -d {tmpdir}/l10n") exec(f"mv {tmpdir}/l10n/firefox-l10n-main/* browser/locales") + print("-> Patching appstrings.properties") + # Why is "Firefox" hardcoded there??? + exec("find browser/locales -path '*/appstrings.properties' -exec sed -i s/Firefox/LibreWolf/ {} \;") + print("-> Applying LibreWolf locales") l10n_dir = Path("..", "l10n") for source_path in l10n_dir.rglob("*"): if source_path.is_dir() or source_path.name.endswith(".md"): continue - - rel_path = source_path.relative_to(l10n_dir) target_path = Path( "browser", "locales",