0
Fork 0
mirror of https://codeberg.org/librewolf/source.git synced 2024-12-21 21:23:08 -05:00

Fix appstrings.properties

This commit is contained in:
Malte Jürgens 2024-10-06 14:37:08 +02:00
parent 376b65bbb1
commit 0aaa90890f
No known key found for this signature in database
GPG key ID: D29FBD5F93C0CFC3

View file

@ -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",