Bug 1703164 - convert mail/components/preferences/applicationManager.xhtml to top level <html>. r=aleca

Settings | Files & Attachments | Select a type, choose Application Details in the menu for it.

Differential Revision: https://phabricator.services.mozilla.com/D194493

--HG--
extra : rebase_source : bd662127ca9b9317d5efacadcfd22d2b36805b1f
extra : amend_source : edf218161b9e673d77fcdceee05f9261329a1141
This commit is contained in:
Magnus Melin 2023-11-24 08:03:03 +02:00
Родитель 714b50c47f
Коммит cbb00a72cd
5 изменённых файлов: 105 добавлений и 73 удалений

Просмотреть файл

@ -5,6 +5,10 @@
// applications.js
/* globals gGeneralPane */
window.addEventListener("load", event => {
gAppManagerDialog.init();
});
var gAppManagerDialog = {
_removed: [],

Просмотреть файл

@ -3,20 +3,43 @@
- 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/. -->
<!DOCTYPE window>
<window
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
<!DOCTYPE html>
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
onload="gAppManagerDialog.init();"
data-l10n-id="app-manager-window-dialog2"
scrolling="false"
style="min-width: 30em"
>
<head>
<title data-l10n-id="app-manager-dialog-title"></title>
<link rel="stylesheet" href="chrome://global/skin/global.css" />
<link rel="stylesheet" href="chrome://messenger/skin/input-fields.css" />
<link
rel="stylesheet"
href="chrome://messenger/skin/preferences/applications.css"
/>
<link
rel="localization"
href="messenger/preferences/application-manager.ftl"
/>
<script
defer="defer"
src="chrome://global/content/preferencesBindings.js"
></script>
<script
defer="defer"
src="chrome://messenger/content/preferences/general.js"
></script>
<script
defer="defer"
src="chrome://messenger/content/preferences/applicationManager.js"
></script>
</head>
<html:body
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
>
<dialog id="appManager" buttons="accept,cancel">
<script src="chrome://global/content/preferencesBindings.js" />
<script src="chrome://messenger/content/preferences/general.js" />
<script src="chrome://messenger/content/preferences/applicationManager.js" />
<commandset id="appManagerCommandSet">
<command
id="cmd_delete"
@ -38,23 +61,6 @@
src="chrome://messenger/locale/preferences/preferences.properties"
/>
<linkset>
<html:link rel="stylesheet" href="chrome://global/skin/global.css" />
<html:link
rel="stylesheet"
href="chrome://messenger/skin/input-fields.css"
/>
<html:link
rel="stylesheet"
href="chrome://messenger/skin/preferences/applications.css"
/>
<html:link
rel="localization"
href="messenger/preferences/application-manager.ftl"
/>
</linkset>
<description id="appDescription" />
<separator class="thin" />
<hbox flex="1">
@ -79,4 +85,5 @@
<html:input id="appLocation" type="text" readonly="readonly" />
</vbox>
</dialog>
</window>
</html:body>
</html>

Просмотреть файл

@ -537,7 +537,8 @@
oncommand="gGeneralPane._rebuildView();"/>
<separator class="thin"/>
<html:div id="handlersView"
preference="pref.downloads.disable_button.edit_actions">
preference="pref.downloads.disable_button.edit_actions"
search-l10n-ids="app-manager-dialog-title">
<html:table id="handlersTable">
<html:thead>
<html:tr>

Просмотреть файл

@ -2,8 +2,7 @@
# 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/.
app-manager-window-dialog2 =
.title = Application Details
app-manager-dialog-title = Application Details
remove-app-button =
.label = Remove

Просмотреть файл

@ -0,0 +1,21 @@
# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/
from fluent.migratetb import COPY_PATTERN
from fluent.migratetb.helpers import transforms_from
def migrate(ctx):
"""Bug 1703164 - mail/components/preferences/applicationManager.xhtml to top level html part {index}"""
target = reference = "mail/messenger/preferences/application-manager.ftl"
ctx.add_transforms(
target,
reference,
transforms_from(
"""
app-manager-dialog-title = {{COPY_PATTERN(from_path, "app-manager-window-dialog2.title")}}
""",
from_path="mail/messenger/preferences/application-manager.ftl",
),
)