mirror of
https://codeberg.org/librewolf/source.git
synced 2024-12-22 13:43:04 -05:00
Fix appstrings.properties
This commit is contained in:
parent
376b65bbb1
commit
0aaa90890f
1 changed files with 4 additions and 2 deletions
|
@ -153,14 +153,16 @@ def librewolf_patches():
|
||||||
exec(f"unzip -qo {tmpdir}/l10n.zip -d {tmpdir}/l10n")
|
exec(f"unzip -qo {tmpdir}/l10n.zip -d {tmpdir}/l10n")
|
||||||
exec(f"mv {tmpdir}/l10n/firefox-l10n-main/* browser/locales")
|
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")
|
print("-> Applying LibreWolf locales")
|
||||||
l10n_dir = Path("..", "l10n")
|
l10n_dir = Path("..", "l10n")
|
||||||
for source_path in l10n_dir.rglob("*"):
|
for source_path in l10n_dir.rglob("*"):
|
||||||
if source_path.is_dir() or source_path.name.endswith(".md"):
|
if source_path.is_dir() or source_path.name.endswith(".md"):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
rel_path = source_path.relative_to(l10n_dir)
|
rel_path = source_path.relative_to(l10n_dir)
|
||||||
target_path = Path(
|
target_path = Path(
|
||||||
"browser", "locales",
|
"browser", "locales",
|
||||||
|
|
Loading…
Reference in a new issue