Backed out changeset 22b989a6c91d (bug 1501900) for build bustages on a CLOSED TREE

This commit is contained in:
Andreea Pavel 2018-11-06 19:11:09 +02:00
Родитель a69d8ab823
Коммит 0a2474c679
8 изменённых файлов: 175 добавлений и 296 удалений

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

@ -156,6 +156,10 @@ let gWhitelist = [{
file: "aboutNetworking.dtd",
key: "aboutNetworking.logTutorial",
type: "single-quote",
}, {
file: "aboutdevtools.dtd",
key: "aboutDevtools.newsletter.privacy.label",
type: "single-quote",
}, {
file: "browser.dtd",
key: "addonPostInstallMessage.label",

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

@ -31,6 +31,9 @@ const GA_PARAMETERS = [
["utm_medium", "onboarding"],
];
const ABOUTDEVTOOLS_STRINGS = "chrome://devtools-startup/locale/aboutdevtools.properties";
const aboutDevtoolsBundle = Services.strings.createBundle(ABOUTDEVTOOLS_STRINGS);
const KEY_SHORTCUTS_STRINGS = "chrome://devtools-startup/locale/key-shortcuts.properties";
const keyShortcutsBundle = Services.strings.createBundle(KEY_SHORTCUTS_STRINGS);
@ -80,55 +83,55 @@ function updatePage() {
* Array of descriptors for features displayed on about:devtools.
* Each feature should contain:
* - icon: the name of the image to use
* - title: the key of the localized title (from aboutDevTools.ftl)
* - desc: the key of the localized description (from aboutDevTools.ftl)
* - title: the key of the localized title (from aboutdevtools.properties)
* - desc: the key of the localized description (from aboutdevtools.properties)
* - link: the MDN documentation link
*/
const features = [
{
icon: "chrome://devtools-startup/content/aboutdevtools/images/feature-inspector.svg",
title: "features-inspector-title",
desc: "features-inspector-desc",
title: "features.inspector.title",
desc: "features.inspector.desc",
link: "https://developer.mozilla.org/docs/Tools/Page_Inspector",
}, {
icon: "chrome://devtools-startup/content/aboutdevtools/images/feature-console.svg",
title: "features-console-title",
desc: "features-console-desc",
title: "features.console.title",
desc: "features.console.desc",
link: "https://developer.mozilla.org/docs/Tools/Web_Console",
}, {
icon: "chrome://devtools-startup/content/aboutdevtools/images/feature-debugger.svg",
title: "features-debugger-title",
desc: "features-debugger-desc",
title: "features.debugger.title",
desc: "features.debugger.desc",
link: "https://developer.mozilla.org/docs/Tools/Debugger",
}, {
icon: "chrome://devtools-startup/content/aboutdevtools/images/feature-network.svg",
title: "features-network-title",
desc: "features-network-desc",
title: "features.network.title",
desc: "features.network.desc",
link: "https://developer.mozilla.org/docs/Tools/Network_Monitor",
}, {
icon: "chrome://devtools-startup/content/aboutdevtools/images/feature-storage.svg",
title: "features-storage-title",
desc: "features-storage-desc",
title: "features.storage.title",
desc: "features.storage.desc",
link: "https://developer.mozilla.org/docs/Tools/Storage_Inspector",
}, {
icon: "chrome://devtools-startup/content/aboutdevtools/images/feature-responsive.svg",
title: "features-responsive-title",
desc: "features-responsive-desc",
title: "features.responsive.title",
desc: "features.responsive.desc",
link: "https://developer.mozilla.org/docs/Tools/Responsive_Design_Mode",
}, {
icon: "chrome://devtools-startup/content/aboutdevtools/images/feature-visualediting.svg",
title: "features-visual-editing-title",
desc: "features-visual-editing-desc",
title: "features.visualediting.title",
desc: "features.visualediting.desc",
link: "https://developer.mozilla.org/docs/Tools/Style_Editor",
}, {
icon: "chrome://devtools-startup/content/aboutdevtools/images/feature-performance.svg",
title: "features-performance-title",
desc: "features-performance-desc",
title: "features.performance.title",
desc: "features.performance.desc",
link: "https://developer.mozilla.org/docs/Tools/Performance",
}, {
icon: "chrome://devtools-startup/content/aboutdevtools/images/feature-memory.svg",
title: "features-memory-title",
desc: "features-memory-desc",
title: "features.memory.title",
desc: "features.memory.desc",
link: "https://developer.mozilla.org/docs/Tools/Memory",
},
];
@ -139,17 +142,20 @@ const features = [
function createFeatureEl(feature) {
const li = document.createElement("li");
li.classList.add("feature");
const learnMore = aboutDevtoolsBundle.GetStringFromName("features.learnMore");
const {icon, link, title, desc} = feature;
let {icon, link, title, desc} = feature;
title = aboutDevtoolsBundle.GetStringFromName(title);
desc = aboutDevtoolsBundle.GetStringFromName(desc);
// eslint-disable-next-line no-unsanitized/property
li.innerHTML =
`<a class="feature-link" href="${link}" target="_blank">
<img class="feature-icon" src="${icon}"/>
</a>
<h3 class="feature-name" data-l10n-id="${title}"></h3>
<p class="feature-desc" data-l10n-id="${desc}">
<a class="external feature-link" href="${link}"
target="_blank" data-l10n-name="learn-more"></a>
<h3 class="feature-name">${title}</h3>
<p class="feature-desc">
${desc}
<a class="external feature-link" href="${link}" target="_blank">${learnMore}</a>
</p>`;
return li;
@ -159,10 +165,10 @@ window.addEventListener("load", function() {
const inspectorShortcut = getToolboxShortcut();
const welcomeMessage = document.getElementById("welcome-message");
// Set the welcome message content with the correct keyboard shortcut for the current
// Set the welcome message content with the correct keyboard sortcut for the current
// platform.
document.l10n.setAttributes(welcomeMessage, "welcome-message",
{ shortcut: inspectorShortcut });
welcomeMessage.textContent = aboutDevtoolsBundle.formatStringFromName("welcome.message",
[inspectorShortcut], 1);
// Set the appropriate title message.
if (reason == "ContextMenu") {

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

@ -5,39 +5,39 @@
<!DOCTYPE html [
<!ENTITY % htmlDTD PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd"> %htmlDTD;
<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd"> %globalDTD;
<!ENTITY % aboutdevtoolsDTD SYSTEM "chrome://devtools-startup/locale/aboutdevtools.dtd"> %aboutdevtoolsDTD;
]>
<html xmlns="http://www.w3.org/1999/xhtml" dir="&locale.dir;">
<head>
<title data-l10n-id="head-title"></title>
<title>&aboutDevtools.headTitle;</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>a
<link rel="stylesheet" href="chrome://global/skin/in-content/common.css" type="text/css"/>
<link rel="stylesheet" href="chrome://devtools-startup/content/aboutdevtools/aboutdevtools.css" type="text/css"/>
<link rel="stylesheet" href="chrome://devtools-startup/content/aboutdevtools/subscribe.css" type="text/css"/>
<script type="application/javascript" src="chrome://devtools-startup/content/aboutdevtools/aboutdevtools.js"></script>
<script type="application/javascript" src="chrome://devtools-startup/content/aboutdevtools/subscribe.js"></script>
<link rel="localization" href="startup/aboutDevTools.ftl" />
</head>
<body>
<div id="install-page" class="wrapper" hidden="true">
<div class="box">
<div class="left-pane" />
<div class="right-pane">
<h1 class="title" id="common-title" hidden="true" data-l10n-id="enable-title"></h1>
<h1 class="title" id="inspect-title" hidden="true" data-l10n-id="enable-inspect-element-title"></h1>
<h1 class="title" id="common-title" hidden="true">&aboutDevtools.enable.title;</h1>
<h1 class="title" id="inspect-title" hidden="true">&aboutDevtools.enable.inspectElementTitle;</h1>
<!-- Include all the possible message, hidden by default
as we can't lazily load localized strings from dtd -->
<p id="about-debugging-message" hidden="true" data-l10n-id="enable-about-debugging-message"></p>
<p id="menu-message" hidden="true" data-l10n-id="enable-menu-message"></p>
<p id="key-shortcut-message" hidden="true" data-l10n-id="enable-key-shortcut-message"></p>
<p id="inspect-element-message" hidden="true" data-l10n-id="enable-inspect-element-message"></p>
<p id="about-debugging-message" hidden="true">&aboutDevtools.enable.aboutDebuggingMessage;</p>
<p id="menu-message" hidden="true">&aboutDevtools.enable.menuMessage2;</p>
<p id="key-shortcut-message" hidden="true">&aboutDevtools.enable.keyShortcutMessage;</p>
<p id="inspect-element-message" hidden="true">&aboutDevtools.enable.inspectElementMessage;</p>
<p data-l10n-id="enable-common-message"></p>
<a class="external installpage-link" href="https://developer.mozilla.org/docs/Tools" target="_blank" data-l10n-id="enable-learn-more-link"></a>
<p>&aboutDevtools.enable.commonMessage;</p>
<a class="external installpage-link" href="https://developer.mozilla.org/docs/Tools" target="_blank">&aboutDevtools.enable.learnMoreLink;</a>
<div class="buttons-container">
<button class="primary-button" id="install" data-l10n-id="enable-enable-button"></button>
<button class="default-button" id="close" data-l10n-id="enable-close-button"></button>
<button class="primary-button" id="install">&aboutDevtools.enable.enableButton;</button>
<button class="default-button" id="close">&aboutDevtools.enable.closeButton2;</button>
</div>
</div>
</div>
@ -48,15 +48,15 @@
<div class="box">
<div class="left-pane" />
<div class="right-pane">
<h1 class="title" data-l10n-id="welcome-title"></h1>
<h1 class="title" >&aboutDevtools.welcome.title;</h1>
<!-- The welcome message is dynamically updated with a keyboard shortcut at
runtime and added in aboutdevtools.js -->
<p id="welcome-message"></p>
<!-- Form dedicated to the newsletter subscription -->
<div class="newsletter">
<h2 class="newsletter-title" data-l10n-id="newsletter-title"></h2>
<p data-l10n-id="newsletter-message"></p>
<h2 class="newsletter-title">&aboutDevtools.newsletter.title;</h2>
<p>&aboutDevtools.newsletter.message;</p>
<form id="newsletter-form" name="newsletter-form" action="https://www.mozilla.org/en-US/newsletter/" method="post">
<!-- "H" stands for the HTML format (->fmt). Alternative is T for text. -->
@ -65,20 +65,18 @@
<input type="hidden" id="newsletters" name="newsletters" value="app-dev" />
<div id="newsletter-errors"></div>
<section id="newsletter-email" class="newsletter-form-section">
<input type="email" id="email" name="email" required="true" data-l10n-id="newsletter-email-placeholder" data-l10n-attrs="placeholder" />
<input type="email" id="email" name="email" required="true" placeholder="&aboutDevtools.newsletter.email.placeholder;" />
</section>
<section id="newsletter-privacy" class="newsletter-form-section">
<input type="checkbox" id="privacy" name="privacy" required="true" />
<label for="privacy" data-l10n-id="newsletter-privacy-label">
<a class="external" href="https://www.mozilla.org/privacy/" data-l10n-name="privacy-policy"></a>
</label>
<label for="privacy">&aboutDevtools.newsletter.privacy.label;</label>
</section>
<button type="submit" id="newsletter-submit" class="primary-button" data-l10n-id="newsletter-subscribe-button"></button>
<button type="submit" id="newsletter-submit" class="primary-button">&aboutDevtools.newsletter.subscribeButton;</button>
</form>
<div id="newsletter-thanks">
<h2 class="newsletter-title" data-l10n-id="newsletter-thanks-title"></h2>
<p data-l10n-id="newsletter-thanks-message"></p>
<h2 class="newsletter-title">&aboutDevtools.newsletter.thanks.title;</h2>
<p>&aboutDevtools.newsletter.thanks.message;</p>
</div>
</div>
</div>
@ -94,11 +92,11 @@
src="chrome://devtools-startup/content/aboutdevtools/images/dev-edition-logo.svg"
alt="Firefox Developer Edition logo"/>
<div class="footer-message">
<h1 class="footer-message-title" data-l10n-id="footer-title"></h1>
<p data-l10n-id="footer-message"></p>
<h1 class="footer-message-title">&aboutDevtools.footer.title;</h1>
<p>&aboutDevtools.footer.message;</p>
<a class="external footer-link"
href="https://www.mozilla.org/firefox/developer/"
target="_blank" data-l10n-id="footer-learn-more-link"></a>
target="_blank">&aboutDevtools.footer.learnMoreLink;</a>
</div>
</footer>
</div>

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

@ -1,52 +0,0 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# 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/.
head-title = About Developer Tools
enable-title = Enable Firefox Developer Tools
enable-inspect-element-title = Enable Firefox Developer Tools to use Inspect Element
enable-inspect-element-message = Examine and edit HTML and CSS with the Developer Tools Inspector.
enable-about-debugging-message = Develop and debug WebExtensions, web workers, service workers and more with Firefox Developer Tools.
enable-key-shortcut-message = You activated a Developer Tools shortcut. If that was a mistake, you can close this Tab.
enable-menu-message = Perfect your websites HTML, CSS, and JavaScript with tools like Inspector and Debugger.
enable-common-message = Firefox Developer Tools are disabled by default to give you more control over your browser.
enable-learn-more-link = Learn more about Developer Tools
enable-enable-button = Enable Developer Tools
enable-close-button = Close this Tab
welcome-title = Welcome to Firefox Developer Tools!
newsletter-title = Mozilla Developer Newsletter
newsletter-message = Get developer news, tricks and resources sent straight to your inbox.
newsletter-email-placeholder =
.placeholder = Email
newsletter-privacy-label = Im okay with Mozilla handling my info as explained in this <a data-l10n-name="privacy-policy">Privacy Policy</a>.
newsletter-subscribe-button = Subscribe
newsletter-thanks-title = Thanks!
newsletter-thanks-message = If you havent previously confirmed a subscription to a Mozilla-related newsletter you may have to do so. Please check your inbox or your spam filter for an email from us.
footer-title = Firefox Developer Edition
footer-message = Looking for more than just Developer Tools? Check out the Firefox browser that is built specifically for developers and modern workflows.
footer-learn-more-link = Learn more
features-learn-more = Learn more
features-inspector-title = Inspector
features-inspector-desc = Inspect and refine code to build pixel-perfect layouts. <a data-l10n-name="learn-more">{ features-learn-more }</a>
features-console-title = Console
features-console-desc = Track CSS, JavaScript, security and network issues. <a data-l10n-name="learn-more">{ features-learn-more }</a>
features-debugger-title = Debugger
features-debugger-desc = Powerful JavaScript debugger with support for your framework. <a data-l10n-name="learn-more">{ features-learn-more }</a>
features-network-title = Network
features-network-desc = Monitor network requests that can slow or block your site. <a data-l10n-name="learn-more">{ features-learn-more }</a>
features-storage-title = Storage
features-storage-desc = Add, modify and remove cache, cookies, databases and session data. <a data-l10n-name="learn-more">{ features-learn-more }</a>
features-responsive-title = Responsive Design Mode
features-responsive-desc = Test sites on emulated devices in your browser. <a data-l10n-name="learn-more">{ features-learn-more }</a>
features-visual-editing-title = Visual Editing
features-visual-editing-desc = Fine-tune animations, alignment and padding. <a data-l10n-name="learn-more">{ features-learn-more }</a>
features-performance-title = Performance
features-performance-desc = Unblock bottlenecks, streamline processes, optimize assets. <a data-l10n-name="learn-more">{ features-learn-more }</a>
features-memory-title = Memory
features-memory-desc = Find memory leaks and make your application zippy. <a data-l10n-name="learn-more">{ features-learn-more }</a>
# Variables:
# $shortcut (String) - The keyboard shortcut used for the tool
welcome-message = Youve successfully enabled Developer Tools! To get started, explore the Web Developer menu or open the tools with { $shortcut }.

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

@ -0,0 +1,78 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- 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/. -->
<!-- LOCALIZATION NOTE : This file contains the strings used in aboutdevtools.xhtml,
- displayed when going to about:devtools. UI depends on the value of the preference
- "devtools.enabled".
-
- "aboutDevtools.enable.*" and "aboutDevtools.newsletter.*" keys are used when DevTools
are disabled
- "aboutDevtools.welcome.*" keys are used when DevTools are enabled
- -->
<!-- LOCALIZATION NOTE (aboutDevtools.headTitle): Text of the title tag for about:devtools -->
<!ENTITY aboutDevtools.headTitle "About Developer Tools">
<!-- LOCALIZATION NOTE (aboutDevtools.enable.title): Title of the top about:devtools
- section displayed when DevTools are disabled. -->
<!ENTITY aboutDevtools.enable.title "Enable Firefox Developer Tools">
<!-- LOCALIZATION NOTE (aboutDevtools.enable.inspectElementTitle): Title of the top
- section displayed when devtools are disabled and the user triggered DevTools by using
- the Inspect Element menu item. -->
<!ENTITY aboutDevtools.enable.inspectElementTitle "Enable Firefox Developer Tools to use Inspect Element">
<!-- LOCALIZATION NOTE (aboutDevtools.enable.inspectElementMessage): Message displayed
- when users come from using the Inspect Element menu item. -->
<!ENTITY aboutDevtools.enable.inspectElementMessage
"Examine and edit HTML and CSS with the Developer Tools Inspector.">
<!-- LOCALIZATION NOTE (aboutDevtools.enable.aboutDebuggingMessage): Message displayed
- when users come from about:debugging. -->
<!ENTITY aboutDevtools.enable.aboutDebuggingMessage
"Develop and debug WebExtensions, web workers, service workers and more with Firefox Developer Tools.">
<!-- LOCALIZATION NOTE (aboutDevtools.enable.keyShortcutMessage): Message displayed when
- users pressed a DevTools key shortcut. -->
<!ENTITY aboutDevtools.enable.keyShortcutMessage
"You activated a Developer Tools shortcut. If that was a mistake, you can close this Tab.">
<!-- LOCALIZATION NOTE (aboutDevtools.enable.menuMessage2): Message displayed when users
- clicked on a "Enable Developer Tools" menu item. -->
<!ENTITY aboutDevtools.enable.menuMessage2
"Perfect your websites HTML, CSS, and JavaScript with tools like Inspector and Debugger.">
<!-- LOCALIZATION NOTE (aboutDevtools.enable.commonMessage): Generic message displayed for
- all possible entry points (keyshortcut, menu item etc). -->
<!ENTITY aboutDevtools.enable.commonMessage
"Firefox Developer Tools are disabled by default to give you more control over your browser.">
<!-- LOCALIZATION NOTE (aboutDevtools.enable.learnMoreLink): Text for the link to
- https://developer.mozilla.org/docs/Tools displayed in the top section when DevTools
- are disabled. -->
<!ENTITY aboutDevtools.enable.learnMoreLink "Learn more about Developer Tools">
<!ENTITY aboutDevtools.enable.enableButton "Enable Developer Tools">
<!ENTITY aboutDevtools.enable.closeButton2 "Close this Tab">
<!ENTITY aboutDevtools.welcome.title "Welcome to Firefox Developer Tools!">
<!ENTITY aboutDevtools.newsletter.title "Mozilla Developer Newsletter">
<!-- LOCALIZATION NOTE (aboutDevtools.newsletter.message): Subscribe form message.
- The newsletter is only available in english at the moment.
- See Bug 1415273 for support of additional languages.-->
<!ENTITY aboutDevtools.newsletter.message "Get developer news, tricks and resources sent straight to your inbox.">
<!ENTITY aboutDevtools.newsletter.email.placeholder "Email">
<!ENTITY aboutDevtools.newsletter.privacy.label "Im okay with Mozilla handling my info as explained in this <a class='external' href='https://www.mozilla.org/privacy/'>Privacy Policy</a>.">
<!ENTITY aboutDevtools.newsletter.subscribeButton "Subscribe">
<!ENTITY aboutDevtools.newsletter.thanks.title "Thanks!">
<!ENTITY aboutDevtools.newsletter.thanks.message "If you havent previously confirmed a subscription to a Mozilla-related newsletter you may have to do so. Please check your inbox or your spam filter for an email from us.">
<!ENTITY aboutDevtools.footer.title "Firefox Developer Edition">
<!ENTITY aboutDevtools.footer.message "Looking for more than just Developer Tools? Check out the Firefox browser that is built specifically for developers and modern workflows.">
<!-- LOCALIZATION NOTE (aboutDevtools.footer.learnMoreLink): Text for the link to
- https://www.mozilla.org/firefox/developer/ displayed in the footer. -->
<!ENTITY aboutDevtools.footer.learnMoreLink "Learn more">

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

@ -4,6 +4,38 @@
# LOCALIZATION NOTE These strings are used in the about:devtools page.
# LOCALIZATION NOTE (features.learnMore): The text of the learn more link displayed below
# each feature section of about:devtools. Each section presents a quick description of a
# DevTools panel/feature. The learn more link points to the associated MDN page.
features.learnMore=Learn more
features.inspector.title=Inspector
features.inspector.desc=Inspect and refine code to build pixel-perfect layouts.
features.console.title=Console
features.console.desc=Track CSS, JavaScript, security and network issues.
features.debugger.title=Debugger
features.debugger.desc=Powerful JavaScript debugger with support for your framework.
features.network.title=Network
features.network.desc=Monitor network requests that can slow or block your site.
features.storage.title=Storage
features.storage.desc=Add, modify and remove cache, cookies, databases and session data.
features.responsive.title=Responsive Design Mode
features.responsive.desc=Test sites on emulated devices in your browser.
features.visualediting.title=Visual Editing
features.visualediting.desc=Fine-tune animations, alignment and padding.
features.performance.title=Performance
features.performance.desc=Unblock bottlenecks, streamline processes, optimize assets.
features.memory.title=Memory
features.memory.desc=Find memory leaks and make your application zippy.
# LOCALIZATION NOTE (newsletter.error.common): error text displayed when the newsletter
# subscription failed. The argument will be replaced with request's status code and status
# text (e.g. "404 - Not Found")
@ -16,3 +48,7 @@ newsletter.error.unknown=An unexpected error occurred.
# LOCALIZATION NOTE (newsletter.error.timeout): error text displayed when the newsletter
# subscription timed out.
newsletter.error.timeout=Subscription request timed out.
# LOCALIZATION NOTE (welcome.message): Message displayed when devtools are enabled.
# %S will be replaced with the shortcut to toggle the DevTools toolbox.
welcome.message=Youve successfully enabled Developer Tools! To get started, explore the Web Developer menu or open the tools with %S.

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

@ -3,9 +3,6 @@
# 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/.
[localization] @AB_CD@.jar:
startup (%*.ftl)
@AB_CD@.jar:
% locale devtools-startup @AB_CD@ %locale/@AB_CD@/devtools/startup/
locale/@AB_CD@/devtools/startup/ (%*)

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

@ -1,188 +0,0 @@
from __future__ import absolute_import
import fluent.syntax.ast as FTL
from fluent.migrate.helpers import transforms_from
from fluent.migrate.helpers import VARIABLE_REFERENCE
from fluent.migrate.helpers import TERM_REFERENCE
from fluent.migrate.helpers import MESSAGE_REFERENCE
from fluent.migrate import REPLACE
from fluent.migrate import COPY
from fluent.migrate import CONCAT
def migrate(ctx):
"""Bug 1501900 - Migrate aboutdevtools to Fluent, part {index}"""
ctx.add_transforms(
"devtools/startup/aboutDevTools.ftl",
"devtools/startup/aboutDevTools.ftl",
transforms_from(
"""
head-title = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.headTitle")}
enable-title = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.enable.title")}
enable-inspect-element-title = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.enable.inspectElementTitle")}
enable-inspect-element-message = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.enable.inspectElementMessage")}
enable-about-debugging-message ={ COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.enable.aboutDebuggingMessage")}
enable-key-shortcut-message = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.enable.keyShortcutMessage")}
enable-menu-message = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.enable.menuMessage2")}
enable-common-message = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.enable.commonMessage")}
enable-learn-more-link = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.enable.learnMoreLink")}
enable-enable-button = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.enable.enableButton")}
enable-close-button = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.enable.closeButton2")}
welcome-title = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.welcome.title")}
newsletter-title = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.newsletter.title")}
newsletter-message = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.newsletter.message")}
newsletter-email-placeholder =
.placeholder = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.newsletter.email.placeholder")}
newsletter-subscribe-button = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.newsletter.subscribeButton")}
newsletter-thanks-title = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.newsletter.thanks.title")}
newsletter-thanks-message = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.newsletter.thanks.message")}
footer-title = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.footer.title")}
footer-message = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.footer.message")}
footer-learn-more-link = { COPY("devtools/startup/aboutdevtools.dtd", "aboutDevtools.footer.learnMoreLink")}
features-learn-more = { COPY("devtools/startup/aboutdevtools.properties", "features.learnMore")}
features-inspector-title = { COPY("devtools/startup/aboutdevtools.properties", "features.inspector.title")}
features-console-title = { COPY("devtools/startup/aboutdevtools.properties", "features.console.title")}
features-debugger-title = { COPY("devtools/startup/aboutdevtools.properties", "features.debugger.title")}
features-network-title = { COPY("devtools/startup/aboutdevtools.properties", "features.network.title")}
features-storage-title = { COPY("devtools/startup/aboutdevtools.properties", "features.storage.title")}
features-responsive-title = { COPY("devtools/startup/aboutdevtools.properties", "features.responsive.title")}
features-visual-editing-title = { COPY("devtools/startup/aboutdevtools.properties", "features.visualediting.title")}
features-performance-title = { COPY("devtools/startup/aboutdevtools.properties", "features.performance.title")}
features-memory-title = { COPY("devtools/startup/aboutdevtools.properties", "features.memory.title")}
"""
)
)
ctx.add_transforms(
"devtools/startup/aboutDevTools.ftl",
"devtools/startup/aboutDevTools.ftl",
[
FTL.Message(
id=FTL.Identifier("newsletter-privacy-label"),
value=REPLACE(
"devtools/startup/aboutdevtools.dtd",
"aboutDevtools.newsletter.privacy.label",
{
"<a class='external' href='https://www.mozilla.org/privacy/'>": FTL.TextElement('<a data-l10n-name="privacy-policy">')
}
)
),
FTL.Message(
id=FTL.Identifier("features-inspector-desc"),
value=CONCAT(
COPY(
"devtools/startup/aboutdevtools.properties",
"features.inspector.desc",
),
FTL.TextElement(' <a data-l10n-name="learn-more">'),
MESSAGE_REFERENCE("features-learn-more"),
FTL.TextElement("</a>")
)
),
FTL.Message(
id=FTL.Identifier("features-console-desc"),
value=CONCAT(
COPY(
"devtools/startup/aboutdevtools.properties",
"features.console.desc",
),
FTL.TextElement(' <a data-l10n-name="learn-more">'),
MESSAGE_REFERENCE("features-learn-more"),
FTL.TextElement("</a>")
)
),
FTL.Message(
id=FTL.Identifier("features-debugger-desc"),
value=CONCAT(
COPY(
"devtools/startup/aboutdevtools.properties",
"features.debugger.desc",
),
FTL.TextElement(' <a data-l10n-name="learn-more">'),
MESSAGE_REFERENCE("features-learn-more"),
FTL.TextElement("</a>")
)
),
FTL.Message(
id=FTL.Identifier("features-network-desc"),
value=CONCAT(
COPY(
"devtools/startup/aboutdevtools.properties",
"features.network.desc",
),
FTL.TextElement(' <a data-l10n-name="learn-more">'),
MESSAGE_REFERENCE("features-learn-more"),
FTL.TextElement("</a>")
)
),
FTL.Message(
id=FTL.Identifier("features-storage-desc"),
value=CONCAT(
COPY(
"devtools/startup/aboutdevtools.properties",
"features.storage.desc",
),
FTL.TextElement(' <a data-l10n-name="learn-more">'),
MESSAGE_REFERENCE("features-learn-more"),
FTL.TextElement("</a>")
)
),
FTL.Message(
id=FTL.Identifier("features-responsive-desc"),
value=CONCAT(
COPY(
"devtools/startup/aboutdevtools.properties",
"features.responsive.desc",
),
FTL.TextElement(' <a data-l10n-name="learn-more">'),
MESSAGE_REFERENCE("features-learn-more"),
FTL.TextElement("</a>")
)
),
FTL.Message(
id=FTL.Identifier("features-visual-editing-desc"),
value=CONCAT(
COPY(
"devtools/startup/aboutdevtools.properties",
"features.visualediting.desc",
),
FTL.TextElement(' <a data-l10n-name="learn-more">'),
MESSAGE_REFERENCE("features-learn-more"),
FTL.TextElement("</a>")
)
),
FTL.Message(
id=FTL.Identifier("features-performance-desc"),
value=CONCAT(
COPY(
"devtools/startup/aboutdevtools.properties",
"features.performance.desc",
),
FTL.TextElement(' <a data-l10n-name="learn-more">'),
MESSAGE_REFERENCE("features-learn-more"),
FTL.TextElement("</a>")
)
),
FTL.Message(
id=FTL.Identifier("features-memory-desc"),
value=CONCAT(
COPY(
"devtools/startup/aboutdevtools.properties",
"features.memory.desc",
),
FTL.TextElement(' <a data-l10n-name="learn-more">'),
MESSAGE_REFERENCE("features-learn-more"),
FTL.TextElement("</a>")
)
),
FTL.Message(
id=FTL.Identifier("welcome-message"),
value=REPLACE(
"devtools/startup/aboutdevtools.properties",
"welcome.message",
{
"%S": VARIABLE_REFERENCE("shortcut")
}
)
)
]
)