mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-06 09:56:36 +00:00
chore: Moved warning directly into html
This commit is contained in:
12
src/browser/components/preferences/main-inc-xhtml.patch
Normal file
12
src/browser/components/preferences/main-inc-xhtml.patch
Normal file
@@ -0,0 +1,12 @@
|
||||
diff --git a/browser/components/preferences/main.inc.xhtml b/browser/components/preferences/main.inc.xhtml
|
||||
index 4c2637db10b7ad5d253d9588be3610c1ec5ad330..b8445b808cf9dcb54d380ae78172db4bf8250cd4 100644
|
||||
--- a/browser/components/preferences/main.inc.xhtml
|
||||
+++ b/browser/components/preferences/main.inc.xhtml
|
||||
@@ -369,6 +369,7 @@
|
||||
languages-customize-add.label,
|
||||
" />
|
||||
</hbox>
|
||||
+ <label class="zenLanguageWarning-label"><html:b data-l10n-id="zen-warning-language"/></label>
|
||||
|
||||
<checkbox id="useSystemLocale" hidden="true"
|
||||
data-l10n-id="use-system-locale"
|
@@ -57,19 +57,6 @@ var gZenLooksAndFeel = {
|
||||
|
||||
var gZenWorkspacesSettings = {
|
||||
init() {
|
||||
this.addLanguageWarning();
|
||||
},
|
||||
|
||||
addLanguageWarning() {
|
||||
let chooseLanguage = document.getElementById("languagesBox");
|
||||
|
||||
let fragment = window.MozXULElement.parseXULToFragment(`
|
||||
<hbox class="zenLanguageWarning">
|
||||
<label class="zenLanguageWarning-label"><html:b data-l10n-id="zen-warning-language"/></label>
|
||||
</hbox>
|
||||
`);
|
||||
|
||||
chooseLanguage.after(fragment);
|
||||
},
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user