Bug 1455649 - DocumentL10n, part 8 - Switch Preferences to use DocumentL10n API.
With the new DocumentL10n API we can now use <linkset/> element to trigger
DOMLocalization resource list population and fetching.
MozReview-Commit-ID: Db6uxyjOx9m
--- a/browser/components/preferences/applicationManager.xul
+++ b/browser/components/preferences/applicationManager.xul
@@ -3,26 +3,28 @@
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<?xml-stylesheet href="chrome://global/skin/"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/applications.css"?>
<dialog id="appManager"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml"
buttons="accept,cancel"
onload="gAppManagerDialog.onLoad();"
ondialogaccept="gAppManagerDialog.onOK();"
ondialogcancel="gAppManagerDialog.onCancel();"
data-l10n-id="app-manager-window"
data-l10n-attrs="title, style"
persist="screenX screenY">
- <link rel="localization" href="browser/preferences/applicationManager.ftl"/>
- <script type="application/javascript" src="chrome://global/content/l10n.js"></script>
+ <linkset>
+ <html:link rel="localization" href="browser/preferences/applicationManager.ftl"/>
+ </linkset>
<script type="application/javascript"
src="chrome://browser/content/utilityOverlay.js"/>
<script type="application/javascript"
src="chrome://global/content/preferencesBindings.js"/>
<script type="application/javascript"
src="chrome://browser/content/preferences/applicationManager.js"/>
--- a/browser/components/preferences/blocklists.xul
+++ b/browser/components/preferences/blocklists.xul
@@ -7,24 +7,26 @@
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css" type="text/css"?>
<window id="BlocklistsDialog" class="windowDialog"
windowtype="Browser:Blocklists"
data-l10n-id="blocklist-window"
data-l10n-attrs="title, style"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml"
onload="gBlocklistManager.onLoad();"
onunload="gBlocklistManager.uninit();"
persist="screenX screenY width height"
onkeypress="gBlocklistManager.onWindowKeyPress(event);">
- <link rel="localization" href="branding/brand.ftl"/>
- <link rel="localization" href="browser/preferences/blocklists.ftl"/>
- <script type="application/javascript" src="chrome://global/content/l10n.js"></script>
+ <linkset>
+ <html:link rel="localization" href="branding/brand.ftl"/>
+ <html:link rel="localization" href="browser/preferences/blocklists.ftl"/>
+ </linkset>
<script src="chrome://browser/content/preferences/blocklists.js"/>
<keyset>
<key data-l10n-id="blocklist-close-key" modifiers="accel" oncommand="window.close();"/>
</keyset>
<vbox class="contentPane largeDialogContainer" flex="1">
--- a/browser/components/preferences/clearSiteData.xul
+++ b/browser/components/preferences/clearSiteData.xul
@@ -6,23 +6,25 @@
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/content/preferences/clearSiteData.css" type="text/css"?>
<window id="ClearSiteDataDialog" class="windowDialog"
windowtype="Browser:ClearSiteData"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml"
data-l10n-id="clear-site-data-window"
data-l10n-attrs="title, style"
persist="screenX screenY width height">
- <link rel="localization" href="branding/brand.ftl"/>
- <link rel="localization" href="browser/preferences/clearSiteData.ftl"/>
- <script type="application/javascript" src="chrome://global/content/l10n.js"></script>
+ <linkset>
+ <html:link rel="localization" href="branding/brand.ftl"/>
+ <html:link rel="localization" href="browser/preferences/clearSiteData.ftl"/>
+ </linkset>
<script src="chrome://browser/content/preferences/clearSiteData.js"/>
<keyset>
<key data-l10n-id="clear-site-data-close-key" modifiers="accel" oncommand="window.close();"/>
</keyset>
<vbox class="contentPane largeDialogContainer" flex="1">
<description control="url" data-l10n-id="clear-site-data-description"/>
--- a/browser/components/preferences/colors.xul
+++ b/browser/components/preferences/colors.xul
@@ -5,26 +5,28 @@
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css"?>
<dialog id="ColorsDialog" type="child" class="prefwindow"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml"
data-l10n-id="colors-window"
data-l10n-attrs="title, style"
buttons="accept,cancel,help"
persist="lastSelected screenX screenY"
role="dialog"
helpTopic="prefs-fonts-and-colors"
ondialoghelp="openPrefsHelp()">
- <link rel="localization" href="browser/preferences/colors.ftl"/>
- <script type="application/javascript" src="chrome://global/content/l10n.js"></script>
+ <linkset>
+ <html:link rel="localization" href="browser/preferences/colors.ftl"/>
+ </linkset>
<script type="application/javascript" src="chrome://browser/content/utilityOverlay.js"/>
<script type="application/javascript" src="chrome://global/content/preferencesBindings.js"/>
<keyset>
<key data-l10n-id="colors-close-key" modifiers="accel" oncommand="Preferences.close(event)"/>
</keyset>
--- a/browser/components/preferences/connection.xul
+++ b/browser/components/preferences/connection.xul
@@ -4,32 +4,34 @@
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<?xml-stylesheet href="chrome://global/skin/"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css"?>
<dialog id="ConnectionsDialog" type="child" class="prefwindow"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml"
data-l10n-id="connection-window"
data-l10n-attrs="title, style"
buttons="accept,cancel,help"
persist="lastSelected screenX screenY"
role="dialog"
onbeforeaccept="return gConnectionsDialog.beforeAccept();"
onload="gConnectionsDialog.checkForSystemProxy();"
helpTopic="prefs-connection-settings"
ondialoghelp="openPrefsHelp()">
- <link rel="localization" href="browser/preferences/connection.ftl"/>
+ <html:link rel="localization" href="browser/preferences/connection.ftl"/>
<!-- Used for extension-controlled lockdown message -->
- <link rel="localization" href="browser/preferences/preferences.ftl"/>
- <link rel="localization" href="branding/brand.ftl"/>
- <script type="application/javascript" src="chrome://global/content/l10n.js"></script>
+ <linkset>
+ <html:link rel="localization" href="browser/preferences/preferences.ftl"/>
+ <html:link rel="localization" href="branding/brand.ftl"/>
+ </linkset>
<script type="application/javascript" src="chrome://browser/content/utilityOverlay.js"/>
<script type="application/javascript" src="chrome://global/content/preferencesBindings.js"/>
<script type="application/javascript" src="chrome://browser/content/preferences/in-content/extensionControlled.js"/>
<keyset>
<key data-l10n-id="connection-close-key" modifiers="accel" oncommand="Preferences.close(event)"/>
</keyset>
--- a/browser/components/preferences/containers.xul
+++ b/browser/components/preferences/containers.xul
@@ -5,24 +5,26 @@
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/containers.css" type="text/css"?>
<window id="ContainersDialog" class="windowDialog"
windowtype="Browser:Permissions"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml"
data-l10n-attrs="title, style"
onload="gContainersManager.onLoad();"
onunload="gContainersManager.uninit();"
persist="screenX screenY width height"
onkeypress="gContainersManager.onWindowKeyPress(event);">
- <link rel="localization" href="browser/preferences/containers.ftl"/>
- <script type="application/javascript" src="chrome://global/content/l10n.js"></script>
+ <linkset>
+ <html:link rel="localization" href="browser/preferences/containers.ftl"/>
+ </linkset>
<script src="chrome://browser/content/preferences/containers.js"/>
<keyset>
<key data-l10n-id="containers-window-close" modifiers="accel" oncommand="window.close();"/>
</keyset>
<vbox class="contentPane largeDialogContainer" flex="1" hidden="true" id="containers-content">
--- a/browser/components/preferences/fonts.xul
+++ b/browser/components/preferences/fonts.xul
@@ -5,26 +5,28 @@
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css"?>
<dialog id="FontsDialog" type="child" class="prefwindow"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml"
data-l10n-id="fonts-window"
data-l10n-attrs="title"
buttons="accept,cancel,help"
persist="lastSelected screenX screenY"
role="dialog"
helpTopic="prefs-fonts-and-colors"
ondialoghelp="openPrefsHelp()">
- <link rel="localization" href="browser/preferences/fonts.ftl"/>
- <script type="application/javascript" src="chrome://global/content/l10n.js"></script>
+ <linkset>
+ <html:link rel="localization" href="browser/preferences/fonts.ftl"/>
+ </linkset>
<script type="application/javascript" src="chrome://browser/content/utilityOverlay.js"/>
<script type="application/javascript" src="chrome://global/content/preferencesBindings.js"/>
<keyset>
<key data-l10n-id="fonts-window-close" modifiers="accel" oncommand="Preferences.close(event)"/>
</keyset>
--- a/browser/components/preferences/in-content/preferences.xul
+++ b/browser/components/preferences/in-content/preferences.xul
@@ -32,36 +32,36 @@
]>
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
disablefastfind="true"
data-l10n-id="pref-page"
data-l10n-attrs="title">
- <link rel="localization" href="branding/brand.ftl"/>
- <link rel="localization" href="browser/branding/sync-brand.ftl"/>
- <link rel="localization" href="browser/preferences/preferences.ftl"/>
- <!-- Used by fontbuilder.js -->
- <link rel="localization" href="browser/preferences/fonts.ftl"/>
+ <linkset>
+ <html:link rel="localization" href="branding/brand.ftl"/>
+ <html:link rel="localization" href="browser/branding/sync-brand.ftl"/>
+ <html:link rel="localization" href="browser/preferences/preferences.ftl"/>
+ <!-- Used by fontbuilder.js -->
+ <html:link rel="localization" href="browser/preferences/fonts.ftl"/>
- <!-- Links below are only used for search-l10n-ids into subdialogs -->
- <link rel="localization" href="browser/preferences/blocklists.ftl"/>
- <link rel="localization" href="browser/preferences/clearSiteData.ftl"/>
- <link rel="localization" href="browser/preferences/colors.ftl"/>
- <link rel="localization" href="browser/preferences/connection.ftl"/>
- <link rel="localization" href="browser/preferences/languages.ftl"/>
- <link rel="localization" href="browser/preferences/permissions.ftl"/>
- <link rel="localization" href="browser/preferences/selectBookmark.ftl"/>
- <link rel="localization" href="browser/preferences/siteDataSettings.ftl"/>
+ <!-- Links below are only used for search-l10n-ids into subdialogs -->
+ <html:link rel="localization" href="browser/preferences/blocklists.ftl"/>
+ <html:link rel="localization" href="browser/preferences/clearSiteData.ftl"/>
+ <html:link rel="localization" href="browser/preferences/colors.ftl"/>
+ <html:link rel="localization" href="browser/preferences/connection.ftl"/>
+ <html:link rel="localization" href="browser/preferences/languages.ftl"/>
+ <html:link rel="localization" href="browser/preferences/permissions.ftl"/>
+ <html:link rel="localization" href="browser/preferences/selectBookmark.ftl"/>
+ <html:link rel="localization" href="browser/preferences/siteDataSettings.ftl"/>
- <script type="text/javascript" src="chrome://global/content/l10n.js"></script>
-
- <html:link rel="shortcut icon"
- href="chrome://browser/skin/settings.svg"/>
+ <html:link rel="shortcut icon"
+ href="chrome://browser/skin/settings.svg"/>
+ </linkset>
<script type="application/javascript"
src="chrome://browser/content/utilityOverlay.js"/>
<script type="application/javascript"
src="chrome://global/content/preferencesBindings.js"/>
<script type="application/javascript"
src="chrome://browser/content/preferences/in-content/preferences.js"/>
<script type="application/javascript"
--- a/browser/components/preferences/in-content/syncDisconnect.xul
+++ b/browser/components/preferences/in-content/syncDisconnect.xul
@@ -10,19 +10,18 @@
<window id="syncDisconnectDialog" class="windowDialog"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
role="dialog"
onload="gSyncDisconnectDialog.init();"
data-l10n-id="sync-disconnect-dialog"
data-l10n-attrs="title, style">
- <link rel="localization" href="browser/branding/sync-brand.ftl"/>
- <link rel="localization" href="browser/preferences/syncDisconnect.ftl"/>
- <script src="chrome://global/content/l10n.js"/>
+ <html:link rel="localization" href="browser/branding/sync-brand.ftl"/>
+ <html:link rel="localization" href="browser/preferences/syncDisconnect.ftl"/>
<script src="chrome://browser/content/preferences/in-content/syncDisconnect.js"/>
<vbox id="deleteOptionsContent">
<description id="syncDisconnectHeading" data-l10n-id="sync-disconnect-heading"></description>
<vbox class="deleteOptions">
<hbox class="deleteOption">
<checkbox id="deleteRemoteSyncData"
--- a/browser/components/preferences/languages.xul
+++ b/browser/components/preferences/languages.xul
@@ -5,27 +5,29 @@
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<?xml-stylesheet href="chrome://global/skin/"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css"?>
<dialog id="LanguagesDialog" type="child" class="prefwindow"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml"
data-l10n-id="languages-window"
data-l10n-attrs="title, style"
buttons="accept,cancel,help"
persist="lastSelected screenX screenY"
role="dialog"
onload="gLanguagesDialog.init();"
helpTopic="prefs-languages"
ondialoghelp="openPrefsHelp()">
- <link rel="localization" href="browser/preferences/languages.ftl"/>
- <script type="application/javascript" src="chrome://global/content/l10n.js"></script>
+ <linkset>
+ <html:link rel="localization" href="browser/preferences/languages.ftl"/>
+ </linkset>
<script type="application/javascript" src="chrome://browser/content/utilityOverlay.js"/>
<script type="application/javascript" src="chrome://global/content/preferencesBindings.js"/>
<script type="application/javascript" src="chrome://browser/content/preferences/languages.js"/>
<keyset>
<key data-l10n-id="languages-close-key" modifiers="accel" oncommand="Preferences.close(event)"/>
</keyset>
--- a/browser/components/preferences/permissions.xul
+++ b/browser/components/preferences/permissions.xul
@@ -6,25 +6,27 @@
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://browser/content/preferences/sitePermissions.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css" type="text/css"?>
<window id="PermissionsDialog" class="windowDialog"
windowtype="Browser:Permissions"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml"
data-l10n-id="permissions-window"
data-l10n-attrs="title, style"
onload="gPermissionManager.onLoad();"
onunload="gPermissionManager.uninit();"
persist="screenX screenY width height"
onkeypress="gPermissionManager.onWindowKeyPress(event);">
- <link rel="localization" href="browser/preferences/permissions.ftl"/>
- <script type="application/javascript" src="chrome://global/content/l10n.js"></script>
+ <linkset>
+ <html:link rel="localization" href="browser/preferences/permissions.ftl"/>
+ </linkset>
<script src="chrome://browser/content/preferences/permissions.js"/>
<stringbundle id="bundlePreferences"
src="chrome://browser/locale/preferences/preferences.properties"/>
<keyset>
<key data-l10n-id="permissions-close-key" modifiers="accel" oncommand="window.close();"/>
--- a/browser/components/preferences/selectBookmark.xul
+++ b/browser/components/preferences/selectBookmark.xul
@@ -6,24 +6,26 @@
<?xml-stylesheet href="chrome://browser/content/places/places.css"?>
<?xml-stylesheet href="chrome://global/skin/"?>
<?xml-stylesheet href="chrome://browser/skin/places/places.css"?>
<dialog id="selectBookmarkDialog"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml"
data-l10n-id="select-bookmark-window"
data-l10n-attrs="title, style"
persist="screenX screenY width height" screenX="24" screenY="24"
onload="SelectBookmarkDialog.init();"
ondialogaccept="SelectBookmarkDialog.accept();">
- <link rel="localization" href="browser/preferences/selectBookmark.ftl"/>
- <script type="application/javascript" src="chrome://global/content/l10n.js"></script>
+ <linkset>
+ <html:link rel="localization" href="browser/preferences/selectBookmark.ftl"/>
+ </linkset>
<script type="application/javascript"
src="chrome://browser/content/preferences/selectBookmark.js"/>
<script type="application/javascript"
src="chrome://global/content/globalOverlay.js"/>
<script type="application/javascript"
src="chrome://browser/content/utilityOverlay.js"/>
<description data-l10n-id="select-bookmark-desc"/>
--- a/browser/components/preferences/siteDataRemoveSelected.xul
+++ b/browser/components/preferences/siteDataRemoveSelected.xul
@@ -4,27 +4,29 @@
- License, v. 2.0. If a copy of the MPL was not distributed with this
- file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://browser/content/preferences/siteDataSettings.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/in-content/siteDataSettings.css" type="text/css"?>
<dialog id="SiteDataRemoveSelectedDialog"
+ xmlns:html="http://www.w3.org/1999/xhtml"
windowtype="Browser:SiteDataRemoveSelected"
width="500"
data-l10n-id="site-data-removing-dialog"
data-l10n-attrs="title, buttonlabelaccept"
onload="gSiteDataRemoveSelected.init();"
ondialogaccept="gSiteDataRemoveSelected.ondialogaccept(); return true;"
ondialogcancel="gSiteDataRemoveSelected.ondialogcancel(); return true;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
- <link rel="localization" href="browser/preferences/siteDataSettings.ftl"/>
- <script type="application/javascript" src="chrome://global/content/l10n.js"></script>
+ <linkset>
+ <html:link rel="localization" href="browser/preferences/siteDataSettings.ftl"/>
+ </linkset>
<script src="chrome://browser/content/preferences/siteDataRemoveSelected.js"/>
<vbox id="contentContainer">
<hbox flex="1">
<vbox>
<image class="question-icon"/>
</vbox>
--- a/browser/components/preferences/siteDataSettings.xul
+++ b/browser/components/preferences/siteDataSettings.xul
@@ -9,24 +9,26 @@
<?xml-stylesheet href="chrome://browser/content/preferences/siteDataSettings.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/in-content/siteDataSettings.css" type="text/css"?>
<window id="SiteDataSettingsDialog" windowtype="Browser:SiteDataSettings"
data-l10n-id="site-data-settings-window"
data-l10n-attrs="title"
class="windowDialog"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml"
style="width: 45em;"
onload="gSiteDataSettings.init();"
onkeypress="gSiteDataSettings.onKeyPress(event);"
persist="screenX screenY width height">
- <link rel="localization" href="branding/brand.ftl"/>
- <link rel="localization" href="browser/preferences/siteDataSettings.ftl"/>
- <script type="application/javascript" src="chrome://global/content/l10n.js"></script>
+ <linkset>
+ <html:link rel="localization" href="branding/brand.ftl"/>
+ <html:link rel="localization" href="browser/preferences/siteDataSettings.ftl"/>
+ </linkset>
<script src="chrome://browser/content/preferences/siteDataSettings.js"/>
<vbox flex="1">
<description id="settingsDescription" data-l10n-id="site-data-settings-description"/>
<separator class="thin"/>
<hbox id="searchBoxContainer">
--- a/browser/components/preferences/sitePermissions.xul
+++ b/browser/components/preferences/sitePermissions.xul
@@ -6,25 +6,27 @@
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://browser/content/preferences/sitePermissions.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css" type="text/css"?>
<window id="SitePermissionsDialog" class="windowDialog"
windowtype="Browser:SitePermissions"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml"
data-l10n-id="permissions-window"
data-l10n-attrs="title, style"
onload="gSitePermissionsManager.onLoad();"
onunload="gSitePermissionsManager.uninit();"
persist="screenX screenY width height"
onkeypress="gSitePermissionsManager.onWindowKeyPress(event);">
- <link rel="localization" href="browser/preferences/permissions.ftl"/>
- <script type="application/javascript" src="chrome://global/content/l10n.js"></script>
+ <linkset>
+ <html:link rel="localization" href="browser/preferences/permissions.ftl"/>
+ </linkset>
<script src="chrome://browser/content/preferences/sitePermissions.js"/>
<keyset>
<key data-l10n-id="permissions-close-key" modifiers="accel" oncommand="window.close();"/>
</keyset>
<vbox class="contentPane largeDialogContainer" flex="1">
--- a/browser/components/preferences/translation.xul
+++ b/browser/components/preferences/translation.xul
@@ -7,23 +7,25 @@
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/preferences/preferences.css" type="text/css"?>
<window id="TranslationDialog" class="windowDialog"
windowtype="Browser:TranslationExceptions"
data-l10n-id="translation-window"
data-l10n-attrs="title, style"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ xmlns:html="http://www.w3.org/1999/xhtml"
onload="gTranslationExceptions.onLoad();"
onunload="gTranslationExceptions.uninit();"
persist="screenX screenY width height"
onkeypress="gTranslationExceptions.onWindowKeyPress(event);">
- <link rel="localization" href="browser/preferences/translation.ftl"/>
- <script type="application/javascript" src="chrome://global/content/l10n.js"></script>
+ <linkset>
+ <html:link rel="localization" href="browser/preferences/translation.ftl"/>
+ </linkset>
<script src="chrome://browser/content/preferences/translation.js"/>
<keyset>
<key data-l10n-id="translation-close-key" modifiers="accel" oncommand="window.close();"/>
</keyset>
<vbox class="largeDialogContainer">