mirror of
https://codeberg.org/librewolf/source.git
synced 2024-12-22 13:43:04 -05:00
Fix fullpage-translations-customization.patch
This commit is contained in:
parent
a63ff10ff4
commit
7c436fda91
1 changed files with 19 additions and 53 deletions
|
@ -1,6 +1,6 @@
|
||||||
--- a/browser/base/content/main-popupset.inc.xhtml
|
--- a/browser/base/content/main-popupset.inc.xhtml
|
||||||
+++ b/browser/base/content/main-popupset.inc.xhtml
|
+++ b/browser/base/content/main-popupset.inc.xhtml
|
||||||
@@ -652,6 +652,8 @@
|
@@ -675,6 +675,8 @@
|
||||||
checked="false"
|
checked="false"
|
||||||
autocheck="false"
|
autocheck="false"
|
||||||
oncommand="FullPageTranslationsPanel.onNeverTranslateSite()"/>
|
oncommand="FullPageTranslationsPanel.onNeverTranslateSite()"/>
|
||||||
|
@ -11,63 +11,29 @@
|
||||||
data-l10n-id="translations-panel-settings-manage-languages"
|
data-l10n-id="translations-panel-settings-manage-languages"
|
||||||
--- a/browser/components/preferences/main.inc.xhtml
|
--- a/browser/components/preferences/main.inc.xhtml
|
||||||
+++ b/browser/components/preferences/main.inc.xhtml
|
+++ b/browser/components/preferences/main.inc.xhtml
|
||||||
@@ -381,27 +381,36 @@
|
@@ -389,8 +389,13 @@
|
||||||
preference="layout.spellcheckDefault"/>
|
preference="layout.spellcheckDefault"/>
|
||||||
|
|
||||||
<!-- Translations -->
|
<!-- Translations -->
|
||||||
- <vbox id="translationsGroup" hidden="true" data-subcategory="translations">
|
- <vbox id="translationsGroup" hidden="true" data-subcategory="translations">
|
||||||
+ <vbox id="translationsGroup" data-subcategory="translations">
|
+ <vbox id="translationsGroup" data-subcategory="translations">
|
||||||
<label><html:h2 data-l10n-id="translations-manage-header"/></label>
|
<label><html:h2 data-l10n-id="translations-manage-header"/></label>
|
||||||
- <hbox id="translations-manage-description" align="center">
|
|
||||||
- <description flex="1" data-l10n-id="translations-manage-intro"/>
|
|
||||||
- <button id="translations-manage-settings-button"
|
|
||||||
- is="highlightable-button"
|
|
||||||
- class="accessory-button"
|
|
||||||
- data-l10n-id="translations-manage-settings-button"/>
|
|
||||||
- </hbox>
|
|
||||||
- <vbox>
|
|
||||||
- <html:div id="translations-manage-install-list" hidden="true">
|
|
||||||
- <hbox class="translations-manage-language">
|
|
||||||
- <label data-l10n-id="translations-manage-install-description"></label>
|
|
||||||
- <button id="translations-manage-install-all"
|
|
||||||
- data-l10n-id="translations-manage-language-install-all-button"></button>
|
|
||||||
- <button id="translations-manage-delete-all"
|
|
||||||
- data-l10n-id="translations-manage-language-remove-all-button"></button>
|
|
||||||
- </hbox>
|
|
||||||
- <!-- The downloadable languages will be listed here. -->
|
|
||||||
- </html:div>
|
|
||||||
- <description id="translations-manage-error" hidden="true"></description>
|
|
||||||
+ <checkbox id="translations-manage-enable"
|
+ <checkbox id="translations-manage-enable"
|
||||||
+ data-l10n-id="translations-manage-enable"
|
+ data-l10n-id="translations-manage-enable"
|
||||||
+ preference="browser.translations.enable"
|
+ preference="browser.translations.enable"
|
||||||
+ data-subcategory="translations-enable" />
|
+ data-subcategory="translations-enable" />
|
||||||
+ <vbox id="innerTranslationsGroup" hidden="true">
|
+ <vbox id="innerTranslationsGroup" hidden="true">
|
||||||
+ <checkbox id="translations-manage-autopopup"
|
<hbox id="translations-manage-description" align="center">
|
||||||
+ data-l10n-id="translations-manage-autopopup"
|
<description flex="1" data-l10n-id="translations-manage-intro-2"/>
|
||||||
+ preference="browser.translations.automaticallyPopup" />
|
<button id="translations-manage-settings-button"
|
||||||
+ <hbox id="translations-manage-description" align="center">
|
@@ -412,6 +417,7 @@
|
||||||
+ <description flex="1" data-l10n-id="translations-manage-intro"/>
|
<description id="translations-manage-error" hidden="true"></description>
|
||||||
+ <button id="translations-manage-settings-button"
|
</vbox>
|
||||||
+ is="highlightable-button"
|
</vbox>
|
||||||
+ class="accessory-button"
|
|
||||||
+ data-l10n-id="translations-manage-settings-button"/>
|
|
||||||
+ </hbox>
|
|
||||||
+ <vbox>
|
|
||||||
+ <html:div id="translations-manage-install-list" hidden="true">
|
|
||||||
+ <hbox class="translations-manage-language">
|
|
||||||
+ <label data-l10n-id="translations-manage-install-description"></label>
|
|
||||||
+ <button id="translations-manage-install-all"
|
|
||||||
+ data-l10n-id="translations-manage-language-install-all-button"></button>
|
|
||||||
+ <button id="translations-manage-delete-all"
|
|
||||||
+ data-l10n-id="translations-manage-language-remove-all-button"></button>
|
|
||||||
+ </hbox>
|
|
||||||
+ <!-- The downloadable languages will be listed here. -->
|
|
||||||
+ </html:div>
|
|
||||||
+ <description id="translations-manage-error" hidden="true"></description>
|
|
||||||
+ </vbox>
|
+ </vbox>
|
||||||
</vbox>
|
|
||||||
</vbox>
|
|
||||||
</groupbox>
|
</groupbox>
|
||||||
|
|
||||||
|
<!-- Files and Applications -->
|
||||||
--- a/browser/components/preferences/main.js
|
--- a/browser/components/preferences/main.js
|
||||||
+++ b/browser/components/preferences/main.js
|
+++ b/browser/components/preferences/main.js
|
||||||
@@ -144,6 +144,10 @@ Preferences.addAll([
|
@@ -144,6 +144,10 @@ Preferences.addAll([
|
||||||
|
@ -104,7 +70,7 @@
|
||||||
if (
|
if (
|
||||||
Services.prefs.getBoolPref(
|
Services.prefs.getBoolPref(
|
||||||
"media.videocontrols.picture-in-picture.enabled"
|
"media.videocontrols.picture-in-picture.enabled"
|
||||||
@@ -771,6 +791,10 @@ var gMainPane = {
|
@@ -789,6 +809,10 @@ var gMainPane = {
|
||||||
document.getElementById("checkSpelling"),
|
document.getElementById("checkSpelling"),
|
||||||
() => this.writeCheckSpelling()
|
() => this.writeCheckSpelling()
|
||||||
);
|
);
|
||||||
|
@ -115,7 +81,7 @@
|
||||||
Preferences.addSyncFromPrefListener(
|
Preferences.addSyncFromPrefListener(
|
||||||
document.getElementById("alwaysAsk"),
|
document.getElementById("alwaysAsk"),
|
||||||
() => this.readUseDownloadDir()
|
() => this.readUseDownloadDir()
|
||||||
@@ -1001,24 +1025,33 @@ var gMainPane = {
|
@@ -1019,24 +1043,33 @@ var gMainPane = {
|
||||||
document.getElementById("zoomBox").hidden = false;
|
document.getElementById("zoomBox").hidden = false;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -155,7 +121,7 @@
|
||||||
* The fully initialized state.
|
* The fully initialized state.
|
||||||
--- a/browser/components/translations/content/fullPageTranslationsPanel.js
|
--- a/browser/components/translations/content/fullPageTranslationsPanel.js
|
||||||
+++ b/browser/components/translations/content/fullPageTranslationsPanel.js
|
+++ b/browser/components/translations/content/fullPageTranslationsPanel.js
|
||||||
@@ -1239,6 +1239,15 @@ var FullPageTranslationsPanel = new (class {
|
@@ -1225,6 +1225,15 @@ var FullPageTranslationsPanel = new (class {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -191,6 +157,6 @@
|
||||||
+ .label = Enable fullpage translations
|
+ .label = Enable fullpage translations
|
||||||
+translations-manage-autopopup =
|
+translations-manage-autopopup =
|
||||||
+ .label = Prompt to translate pages that aren’t in the browser’s configured language
|
+ .label = Prompt to translate pages that aren’t in the browser’s configured language
|
||||||
translations-manage-intro = Set your language and site translation preferences and manage languages installed for offline translation.
|
translations-manage-intro-2 = Set your language and site translation preferences and manage languages downloaded for offline translation.
|
||||||
translations-manage-install-description = Install languages for offline translation
|
translations-manage-download-description = Download languages for offline translation
|
||||||
translations-manage-language-install-button =
|
translations-manage-language-download-button =
|
||||||
|
|
Loading…
Reference in a new issue