From a22add8619de9d72808e499b874b6d7cbd62816a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20J=C3=BCrgens?= Date: Wed, 1 Mar 2023 23:03:35 +0100 Subject: [PATCH] test weblate with pref pane patch --- patches/librewolf-pref-pane.patch | 150 ++---------------- .../locales/en-US/librewolf/preferences.flt | 87 ++++++++++ 2 files changed, 102 insertions(+), 135 deletions(-) create mode 100644 themes/browser/locales/en-US/librewolf/preferences.flt diff --git a/patches/librewolf-pref-pane.patch b/patches/librewolf-pref-pane.patch index b1ed478..efbae51 100644 --- a/patches/librewolf-pref-pane.patch +++ b/patches/librewolf-pref-pane.patch @@ -1,30 +1,4 @@ -From 058054ef4648971a4cf72fa5f42553786df7336a Mon Sep 17 00:00:00 2001 -From: ohfp <1813007-ohfp@users.noreply.gitlab.com> -Date: Tue, 12 Apr 2022 11:57:53 +0200 -Subject: [PATCH] port pref-pane patch changes to gecko-dev - -fix xorigin pref init and handling - -[LW] Ask to Restart Browser if Sync Pref in LW Settings is changed ---- - browser/components/preferences/jar.mn | 1 + - .../preferences/librewolf.inc.xhtml | 254 ++++++++++++++++ - browser/components/preferences/librewolf.js | 287 ++++++++++++++++++ - browser/components/preferences/preferences.js | 2 + - .../components/preferences/preferences.xhtml | 13 + - .../en-US/browser/preferences/preferences.ftl | 95 ++++++ - browser/themes/shared/jar.inc.mn | 2 + - .../shared/preferences/category-librewolf.svg | 96 ++++++ - .../themes/shared/preferences/librewolf.css | 23 ++ - .../themes/shared/preferences/preferences.css | 4 + - 10 files changed, 777 insertions(+) - create mode 100644 browser/components/preferences/librewolf.inc.xhtml - create mode 100644 browser/components/preferences/librewolf.js - create mode 100644 browser/themes/shared/preferences/category-librewolf.svg - create mode 100644 browser/themes/shared/preferences/librewolf.css - diff --git a/browser/components/preferences/jar.mn b/browser/components/preferences/jar.mn -index 2131a15ceef7..0b97dc14b42e 100644 --- a/browser/components/preferences/jar.mn +++ b/browser/components/preferences/jar.mn @@ -11,6 +11,7 @@ browser.jar: @@ -37,7 +11,6 @@ index 2131a15ceef7..0b97dc14b42e 100644 content/browser/preferences/experimental.js diff --git a/browser/components/preferences/librewolf.inc.xhtml b/browser/components/preferences/librewolf.inc.xhtml new file mode 100644 -index 000000000000..c2dfea6d0858 --- /dev/null +++ b/browser/components/preferences/librewolf.inc.xhtml @@ -0,0 +1,254 @@ @@ -297,7 +270,6 @@ index 000000000000..c2dfea6d0858 + diff --git a/browser/components/preferences/librewolf.js b/browser/components/preferences/librewolf.js new file mode 100644 -index 000000000000..c8cbb075d59b --- /dev/null +++ b/browser/components/preferences/librewolf.js @@ -0,0 +1,287 @@ @@ -589,7 +561,6 @@ index 000000000000..c8cbb075d59b + }); +}); diff --git a/browser/components/preferences/preferences.js b/browser/components/preferences/preferences.js -index 19dda7cf39eb..f5e67b637b49 100644 --- a/browser/components/preferences/preferences.js +++ b/browser/components/preferences/preferences.js @@ -8,6 +8,7 @@ @@ -600,7 +571,7 @@ index 19dda7cf39eb..f5e67b637b49 100644 /* import-globals-from sync.js */ /* import-globals-from experimental.js */ /* import-globals-from moreFromMozilla.js */ -@@ -196,6 +197,7 @@ function init_all() { +@@ -198,6 +199,7 @@ function init_all() { register_module("paneHome", gHomePane); register_module("paneSearch", gSearchPane); register_module("panePrivacy", gPrivacyPane); @@ -609,7 +580,6 @@ index 19dda7cf39eb..f5e67b637b49 100644 if (Services.prefs.getBoolPref("browser.preferences.experimental")) { // Set hidden based on previous load's hidden value. diff --git a/browser/components/preferences/preferences.xhtml b/browser/components/preferences/preferences.xhtml -index 6ee14eec9b2e..a0d768dce307 100644 --- a/browser/components/preferences/preferences.xhtml +++ b/browser/components/preferences/preferences.xhtml @@ -13,6 +13,7 @@ @@ -620,7 +590,15 @@ index 6ee14eec9b2e..a0d768dce307 100644 -@@ -129,6 +130,17 @@ +@@ -33,6 +34,7 @@ + + + ++ + + + +@@ -131,6 +133,17 @@ @@ -638,7 +616,7 @@ index 6ee14eec9b2e..a0d768dce307 100644