def migrate(ctx): """Bug 1663879 - convert full screen and pointer lock warnings to fluent, part {index}.""" ctx.add_transforms( "browser/browser/browser.ftl", "browser/browser/browser.ftl", [ FTL.Message( id=FTL.Identifier("fullscreen-warning-domain"), value=CONCAT_BEFORE_AFTER( COPY("browser/chrome/browser/browser.dtd", "fullscreenWarning.beforeDomain.label", trim=True), CONCAT( FTL.TextElement('<span data-l10n-name="domain">'), VARIABLE_REFERENCE('domain'), FTL.TextElement('</span>'), ), COPY("browser/chrome/browser/browser.dtd", "fullscreenWarning.afterDomain.label", trim=True), )) ]) ctx.add_transforms( "browser/browser/browser.ftl", "browser/browser/browser.ftl", transforms_from(""" fullscreen-warning-no-domain = { COPY(from_path, "fullscreenWarning.generic.label") } fullscreen-exit-button = { COPY(from_path, "exitDOMFullscreen.button") } fullscreen-exit-mac-button = { COPY(from_path, "exitDOMFullscreenMac.button") } """, from_path="browser/chrome/browser/browser.dtd")) ctx.add_transforms( "browser/browser/browser.ftl", "browser/browser/browser.ftl", [ FTL.Message( id=FTL.Identifier("pointerlock-warning-domain"), value=CONCAT_BEFORE_AFTER( COPY("browser/chrome/browser/browser.dtd", "pointerlockWarning.beforeDomain.label", trim=True), CONCAT( FTL.TextElement('<span data-l10n-name="domain">'), VARIABLE_REFERENCE('domain'), FTL.TextElement('</span>'), ), COPY("browser/chrome/browser/browser.dtd", "pointerlockWarning.afterDomain.label", trim=True), )) ]) ctx.add_transforms( "browser/browser/browser.ftl", "browser/browser/browser.ftl", transforms_from(""" pointerlock-warning-no-domain = { COPY(from_path, "pointerlockWarning.generic.label") } """, from_path="browser/chrome/browser/browser.dtd"))
def migrate(ctx): """Bug 1608199 - Port devtools/client/styleeditor.dtd to Fluent, part {index}.""" ctx.add_transforms( "devtools/client/styleeditor.ftl", "devtools/client/styleeditor.ftl", transforms_from( """ styleeditor-new-button = .tooltiptext = { COPY(from_path, "newButton.tooltip", trim:"True") } .accesskey = { COPY(from_path, "newButton.accesskey", trim:"True") } styleeditor-import-button = .tooltiptext = { COPY(from_path, "importButton.tooltip", trim:"True") } .accesskey = { COPY(from_path, "importButton.accesskey", trim:"True") } styleeditor-visibility-toggle = .tooltiptext = { COPY(from_path, "visibilityToggle.tooltip")} .accesskey = { COPY(from_path, "saveButton.accesskey", trim:"True") } styleeditor-save-button = { COPY(from_path, "saveButton.label", trim:"True") } .tooltiptext = { COPY(from_path, "saveButton.tooltip", trim:"True") } .accesskey = { COPY(from_path, "saveButton.accesskey", trim:"True") } styleeditor-options-button = .tooltiptext = { COPY(from_path, "optionsButton.tooltip", trim:"True") } styleeditor-media-rules = { COPY(from_path, "mediaRules.label", trim:"True") } styleeditor-editor-textbox = .data-placeholder = { COPY(from_path, "editorTextbox.placeholder", trim:"True") } styleeditor-no-stylesheet = { COPY(from_path, "noStyleSheet.label", trim:"True") } styleeditor-open-link-new-tab = .label = { COPY(from_path, "openLinkNewTab.label", trim:"True") } styleeditor-copy-url = .label = { COPY(from_path, "copyUrl.label", trim:"True") } """, from_path="devtools/client/styleeditor.dtd")) ctx.add_transforms( "devtools/client/styleeditor.ftl", "devtools/client/styleeditor.ftl", [ FTL.Message( id=FTL.Identifier("styleeditor-no-stylesheet-tip"), value=CONCAT( COPY( "devtools/client/styleeditor.dtd", "noStyleSheet-tip-start.label", ), FTL.TextElement('<a data-l10n-name="append-new-stylesheet">'), COPY( "devtools/client/styleeditor.dtd", "noStyleSheet-tip-action.label", ), FTL.TextElement("</a>"), COPY("devtools/client/styleeditor.dtd", "noStyleSheet-tip-end.label", ), ), ) ] )
def migrate(ctx): """Bug 1520924 - Remove 'update' XBL binding and convert strings to Fluent, part {index}.""" ctx.add_transforms( "toolkit/toolkit/updates/history.ftl", "toolkit/toolkit/updates/history.ftl", transforms_from(""" update-details = { COPY("toolkit/chrome/mozapps/update/updates.dtd", "update.details.label") } """)) ctx.add_transforms( "toolkit/toolkit/updates/history.ftl", "toolkit/toolkit/updates/history.ftl", [ FTL.Message(id=FTL.Identifier("update-full-build-name"), value=REPLACE( "toolkit/chrome/mozapps/update/updates.properties", "updateFullName", { "%1$S": VARIABLE_REFERENCE("name"), "%2$S": VARIABLE_REFERENCE("buildID"), }, normalize_printf=True)), FTL.Message( id=FTL.Identifier("update-installed-on"), value=CONCAT( COPY("toolkit/chrome/mozapps/update/updates.dtd", "update.installedOn.label"), FTL.TextElement(" "), VARIABLE_REFERENCE("date"), ), ), FTL.Message( id=FTL.Identifier("update-status"), value=CONCAT( COPY("toolkit/chrome/mozapps/update/updates.dtd", "update.status.label"), FTL.TextElement(" "), VARIABLE_REFERENCE("status"), ), ), ])
def migrate(ctx): """Migrate about:dialog, part {index}""" ctx.add_transforms('browser/about_dialog.ftl', 'about_dialog.ftl', [ FTL.Message(id=FTL.Identifier('update-failed'), value=CONCAT( COPY('browser/chrome/browser/aboutDialog.dtd', 'update.failed.start'), FTL.TextElement('<a>'), COPY('browser/chrome/browser/aboutDialog.dtd', 'update.failed.linkText'), FTL.TextElement('</a>'), COPY('browser/chrome/browser/aboutDialog.dtd', 'update.failed.end'))), FTL.Message(id=FTL.Identifier('channel-description'), value=CONCAT( COPY('browser/chrome/browser/aboutDialog.dtd', 'channel.description.start'), FTL.Placeable(EXTERNAL_ARGUMENT('channelname')), COPY('browser/chrome/browser/aboutDialog.dtd', 'channel.description.end'))), FTL.Message( id=FTL.Identifier('community'), value=CONCAT( REPLACE('browser/chrome/browser/aboutDialog.dtd', 'community.start2', { '&brandShortName;': MESSAGE_REFERENCE('brand-short-name') }), FTL.TextElement('<a>'), REPLACE('browser/chrome/browser/aboutDialog.dtd', 'community.mozillaLink', { '&vendorShortName;': MESSAGE_REFERENCE('vendor-short-name') }), FTL.TextElement('</a>'), COPY('browser/chrome/browser/aboutDialog.dtd', 'community.middle2'), FTL.TextElement('<a>'), COPY('browser/chrome/browser/aboutDialog.dtd', 'community.creditsLink'), FTL.TextElement('</a>'), COPY('browser/chrome/browser/aboutDialog.dtd', 'community.end3'))), ])
def migrate(ctx): """Bug 1445084 - Migrate search results pane of Preferences to Fluent, part {index}.""" ctx.add_transforms( 'browser/browser/preferences/preferences.ftl', 'browser/browser/preferences/preferences.ftl', [ FTL.Message( id=FTL.Identifier('search-input-box'), attributes=[ FTL.Attribute( FTL.Identifier('style'), CONCAT( FTL.TextElement('width: '), COPY( 'browser/chrome/browser/preferences/preferences.dtd', 'searchField.width')), ), FTL.Attribute( FTL.Identifier('placeholder'), FTL.Pattern([ FTL.Placeable( FTL.SelectExpression( expression=FTL.CallExpression( callee=FTL.Function('PLATFORM')), variants=[ FTL.Variant( key=FTL.VariantName('windows'), default=False, value=COPY( 'browser/chrome/browser/preferences/preferences.properties', 'searchInput.labelWin')), FTL.Variant( key=FTL.VariantName('other'), default=True, value=COPY( 'browser/chrome/browser/preferences/preferences.properties', 'searchInput.labelUnix')) ])) ])), ]), FTL.Message( id=FTL.Identifier('search-results-header'), value=COPY( 'browser/chrome/browser/preferences/preferences.dtd', 'paneSearchResults.title')), ])
def migrate(ctx): """Bug 1451992 - Migrate Preferences::Subdialogs::Select Bookmark to Fluent, part {index}.""" ctx.add_transforms( 'browser/browser/preferences/selectBookmark.ftl', 'browser/browser/preferences/selectBookmark.ftl', [ FTL.Message( id=FTL.Identifier('select-bookmark-window'), attributes=[ FTL.Attribute( FTL.Identifier('title'), COPY( 'browser/chrome/browser/preferences/selectBookmark.dtd', 'selectBookmark.title')), FTL.Attribute(FTL.Identifier('style'), CONCAT(FTL.TextElement('width: 32em;'))) ]), FTL.Message( id=FTL.Identifier('select-bookmark-desc'), value=COPY( 'browser/chrome/browser/preferences/selectBookmark.dtd', 'selectBookmark.label')) ])
def migrate(ctx): """Bug 1451992 - Migrate Preferences::Subdialogs::Colors to Fluent, part {index}.""" ctx.add_transforms( 'browser/browser/preferences/colors.ftl', 'browser/browser/preferences/colors.ftl', [ FTL.Message( id=FTL.Identifier('colors-window'), attributes=[ FTL.Attribute( FTL.Identifier('title'), COPY('browser/chrome/browser/preferences/colors.dtd', 'colorsDialog.title')), FTL.Attribute( FTL.Identifier('style'), FTL.Pattern(elements=[ FTL.Placeable(expression=FTL.SelectExpression( expression=FTL.CallExpression( callee=FTL.Function('PLATFORM')), variants=[ FTL.Variant( key=FTL.VariantName('macos'), default=False, value=CONCAT( FTL.TextElement('width: '), COPY( 'browser/chrome/browser/preferences/colors.dtd', 'window.macWidth'))), FTL.Variant( key=FTL.VariantName('other'), default=True, value=CONCAT( FTL.TextElement('width: '), COPY( 'browser/chrome/browser/preferences/colors.dtd', 'window.width'))) ])) ])) ]), FTL.Message(id=FTL.Identifier('colors-close-key'), attributes=[ FTL.Attribute( FTL.Identifier('key'), COPY('toolkit/chrome/global/preferences.dtd', 'windowClose.key')) ]), FTL.Message( id=FTL.Identifier('colors-page-override'), value=COPY('browser/chrome/browser/preferences/colors.dtd', 'overrideDefaultPageColors2.label'), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY('browser/chrome/browser/preferences/colors.dtd', 'overrideDefaultPageColors2.accesskey')) ]), FTL.Message( id=FTL.Identifier('colors-page-override-option-always'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY('browser/chrome/browser/preferences/colors.dtd', 'overrideDefaultPageColors.always.label')) ]), FTL.Message( id=FTL.Identifier('colors-page-override-option-auto'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY('browser/chrome/browser/preferences/colors.dtd', 'overrideDefaultPageColors.auto.label')) ]), FTL.Message( id=FTL.Identifier('colors-page-override-option-never'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY('browser/chrome/browser/preferences/colors.dtd', 'overrideDefaultPageColors.never.label'), ), ], ), FTL.Message(id=FTL.Identifier('colors-text-and-background'), value=COPY( 'browser/chrome/browser/preferences/colors.dtd', 'color')), FTL.Message( id=FTL.Identifier('colors-text-header'), value=COPY('browser/chrome/browser/preferences/colors.dtd', 'textColor2.label'), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY('browser/chrome/browser/preferences/colors.dtd', 'textColor2.accesskey')) ]), FTL.Message( id=FTL.Identifier('colors-background'), value=COPY('browser/chrome/browser/preferences/colors.dtd', 'backgroundColor2.label'), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY('browser/chrome/browser/preferences/colors.dtd', 'backgroundColor2.accesskey')) ]), FTL.Message( id=FTL.Identifier('colors-use-system'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY('browser/chrome/browser/preferences/colors.dtd', 'useSystemColors.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY('browser/chrome/browser/preferences/colors.dtd', 'useSystemColors.accesskey')) ]), FTL.Message( id=FTL.Identifier('colors-underline-links'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY('browser/chrome/browser/preferences/colors.dtd', 'underlineLinks.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY('browser/chrome/browser/preferences/colors.dtd', 'underlineLinks.accesskey')) ]), FTL.Message(id=FTL.Identifier('colors-links-header'), value=COPY( 'browser/chrome/browser/preferences/colors.dtd', 'links')), FTL.Message( id=FTL.Identifier('colors-unvisited-links'), value=COPY('browser/chrome/browser/preferences/colors.dtd', 'linkColor2.label'), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY('browser/chrome/browser/preferences/colors.dtd', 'linkColor2.accesskey')) ]), FTL.Message( id=FTL.Identifier('colors-visited-links'), value=COPY('browser/chrome/browser/preferences/colors.dtd', 'visitedLinkColor2.label'), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY('browser/chrome/browser/preferences/colors.dtd', 'visitedLinkColor2.accesskey')) ]) ])
def migrate(ctx): """Bug 1505846 Migrate about:searchreset to Fluent, part {index} """ ctx.add_transforms( "browser/browser/aboutSearchReset.ftl", "browser/browser/aboutSearchReset.ftl", transforms_from(""" tab-title = { COPY("browser/chrome/browser/aboutSearchReset.dtd", "searchreset.tabtitle") } page-title = { COPY("browser/chrome/browser/aboutSearchReset.dtd", "searchreset.pageTitle") } """)) ctx.add_transforms( "browser/browser/aboutSearchReset.ftl", "browser/browser/aboutSearchReset.ftl", [ FTL.Message(id=FTL.Identifier("page-info-outofdate"), value=REPLACE( "browser/chrome/browser/aboutSearchReset.dtd", "searchreset.pageInfo1", { "&brandShortName;": TERM_REFERENCE("-brand-short-name"), })), FTL.Message(id=FTL.Identifier("page-info-how-to-change"), value=CONCAT( COPY( "browser/chrome/browser/aboutSearchReset.dtd", "searchreset.beforelink.pageInfo2", ), FTL.TextElement('<a data-l10n-name="link">'), COPY( "browser/chrome/browser/aboutSearchReset.dtd", "searchreset.link.pageInfo2", ), FTL.TextElement("</a>"), COPY( "browser/chrome/browser/aboutSearchReset.dtd", "searchreset.afterlink.pageInfo2", ))), FTL.Message( id=FTL.Identifier("no-change-button"), attributes=[ FTL.Attribute( id=FTL.Identifier("label"), value=COPY( "browser/chrome/browser/aboutSearchReset.dtd", "searchreset.noChangeButton", )), FTL.Attribute( id=FTL.Identifier("accesskey"), value=COPY( "browser/chrome/browser/aboutSearchReset.dtd", "searchreset.noChangeButton.access", )), ]), FTL.Message( id=FTL.Identifier("change-engine-button"), attributes=[ FTL.Attribute( id=FTL.Identifier("label"), value=COPY( "browser/chrome/browser/aboutSearchReset.dtd", "searchreset.changeEngineButton", )), FTL.Attribute( id=FTL.Identifier("accesskey"), value=COPY( "browser/chrome/browser/aboutSearchReset.dtd", "searchreset.changeEngineButton.access", )), ]), FTL.Message( id=FTL.Identifier("page-info-new-search-engine"), value=CONCAT( COPY( "browser/chrome/browser/aboutSearchReset.dtd", "searchreset.selector.label", ), FTL.TextElement( ' <span data-l10n-name="default-engine">{ $searchEngine }</span>' ), )) ])
def migrate(ctx): """Bug 1438375 - Migrate Extension Controlled settings in Preferences to Fluent, part {index}.""" ctx.add_transforms( 'browser/browser/preferences/preferences.ftl', 'browser/browser/preferences/preferences.ftl', [ FTL.Message( id=FTL.Identifier('extension-controlled-homepage-override'), value=REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'extensionControlled.homepage_override2', { '%S': CONCAT( FTL.TextElement('<img data-l10n-name="icon"/> '), EXTERNAL_ARGUMENT('name')) })), FTL.Message( id=FTL.Identifier('extension-controlled-new-tab-url'), value=REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'extensionControlled.newTabURL2', { '%S': CONCAT( FTL.TextElement('<img data-l10n-name="icon"/> '), EXTERNAL_ARGUMENT('name')) })), FTL.Message( id=FTL.Identifier('extension-controlled-default-search'), value=REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'extensionControlled.defaultSearch', { '%S': CONCAT( FTL.TextElement('<img data-l10n-name="icon"/> '), EXTERNAL_ARGUMENT('name')) })), FTL.Message( id=FTL.Identifier('extension-controlled-privacy-containers'), value=REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'extensionControlled.privacy.containers', { '%S': CONCAT( FTL.TextElement('<img data-l10n-name="icon"/> '), EXTERNAL_ARGUMENT('name')) })), FTL.Message( id=FTL.Identifier( 'extension-controlled-websites-tracking-protection-mode'), value=REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'extensionControlled.websites.trackingProtectionMode', { '%S': CONCAT( FTL.TextElement('<img data-l10n-name="icon"/> '), EXTERNAL_ARGUMENT('name')) })), FTL.Message( id=FTL.Identifier('extension-controlled-proxy-config'), value=REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'extensionControlled.proxyConfig', { '%1$S': CONCAT( FTL.TextElement('<img data-l10n-name="icon"/> '), EXTERNAL_ARGUMENT('name')), '%2$S': MESSAGE_REFERENCE('-brand-short-name'), })), FTL.Message( id=FTL.Identifier('extension-controlled-enable'), value=REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'extensionControlled.enable', { '%1$S': FTL.TextElement('<img data-l10n-name="addons-icon"/>'), '%2$S': FTL.TextElement('<img data-l10n-name="menu-icon"/>'), })), FTL.Message( id=FTL.Identifier('network-proxy-connection-description'), value=REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'connectionDesc.label', { '%S': MESSAGE_REFERENCE('-brand-short-name'), })), ])
def migrate(ctx): """Bug 1451992 - Migrate Preferences::Subdialogs::Translation to Fluent, part {index}.""" ctx.add_transforms( 'browser/browser/preferences/translation.ftl', 'browser/browser/preferences/translation.ftl', [ FTL.Message( id=FTL.Identifier('translation-window'), attributes=[ FTL.Attribute( FTL.Identifier('title'), COPY( 'browser/chrome/browser/preferences/translation.dtd', 'window.title' ) ), FTL.Attribute( FTL.Identifier('style'), CONCAT( FTL.TextElement('width: '), COPY( 'browser/chrome/browser/preferences/translation.dtd', 'window.width' ) ) ) ] ), FTL.Message( id=FTL.Identifier('translation-close-key'), attributes=[ FTL.Attribute( FTL.Identifier('key'), COPY( 'browser/chrome/browser/preferences/translation.dtd', 'windowClose.key' ) ) ] ), FTL.Message( id=FTL.Identifier('translation-languages-disabled-desc'), value=COPY( 'browser/chrome/browser/preferences/translation.dtd', 'noTranslationForLanguages2.label' ) ), FTL.Message( id=FTL.Identifier('translation-languages-column'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/translation.dtd', 'treehead.languageName.label' ) ) ] ), FTL.Message( id=FTL.Identifier('translation-languages-button-remove'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/translation.dtd', 'removeLanguage.label' ) ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/translation.dtd', 'removeLanguage.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('translation-languages-button-remove-all'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/translation.dtd', 'removeAllLanguages.label' ) ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/translation.dtd', 'removeAllLanguages.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('translation-sites-disabled-desc'), value=COPY( 'browser/chrome/browser/preferences/translation.dtd', 'noTranslationForSites2.label' ) ), FTL.Message( id=FTL.Identifier('translation-sites-column'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/translation.dtd', 'treehead.siteName2.label' ) ) ] ), FTL.Message( id=FTL.Identifier('translation-sites-button-remove'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/translation.dtd', 'removeSite.label' ) ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/translation.dtd', 'removeSite.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('translation-sites-button-remove-all'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/translation.dtd', 'removeAllSites.label' ) ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/translation.dtd', 'removeAllSites.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('translation-button-close'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/translation.dtd', 'button.close.label' ) ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/translation.dtd', 'button.close.accesskey' ) ) ] ) ] )
def migrate(ctx): """Bug 1523741 - Migrate aboutTelemetry to Fluent, part {index}.""" ctx.add_transforms( "toolkit/toolkit/about/aboutTelemetry.ftl", "toolkit/toolkit/about/aboutTelemetry.ftl", transforms_from(""" about-telemetry-ping-data-source = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.pingDataSource", trim:"True") } about-telemetry-show-current-ping-data = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.showCurrentPingData", trim:"True") } about-telemetry-show-archived-ping-data = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.showArchivedPingData", trim:"True") } about-telemetry-show-subsession-data = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.showSubsessionData", trim:"True") } about-telemetry-choose-ping = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.choosePing", trim:"True") } about-telemetry-archive-ping-type = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.archivePingType", trim:"True") } about-telemetry-archive-ping-header = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.archivePingHeader", trim:"True") } about-telemetry-option-group-today = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.optionGroupToday", trim:"True") } about-telemetry-option-group-yesterday = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.optionGroupYesterday", trim:"True") } about-telemetry-option-group-older = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.optionGroupOlder", trim:"True") } about-telemetry-previous-ping = { COPY("toolkit/chrome/global/aboutTelemetry.dtd", "aboutTelemetry.previousPing", trim:"True") } about-telemetry-next-ping = { COPY("toolkit/chrome/global/aboutTelemetry.dtd", "aboutTelemetry.nextPing", trim:"True") } about-telemetry-page-title = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.pageTitle", trim:"True") } about-telemetry-more-information = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.moreInformations", trim:"True") } about-telemetry-show-in-Firefox-json-viewer = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.showInFirefoxJsonViewer", trim:"True") } about-telemetry-home-section = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.homeSection", trim:"True") } about-telemetry-general-data-section = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.generalDataSection", trim:"True") } about-telemetry-environment-data-section = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.environmentDataSection", trim:"True") } about-telemetry-session-info-section = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.sessionInfoSection", trim:"True") } about-telemetry-scalar-section = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.scalarsSection", trim:"True") } about-telemetry-keyed-scalar-section = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.keyedScalarsSection", trim:"True") } about-telemetry-histograms-section = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.histogramsSection", trim:"True") } about-telemetry-keyed-histogram-section = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.keyedHistogramsSection", trim:"True") } about-telemetry-events-section = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.eventsSection", trim:"True") } about-telemetry-simple-measurements-section = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.simpleMeasurementsSection", trim:"True") } about-telemetry-slow-sql-section = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.slowSqlSection", trim:"True") } about-telemetry-addon-details-section = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.addonDetailsSection", trim:"True") } about-telemetry-captured-stacks-section = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.capturedStacksSection", trim:"True") } about-telemetry-late-writes-section = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.lateWritesSection", trim:"True") } about-telemetry-raw-payload-section = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.rawPayloadSection", trim:"True") } about-telemetry-raw = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.raw", trim:"True") } about-telemetry-full-sql-warning = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.fullSqlWarning", trim:"True") } about-telemetry-fetch-stack-symbols = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.fetchStackSymbols", trim:"True") } about-telemetry-hide-stack-symbols = { COPY("toolkit/chrome/global/aboutTelemetry.dtd","aboutTelemetry.hideStackSymbols", trim:"True") } about-telemetry-data-type = { $channel -> [release] { COPY("toolkit/chrome/global/aboutTelemetry.properties","releaseData") } *[prerelease] { COPY("toolkit/chrome/global/aboutTelemetry.properties","prereleaseData") } } about-telemetry-upload-type = { $uploadcase -> [enabled] { COPY("toolkit/chrome/global/aboutTelemetry.properties","telemetryUploadEnabled") } *[disabled] { COPY("toolkit/chrome/global/aboutTelemetry.properties","telemetryUploadDisabled") } } about-telemetry-filter-all-placeholder = .placeholder = { COPY("toolkit/chrome/global/aboutTelemetry.properties","filterAllPlaceholder") } about-telemetry-current-ping-sidebar = { COPY("toolkit/chrome/global/aboutTelemetry.properties","currentPingSidebar") } about-telemetry-telemetry-ping-type-all = { COPY("toolkit/chrome/global/aboutTelemetry.properties","telemetryPingTypeAll") } about-telemetry-histogram-copy = { COPY("toolkit/chrome/global/aboutTelemetry.properties","histogramCopy") } about-telemetry-slow-sql-main = { COPY("toolkit/chrome/global/aboutTelemetry.properties","slowSqlMain") } about-telemetry-slow-sql-other = { COPY("toolkit/chrome/global/aboutTelemetry.properties","slowSqlOther") } about-telemetry-slow-sql-hits = { COPY("toolkit/chrome/global/aboutTelemetry.properties","slowSqlHits") } about-telemetry-slow-sql-average = { COPY("toolkit/chrome/global/aboutTelemetry.properties","slowSqlAverage") } about-telemetry-slow-sql-statement = { COPY("toolkit/chrome/global/aboutTelemetry.properties","slowSqlStatement") } about-telemetry-addon-table-id = { COPY("toolkit/chrome/global/aboutTelemetry.properties","addonTableID") } about-telemetry-addon-table-details = { COPY("toolkit/chrome/global/aboutTelemetry.properties","addonTableDetails") } about-telemetry-keys-header = { COPY("toolkit/chrome/global/aboutTelemetry.properties","keysHeader") } about-telemetry-names-header = { COPY("toolkit/chrome/global/aboutTelemetry.properties","namesHeader") } about-telemetry-values-header = { COPY("toolkit/chrome/global/aboutTelemetry.properties","valuesHeader") } about-telemetry-stack-title = { COPY("toolkit/chrome/global/aboutTelemetry.properties","stackTitle") } about-telemetry-memory-map-title = { COPY("toolkit/chrome/global/aboutTelemetry.properties","memoryMapTitle") } about-telemetry-error-fetching-symbols = { COPY("toolkit/chrome/global/aboutTelemetry.properties","errorFetchingSymbols") } about-telemetry-time-stamp-header = { COPY("toolkit/chrome/global/aboutTelemetry.properties","timestampHeader") } about-telemetry-category-header = { COPY("toolkit/chrome/global/aboutTelemetry.properties","categoryHeader") } about-telemetry-method-header = { COPY("toolkit/chrome/global/aboutTelemetry.properties","methodHeader") } about-telemetry-object-header = { COPY("toolkit/chrome/global/aboutTelemetry.properties","objectHeader") } about-telemetry-extra-header = { COPY("toolkit/chrome/global/aboutTelemetry.properties","extraHeader") } """)) ctx.add_transforms( "toolkit/toolkit/about/aboutTelemetry.ftl", "toolkit/toolkit/about/aboutTelemetry.ftl", [ FTL.Message( id=FTL.Identifier("about-telemetry-firefox-data-doc"), value=REPLACE( "toolkit/chrome/global/aboutTelemetry.dtd", "aboutTelemetry.firefoxDataDoc", { "<a>": FTL.TextElement('<a data-l10n-name="data-doc-link">'), }, trim=True)), FTL.Message( id=FTL.Identifier("about-telemetry-telemetry-client-doc"), value=REPLACE("toolkit/chrome/global/aboutTelemetry.dtd", "aboutTelemetry.telemetryClientDoc", { "<a>": FTL.TextElement( '<a data-l10n-name="client-doc-link">'), }, trim=True)), FTL.Message( id=FTL.Identifier("about-telemetry-telemetry-dashboard"), value=REPLACE( "toolkit/chrome/global/aboutTelemetry.dtd", "aboutTelemetry.telemetryDashboard", { "<a>": FTL.TextElement('<a data-l10n-name="dashboard-link">'), }, trim=True)), FTL.Message( id=FTL.Identifier( "about-telemetry-telemetry-probe-dictionary"), value=REPLACE( "toolkit/chrome/global/aboutTelemetry.dtd", "aboutTelemetry.telemetryProbeDictionary", { "<a>": FTL.TextElement( '<a data-l10n-name="probe-dictionary-link">'), }, trim=True)), FTL.Message( id=FTL.Identifier("about-telemetry-page-subtitle"), value=REPLACE( "toolkit/chrome/global/aboutTelemetry.properties", "pageSubtitle", { "%1$S": VARIABLE_REFERENCE("telemetryServerOwner"), "%2$S": TERM_REFERENCE("brand-full-name"), }, normalize_printf=True)), FTL.Message( id=FTL.Identifier("about-telemetry-settings-explanation"), value=REPLACE( "toolkit/chrome/global/aboutTelemetry.properties", "settingsExplanation", { "%1$S": MESSAGE_REFERENCE("about-telemetry-data-type"), "%2$S": CONCAT( FTL.TextElement( '<a data-l10n-name="upload-link">'), MESSAGE_REFERENCE("about-telemetry-upload-type"), FTL.TextElement("</a>")), }, normalize_printf=True)), FTL.Message( id=FTL.Identifier("about-telemetry-ping-details"), value=REPLACE( "toolkit/chrome/global/aboutTelemetry.properties", "pingDetails", { "%1$S": CONCAT( FTL.TextElement('<a data-l10n-name="ping-link">'), COPY( "toolkit/chrome/global/aboutTelemetry.properties", "pingExplanationLink"), FTL.TextElement("</a>")), "%2$S": REPLACE( "toolkit/chrome/global/aboutTelemetry.properties", "namedPing", { "%1$S": VARIABLE_REFERENCE("name"), "%2$S": VARIABLE_REFERENCE("timestamp"), }, normalize_printf=True) }, normalize_printf=True)), FTL.Message( id=FTL.Identifier("about-telemetry-ping-details-current"), value=REPLACE( "toolkit/chrome/global/aboutTelemetry.properties", "pingDetailsCurrent", { "%1$S": CONCAT( FTL.TextElement('<a data-l10n-name="ping-link">'), COPY( "toolkit/chrome/global/aboutTelemetry.properties", "pingExplanationLink"), FTL.TextElement("</a>")), "%2$S": COPY("toolkit/chrome/global/aboutTelemetry.properties", "currentPing") }, normalize_printf=True)), FTL.Message( id=FTL.Identifier("about-telemetry-filter-placeholder"), attributes=[ FTL.Attribute( id=FTL.Identifier("placeholder"), value=REPLACE( "toolkit/chrome/global/aboutTelemetry.properties", "filterPlaceholder", { "%1$S": VARIABLE_REFERENCE("selectedTitle"), }, normalize_printf=True)) ]), FTL.Message( id=FTL.Identifier("about-telemetry-results-for-search"), value=REPLACE( "toolkit/chrome/global/aboutTelemetry.properties", "resultsForSearch", { "%1$S": VARIABLE_REFERENCE("searchTerms"), }, normalize_printf=True)), FTL.Message( id=FTL.Identifier("about-telemetry-no-search-results"), value=REPLACE( "toolkit/chrome/global/aboutTelemetry.properties", "noSearchResults", { "%1$S": VARIABLE_REFERENCE("sectionName"), "%2$S": VARIABLE_REFERENCE("currentSearchText"), }, normalize_printf=True)), FTL.Message( id=FTL.Identifier("about-telemetry-no-search-results-all"), value=REPLACE( "toolkit/chrome/global/aboutTelemetry.properties", "noSearchResultsAll", { "%1$S": VARIABLE_REFERENCE("searchTerms"), }, normalize_printf=True)), FTL.Message( id=FTL.Identifier("about-telemetry-no-data-to-display"), value=REPLACE( "toolkit/chrome/global/aboutTelemetry.properties", "noDataToDisplay", { "%1$S": VARIABLE_REFERENCE("sectionName"), }, normalize_printf=True)), FTL.Message(id=FTL.Identifier("about-telemetry-addon-provider"), value=REPLACE( "toolkit/chrome/global/aboutTelemetry.properties", "addonProvider", { "%1$S": VARIABLE_REFERENCE("addonProvider"), }, normalize_printf=True)), FTL.Message( id=FTL.Identifier("about-telemetry-captured-stacks-title"), value=REPLACE( "toolkit/chrome/global/aboutTelemetry.properties", "captured-stacks-title", { "%1$S": VARIABLE_REFERENCE("stackKey"), "%2$S": VARIABLE_REFERENCE("capturedStacksCount"), }, normalize_printf=True)), FTL.Message(id=FTL.Identifier("about-telemetry-late-writes-title"), value=REPLACE( "toolkit/chrome/global/aboutTelemetry.properties", "late-writes-title", { "%1$S": VARIABLE_REFERENCE("lateWriteCount"), }, normalize_printf=True)), ])
def migrate(ctx): """Bug 1517529 - Migrate safeMode from DTD to Fluent, part {index}.""" ctx.add_transforms( 'browser/browser/safeMode.ftl', 'browser/browser/safeMode.ftl', [ FTL.Message( id=FTL.Identifier('safe-mode-window'), attributes=[ FTL.Attribute(FTL.Identifier('title'), value=REPLACE( 'browser/chrome/browser/safeMode.dtd', 'safeModeDialog.title', { "&brandShortName;": TERM_REFERENCE("brand-short-name") })), FTL.Attribute( FTL.Identifier('style'), value=CONCAT( FTL.TextElement('max-width: '), COPY('browser/chrome/browser/safeMode.dtd', 'window.maxWidth'), FTL.TextElement('px'))) ]), ]), ctx.add_transforms( 'browser/browser/safeMode.ftl', 'browser/browser/safeMode.ftl', transforms_from(""" start-safe-mode = .label = { COPY("browser/chrome/browser/safeMode.dtd", "startSafeMode.label") } """)), ctx.add_transforms( 'browser/browser/safeMode.ftl', 'browser/browser/safeMode.ftl', [ FTL.Message(id=FTL.Identifier('refresh-profile'), attributes=[ FTL.Attribute( FTL.Identifier('label'), value=REPLACE( 'browser/chrome/browser/safeMode.dtd', 'refreshProfile.label', { "&brandShortName;": TERM_REFERENCE("brand-short-name") })) ]), FTL.Message( id=FTL.Identifier('safe-mode-description'), value=REPLACE( 'browser/chrome/browser/safeMode.dtd', 'safeModeDescription3.label', {"&brandShortName;": TERM_REFERENCE("brand-short-name")})), FTL.Message( id=FTL.Identifier('safe-mode-description-details'), value=REPLACE( 'browser/chrome/browser/safeMode.dtd', 'safeModeDescription5.label', {"&brandShortName;": TERM_REFERENCE("brand-short-name")})), FTL.Message( id=FTL.Identifier('refresh-profile-instead'), value=REPLACE( 'browser/chrome/browser/safeMode.dtd', 'refreshProfileInstead.label', {"&brandShortName;": TERM_REFERENCE("brand-short-name")})), FTL.Message( id=FTL.Identifier('auto-safe-mode-description'), value=REPLACE( 'browser/chrome/browser/safeMode.dtd', 'autoSafeModeDescription3.label', {"&brandShortName;": TERM_REFERENCE("brand-short-name")})) ])
def migrate(ctx): """Bug 1451992 - Migrate Preferences::Subdialogs::Site Data to Fluent, part {index}.""" ctx.add_transforms( 'browser/browser/preferences/siteDataSettings.ftl', 'browser/browser/preferences/siteDataSettings.ftl', [ FTL.Message( id=FTL.Identifier('site-data-settings-window'), attributes=[ FTL.Attribute( FTL.Identifier('title'), COPY( 'browser/chrome/browser/preferences/siteDataSettings.dtd', 'window2.title')) ]), FTL.Message( id=FTL.Identifier('site-data-search-textbox'), attributes=[ FTL.Attribute( FTL.Identifier('placeholder'), COPY( 'browser/chrome/browser/preferences/siteDataSettings.dtd', 'searchTextboxPlaceHolder')), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/siteDataSettings.dtd', 'searchTextboxPlaceHolder.accesskey')) ]), FTL.Message( id=FTL.Identifier('site-data-column-host'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/siteDataSettings.dtd', 'hostCol.label')) ]), FTL.Message( id=FTL.Identifier('site-data-column-cookies'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/siteDataSettings.dtd', 'cookiesCol.label')) ]), FTL.Message( id=FTL.Identifier('site-data-column-storage'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/siteDataSettings.dtd', 'usageCol.label')) ]), FTL.Message( id=FTL.Identifier('site-data-column-last-used'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/siteDataSettings.dtd', 'lastAccessedCol.label')) ]), FTL.Message( id=FTL.Identifier('site-data-remove-selected'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/siteDataSettings.dtd', 'removeSelected.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/siteDataSettings.dtd', 'removeSelected.accesskey')) ]), FTL.Message( id=FTL.Identifier('site-data-button-cancel'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/siteDataSettings.dtd', 'cancel.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/siteDataSettings.dtd', 'cancel.accesskey')) ]), FTL.Message( id=FTL.Identifier('site-data-button-save'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/siteDataSettings.dtd', 'save.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/siteDataSettings.dtd', 'save.accesskey')) ]), FTL.Message( id=FTL.Identifier('site-data-removing-window'), attributes=[ FTL.Attribute( FTL.Identifier('title'), CONCAT( MESSAGE_REFERENCE('site-data-removing-header'), )) ]), FTL.Message( id=FTL.Identifier('site-data-removing-header'), value=COPY( 'browser/chrome/browser/preferences/siteDataSettings.dtd', 'removingDialog1.title')), FTL.Message( id=FTL.Identifier('site-data-removing-desc'), value=COPY( 'browser/chrome/browser/preferences/siteDataSettings.dtd', 'removingSelected1.description')), FTL.Message( id=FTL.Identifier('site-data-removing-table'), value=COPY( 'browser/chrome/browser/preferences/siteDataSettings.dtd', 'siteTree3.label')) ])
def migrate(ctx): """Bug 1491672 - Migrate About Dialog to use Fluent for localization, part {index}.""" ctx.add_transforms( "browser/browser/aboutDialog.ftl", "browser/browser/aboutDialog.ftl", transforms_from(""" releaseNotes-link = { COPY("browser/chrome/browser/aboutDialog.dtd", "releaseNotes.link") } update-checkForUpdatesButton = .label = { COPY("browser/chrome/browser/aboutDialog.dtd", "update.checkForUpdatesButton.label") } .accesskey = { COPY("browser/chrome/browser/aboutDialog.dtd", "update.checkForUpdatesButton.accesskey") } update-checkingForUpdates = { COPY("browser/chrome/browser/aboutDialog.dtd", "update.checkingForUpdates")} update-applying = { COPY("browser/chrome/browser/aboutDialog.dtd", "update.applying")} update-adminDisabled = { COPY("browser/chrome/browser/aboutDialog.dtd", "update.adminDisabled") } update-restarting = { COPY("browser/chrome/browser/aboutDialog.dtd", "update.restarting") } bottomLinks-license = { COPY("browser/chrome/browser/aboutDialog.dtd", "bottomLinks.license") } bottomLinks-rights = { COPY("browser/chrome/browser/aboutDialog.dtd", "bottomLinks.rights") } bottomLinks-privacy = { COPY("browser/chrome/browser/aboutDialog.dtd", "bottomLinks.privacy") } aboutDialog-architecture-sixtyFourBit = { COPY("browser/chrome/browser/browser.properties", "aboutDialog.architecture.sixtyFourBit") } aboutDialog-architecture-thirtyTwoBit = { COPY("browser/chrome/browser/browser.properties", "aboutDialog.architecture.thirtyTwoBit") } """)) ctx.add_transforms( "browser/browser/aboutDialog.ftl", "browser/browser/aboutDialog.ftl", [ FTL.Message(id=FTL.Identifier("aboutDialog-title"), attributes=[ FTL.Attribute( id=FTL.Identifier("title"), value=REPLACE( "browser/chrome/browser/aboutDialog.dtd", "aboutDialog.title", { "&brandFullName;": TERM_REFERENCE("-brand-full-name") })) ]), FTL.Message( id=FTL.Identifier("update-updateButton"), attributes=[ FTL.Attribute(id=FTL.Identifier("label"), value=REPLACE( "browser/chrome/browser/aboutDialog.dtd", "update.updateButton.label3", { "&brandShorterName;": TERM_REFERENCE("-brand-shorter-name") })), FTL.Attribute(id=FTL.Identifier("accesskey"), value=COPY( "browser/chrome/browser/aboutDialog.dtd", "update.updateButton.accesskey")) ]), FTL.Message(id=FTL.Identifier("update-downloading"), value=CONCAT( FTL.TextElement('<img data-l10n-name="icon"/>'), COPY("browser/chrome/browser/aboutDialog.dtd", "update.downloading.start"), FTL.TextElement( '<label data-l10n-name="download-status"/>'))), FTL.Message( id=FTL.Identifier("update-failed"), value=CONCAT( COPY("browser/chrome/browser/aboutDialog.dtd", "update.failed.start"), FTL.TextElement('<label data-l10n-name="failed-link">'), COPY("browser/chrome/browser/aboutDialog.dtd", "update.failed.linkText"), FTL.TextElement('</label>'))), FTL.Message( id=FTL.Identifier("update-failed-main"), value=CONCAT( COPY("browser/chrome/browser/aboutDialog.dtd", "update.failed.start"), FTL.TextElement('<a data-l10n-name="failed-link-main">'), COPY("browser/chrome/browser/aboutDialog.dtd", "update.failed.linkText"), FTL.TextElement('</a>'))), FTL.Message( id=FTL.Identifier("update-noUpdatesFound"), value=REPLACE( "browser/chrome/browser/aboutDialog.dtd", "update.noUpdatesFound", {"&brandShortName;": TERM_REFERENCE("-brand-short-name") })), FTL.Message( id=FTL.Identifier("update-otherInstanceHandlingUpdates"), value=REPLACE( "browser/chrome/browser/aboutDialog.dtd", "update.otherInstanceHandlingUpdates", {"&brandShortName;": TERM_REFERENCE("-brand-short-name") })), FTL.Message( id=FTL.Identifier("update-manual"), value=CONCAT( COPY("browser/chrome/browser/aboutDialog.dtd", "update.manual.start"), FTL.TextElement('<label data-l10n-name="manual-link"/>'))), FTL.Message(id=FTL.Identifier("update-unsupported"), value=CONCAT( COPY("browser/chrome/browser/aboutDialog.dtd", "update.unsupported.start"), FTL.TextElement( '<label data-l10n-name="unsupported-link">'), COPY("browser/chrome/browser/aboutDialog.dtd", "update.unsupported.linkText"), FTL.TextElement('</label>'))), FTL.Message( id=FTL.Identifier("channel-description"), value=CONCAT( COPY("browser/chrome/browser/aboutDialog.dtd", "channel.description.start"), FTL.TextElement( '<label data-l10n-name="current-channel"></label>'), COPY("browser/chrome/browser/aboutDialog.dtd", "channel.description.end"))), FTL.Message( id=FTL.Identifier("warningDesc-version"), value=REPLACE( "browser/chrome/browser/aboutDialog.dtd", "warningDesc.version", {"&brandShortName;": TERM_REFERENCE("-brand-short-name") })), FTL.Message( id=FTL.Identifier("community-exp"), value=CONCAT( FTL.TextElement( '<label data-l10n-name="community-exp-mozillaLink">'), REPLACE("browser/chrome/browser/aboutDialog.dtd", "community.exp.mozillaLink", { "&vendorShortName;": TERM_REFERENCE("-vendor-short-name") }), FTL.TextElement('</label>'), COPY("browser/chrome/browser/aboutDialog.dtd", "community.exp.middle"), FTL.TextElement( '<label data-l10n-name="community-exp-creditsLink">'), COPY("browser/chrome/browser/aboutDialog.dtd", "community.exp.creditsLink"), FTL.TextElement('</label>'), COPY("browser/chrome/browser/aboutDialog.dtd", "community.exp.end"))), FTL.Message( id=FTL.Identifier("community-2"), value=CONCAT( REPLACE("browser/chrome/browser/aboutDialog.dtd", "community.start2", { "&brandShortName;": TERM_REFERENCE("-brand-short-name") }), FTL.TextElement( '<label data-l10n-name="community-mozillaLink">'), REPLACE("browser/chrome/browser/aboutDialog.dtd", "community.mozillaLink", { "&vendorShortName;": TERM_REFERENCE("-vendor-short-name") }), FTL.TextElement('</label>'), COPY("browser/chrome/browser/aboutDialog.dtd", "community.middle2"), FTL.TextElement( '<label data-l10n-name="community-creditsLink">'), COPY("browser/chrome/browser/aboutDialog.dtd", "community.creditsLink"), FTL.TextElement('</label>'), COPY("browser/chrome/browser/aboutDialog.dtd", "community.end3"))), FTL.Message( id=FTL.Identifier("helpus"), value=CONCAT( COPY("browser/chrome/browser/aboutDialog.dtd", "helpus.start"), FTL.TextElement( '<label data-l10n-name="helpus-donateLink">'), COPY("browser/chrome/browser/aboutDialog.dtd", "helpus.donateLink"), FTL.TextElement('</label>'), COPY("browser/chrome/browser/aboutDialog.dtd", "helpus.middle"), FTL.TextElement( '<label data-l10n-name="helpus-getInvolvedLink">'), COPY("browser/chrome/browser/aboutDialog.dtd", "helpus.getInvolvedLink"), FTL.TextElement('</label>'))), ]) ctx.add_transforms( "browser/branding/official/brand.ftl", "browser/branding/official/brand.ftl", transforms_from(""" -brand-short-name = { COPY("browser/branding/official/brand.dtd", "brandShortName") } -vendor-short-name = { COPY("browser/branding/official/brand.dtd", "vendorShortName") } -brand-full-name = { COPY("browser/branding/official/brand.dtd", "brandFullName") } -brand-shorter-name = { COPY("browser/branding/official/brand.dtd", "brandShorterName") } trademarkInfo = { COPY("browser/branding/official/brand.dtd", "trademarkInfo.part1") } """))
def migrate(ctx): """Bug 1451992 - Migrate Preferences::Subdialogs::Permissions to Fluent, part {index}.""" ctx.add_transforms( 'browser/browser/preferences/permissions.ftl', 'browser/browser/preferences/permissions.ftl', [ FTL.Message( id=FTL.Identifier('permissions-window'), attributes=[ FTL.Attribute( FTL.Identifier('title'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'window.title')), FTL.Attribute( FTL.Identifier('style'), CONCAT( FTL.TextElement('width: '), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'window.width'))) ]), FTL.Message( id=FTL.Identifier('permissions-close-key'), attributes=[ FTL.Attribute( FTL.Identifier('key'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'windowClose.key')) ]), FTL.Message( id=FTL.Identifier('permissions-address'), value=COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'address2.label'), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'address2.accesskey')) ]), FTL.Message( id=FTL.Identifier('permissions-block'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'block.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'block.accesskey')) ]), FTL.Message( id=FTL.Identifier('permissions-session'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'session.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'session.accesskey')) ]), FTL.Message( id=FTL.Identifier('permissions-allow'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'allow.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'allow.accesskey')) ]), FTL.Message( id=FTL.Identifier('permissions-site-name'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'treehead.sitename2.label')) ]), FTL.Message( id=FTL.Identifier('permissions-status'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'treehead.status.label')) ]), FTL.Message( id=FTL.Identifier('permissions-remove'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'removepermission2.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'removepermission2.accesskey')) ]), FTL.Message( id=FTL.Identifier('permissions-remove-all'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'removeallpermissions2.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'removeallpermissions2.accesskey')) ]), FTL.Message( id=FTL.Identifier('permissions-button-cancel'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'button.cancel.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'button.cancel.accesskey')) ]), FTL.Message( id=FTL.Identifier('permissions-button-ok'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'button.ok.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'button.ok.accesskey')) ]), FTL.Message( id=FTL.Identifier('permissions-searchbox'), attributes=[ FTL.Attribute( FTL.Identifier('placeholder'), COPY( 'browser/chrome/browser/preferences/permissions.dtd', 'searchbox.placeholder')) ]) ])
def migrate(ctx): """Bug 1556895 - Migrate newtab.properties to onboarding.ftl, part {index}""" ctx.add_transforms( TARGET_FILE, SOURCE_FILE, transforms_from( """ onboarding-sync-welcome-content = { COPY(from_path, "firstrun_content") } onboarding-sync-welcome-learn-more-link = { COPY(from_path, "firstrun_learn_more_link") } onboarding-sync-form-invalid-input = { COPY(from_path, "firstrun_invalid_input") } onboarding-sync-form-header = { COPY(from_path, "firstrun_form_header") } onboarding-sync-form-input = .placeholder = { COPY(from_path, "firstrun_email_input_placeholder") } onboarding-sync-form-continue-button = { COPY(from_path, "firstrun_continue_to_login") } onboarding-sync-form-skip-login-button = { COPY(from_path, "firstrun_skip_login") } onboarding-cards-dismiss = .title = { COPY(from_path, "menu_action_dismiss") } .aria-label = { COPY(from_path, "menu_action_dismiss") } """, from_path='browser/chrome/browser/activity-stream/newtab.properties' )) ctx.add_transforms(TARGET_FILE, SOURCE_FILE, [ FTL.Message( id=FTL.Identifier("onboarding-sync-welcome-header"), value=REPLACE( "browser/chrome/browser/activity-stream/newtab.properties", "firstrun_title", {"Firefox": TERM_REFERENCE("brand-product-name")}, )), FTL.Message( id=FTL.Identifier("onboarding-sync-legal-notice"), value=REPLACE( "browser/chrome/browser/activity-stream/newtab.properties", "firstrun_extra_legal_links", { "{terms}": CONCAT( FTL.TextElement('<a data-l10n-name="terms">'), COPY( "browser/chrome/browser/activity-stream/newtab.properties", "firstrun_terms_of_service"), FTL.TextElement("</a>")), "{privacy}": CONCAT( FTL.TextElement('<a data-l10n-name="privacy">'), COPY( "browser/chrome/browser/activity-stream/newtab.properties", "firstrun_privacy_notice"), FTL.TextElement("</a>")) }, )), FTL.Message( id=FTL.Identifier("onboarding-sync-form-sub-header"), value=REPLACE( "browser/chrome/browser/activity-stream/newtab.properties", "firstrun_form_sub_header", {"Firefox Sync": TERM_REFERENCE("sync-brand-name")}, )), ])
def migrate(ctx): """Bug 1605217 - Migrate Identity Panel to Fluent., part {index}""" ctx.add_transforms( "browser/browser/browser.ftl", "browser/browser/browser.ftl", transforms_from(""" identity-connection-not-secure = { COPY(path1, "identity.connectionNotSecure2") } identity-connection-secure = { COPY(path1, "identity.connectionSecure3") } identity-connection-file = { COPY(path1, "identity.connectionFile") } identity-extension-page = { COPY(path1, "identity.extensionPage") } identity-custom-root = { COPY(path1, "identity.customRoot") } identity-passive-loaded = { COPY(path1, "identity.passiveLoaded") } identity-active-loaded = { COPY(path1, "identity.activeLoaded") } identity-weak-encryption = { COPY(path1, "identity.weakEncryption") } identity-insecure-login-forms = { COPY(path1, "identity.insecureLoginForms2") } identity-permissions = .value = { COPY(path1, "identity.permissions3") } identity-permissions-reload-hint = { COPY(path1, "identity.permissionsReloadHint") } identity-permissions-empty = { COPY(path1, "identity.permissionsEmpty") } identity-clear-site-data = .label = { COPY(path1, "identity.clearSiteData") } identity-connection-not-secure-security-view = { COPY(path1, "identity.connectionNotSecureSecurityView") } identity-connection-verified = { COPY(path1, "identity.connectionVerified3") } identity-ev-owner-label = { COPY(path1, "identity.evOwnerLabel2") } identity-remove-cert-exception = .label = { COPY(path1, "identity.removeCertException.label") } .accesskey = { COPY(path1, "identity.removeCertException.accesskey") } identity-description-insecure = { COPY(path1, "identity.description.insecure") } identity-description-insecure-login-forms = { COPY(path1, "identity.description.insecureLoginForms") } identity-description-weak-cipher-intro = { COPY(path1, "identity.description.weakCipher") } identity-description-weak-cipher-risk = { COPY(path1, "identity.description.weakCipher2") } identity-description-passive-loaded = { COPY(path1, "identity.description.passiveLoaded") } identity-description-passive-loaded-insecure = { COPY(path1, "identity.description.passiveLoaded2") } <label data-l10n-name="link">{ COPY(path1, "identity.learnMore") }</label> identity-description-active-loaded = { COPY(path1, "identity.description.activeLoaded") } identity-description-active-loaded-insecure = { COPY(path1, "identity.description.activeLoaded2") } identity-learn-more = .value = { COPY(path1, "identity.learnMore") } identity-disable-mixed-content-blocking = .label = { COPY(path1, "identity.disableMixedContentBlocking.label") } .accesskey = { COPY(path1, "identity.disableMixedContentBlocking.accesskey") } identity-enable-mixed-content-blocking = .label = { COPY(path1, "identity.enableMixedContentBlocking.label") } .accesskey = { COPY(path1, "identity.enableMixedContentBlocking.accesskey") } identity-more-info-link-text = .label = { COPY(path1, "identity.moreInfoLinkText2") } """, path1="browser/chrome/browser/browser.dtd")) ctx.add_transforms( "browser/browser/browser.ftl", "browser/browser/browser.ftl", [ FTL.Message( id=FTL.Identifier("identity-connection-internal"), value=REPLACE( "browser/chrome/browser/browser.dtd", "identity.connectionInternal", {"&brandShortName;": TERM_REFERENCE("brand-short-name")}, )), FTL.Message( id=FTL.Identifier("identity-active-blocked"), value=REPLACE( "browser/chrome/browser/browser.dtd", "identity.activeBlocked", {"&brandShortName;": TERM_REFERENCE("brand-short-name")}, )), FTL.Message( id=FTL.Identifier("identity-description-active-blocked"), value=CONCAT( REPLACE( "browser/chrome/browser/browser.dtd", "identity.description.activeBlocked", { "&brandShortName;": TERM_REFERENCE("brand-short-name") }, ), FTL.TextElement(' <label data-l10n-name="link">'), COPY( "browser/chrome/browser/browser.dtd", "identity.learnMore", ), FTL.TextElement('</label>'), )), FTL.Message(id=FTL.Identifier("identity-description-custom-root"), value=CONCAT( REPLACE( "browser/chrome/browser/browser.dtd", "identity.description.customRoot", { "&brandShortName;": TERM_REFERENCE("brand-short-name") }, ), FTL.TextElement(' <label data-l10n-name="link">'), COPY( "browser/chrome/browser/browser.dtd", "identity.learnMore", ), FTL.TextElement('</label>'), )), FTL.Message( id=FTL.Identifier("identity-description-passive-loaded-mixed"), value=CONCAT( REPLACE( "browser/chrome/browser/browser.dtd", "identity.description.passiveLoaded3", { "&brandShortName;": TERM_REFERENCE("brand-short-name") }, ), FTL.TextElement(' <label data-l10n-name="link">'), COPY( "browser/chrome/browser/browser.dtd", "identity.learnMore", ), FTL.TextElement('</label>'), )), ])
def migrate(ctx): """ Bug 1504751 - Migrate about:Networking to Fluent, part {index}. """ ctx.add_transforms( "toolkit/toolkit/about/aboutNetworking.ftl", "toolkit/toolkit/about/aboutNetworking.ftl", transforms_from(""" title = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.title")} warning = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.warning")} show-next-time-checkbox = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.showNextTime")} ok = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.ok")} http = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.HTTP")} sockets = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.sockets")} dns = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.dns")} websockets = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.websockets")} refresh = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.refresh")} auto-refresh = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.autoRefresh")} hostname = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.hostname")} port = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.port")} http2 = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.http2")} ssl = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.ssl")} active = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.active")} idle = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.idle")} host = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.host")} tcp = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.tcp")} sent = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.sent")} received = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.received")} family = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.family")} trr = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.trr")} addresses = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.addresses")} expires = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.expires")} messages-sent = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.messagesSent")} messages-received = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.messagesReceived")} bytes-sent = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.bytesSent")} bytes-received = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.bytesReceived")} logging = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.logging")} current-log-file = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.currentLogFile")} current-log-modules = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.currentLogModules")} set-log-file = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.setLogFile")} set-log-modules = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.setLogModules")} start-logging = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.startLogging")} stop-logging = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.stopLogging")} dns-lookup = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.dnsLookup")} dns-lookup-button = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.dnsLookupButton")} dns-lookup-table-column = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.dnsLookupTableColumn")} rcwn = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.rcwn")} rcwn-status = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.rcwnStatus")} rcwn-cache-won-count = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.rcwnCacheWonCount")} rcwn-net-won-count = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.rcwnNetWonCount")} total-network-requests = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.totalNetworkRequests")} rcwn-operation = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.rcwnOperation")} rcwn-perf-open = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.rcwnPerfOpen")} rcwn-perf-read = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.rcwnPerfRead")} rcwn-perf-write = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.rcwnPerfWrite")} rcwn-perf-entry-open = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.rcwnPerfEntryOpen")} rcwn-avg-short = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.rcwnAvgShort")} rcwn-avg-long = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.rcwnAvgLong")} rcwn-std-dev-long = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.rcwnStddevLong")} rcwn-cache-slow = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.rcwnCacheSlow")} rcwn-cache-not-slow = { COPY("toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.rcwnCacheNotSlow")} """)) ctx.add_transforms( "toolkit/toolkit/about/aboutNetworking.ftl", "toolkit/toolkit/about/aboutNetworking.ftl", [ FTL.Message( id=FTL.Identifier("log-tutorial"), value=REPLACE( "toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.logTutorial", { "href='https://developer.mozilla.org/docs/Mozilla/Debugging/HTTP_logging'": FTL.TextElement('data-l10n-name="logging"') })), FTL.Message(id=FTL.Identifier("dns-domain"), value=CONCAT( COPY( "toolkit/chrome/global/aboutNetworking.dtd", "aboutNetworking.dnsDomain", ), FTL.TextElement(":"), )) ])
def migrate(ctx): """Bug 1508131 - Migrate about:serviceworkers to use Fluent for localization, part {index}.""" ctx.add_transforms( "toolkit/toolkit/about/aboutServiceWorkers.ftl", "toolkit/toolkit/about/aboutServiceWorkers.ftl", transforms_from(""" about-service-workers-title = { COPY("toolkit/chrome/global/aboutServiceWorkers.dtd", "aboutServiceWorkers.title") } about-service-workers-main-title = { COPY("toolkit/chrome/global/aboutServiceWorkers.dtd", "aboutServiceWorkers.maintitle") } about-service-workers-warning-not-enabled = { COPY("toolkit/chrome/global/aboutServiceWorkers.dtd", "aboutServiceWorkers.warning_not_enabled") } about-service-workers-warning-no-service-workers = { COPY("toolkit/chrome/global/aboutServiceWorkers.dtd", "aboutServiceWorkers.warning_no_serviceworkers") } update-button = { COPY("toolkit/chrome/global/aboutServiceWorkers.properties", "update") } unregister-button = { COPY("toolkit/chrome/global/aboutServiceWorkers.properties", "unregister") } unregister-error = { COPY("toolkit/chrome/global/aboutServiceWorkers.properties", "unregisterError") } waiting = { COPY("toolkit/chrome/global/aboutServiceWorkers.properties", "waiting") } """)) ctx.add_transforms( "toolkit/toolkit/about/aboutServiceWorkers.ftl", "toolkit/toolkit/about/aboutServiceWorkers.ftl", [ FTL.Message( id=FTL.Identifier("origin-title"), value=REPLACE( "toolkit/chrome/global/aboutServiceWorkers.properties", "title", { "%S": VARIABLE_REFERENCE("originTitle"), }, )), FTL.Message( id=FTL.Identifier("app-title"), value=REPLACE( "toolkit/chrome/global/aboutServiceWorkers.properties", "b2gtitle", { "%1$S": TERM_REFERENCE("-brand-short-name"), "%2$S": VARIABLE_REFERENCE("appId"), "%3$S": VARIABLE_REFERENCE("isInIsolatedElement"), }, )), FTL.Message( id=FTL.Identifier("scope"), value=CONCAT( FTL.TextElement('<strong>'), COPY( "toolkit/chrome/global/aboutServiceWorkers.properties", "scope"), FTL.TextElement('</strong> { $name }'), )), FTL.Message( id=FTL.Identifier("script-spec"), value=CONCAT( FTL.TextElement('<strong>'), COPY( "toolkit/chrome/global/aboutServiceWorkers.properties", "scriptSpec"), FTL.TextElement( '</strong> <a data-l10n-name="link">{ $url }</a>'), )), FTL.Message( id=FTL.Identifier("current-worker-url"), value=CONCAT( FTL.TextElement('<strong>'), COPY( "toolkit/chrome/global/aboutServiceWorkers.properties", "currentWorkerURL"), FTL.TextElement( '</strong> <a data-l10n-name="link">{ $url }</a>'), )), FTL.Message( id=FTL.Identifier("active-cache-name"), value=CONCAT( FTL.TextElement('<strong>'), COPY( "toolkit/chrome/global/aboutServiceWorkers.properties", "activeCacheName"), FTL.TextElement('</strong> { $name }'))), FTL.Message( id=FTL.Identifier("waiting-cache-name"), value=CONCAT( FTL.TextElement('<strong>'), COPY( "toolkit/chrome/global/aboutServiceWorkers.properties", "waitingCacheName"), FTL.TextElement('</strong> { $name }'))), FTL.Message( id=FTL.Identifier("push-end-point-waiting"), value=CONCAT( FTL.TextElement('<strong>'), COPY( "toolkit/chrome/global/aboutServiceWorkers.properties", "pushEndpoint"), FTL.TextElement('</strong> { waiting }'))), FTL.Message( id=FTL.Identifier("push-end-point-result"), value=CONCAT( FTL.TextElement('<strong>'), COPY( "toolkit/chrome/global/aboutServiceWorkers.properties", "pushEndpoint"), FTL.TextElement('</strong> { $name }'))), ])
def migrate(ctx): """Bug 1451992 - Migrate Preferences::Subdialogs::Connection to Fluent, part {index}.""" ctx.add_transforms( 'browser/browser/preferences/connection.ftl', 'browser/browser/preferences/connection.ftl', [ FTL.Message( id=FTL.Identifier('connection-window'), attributes=[ FTL.Attribute( FTL.Identifier('title'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'connectionsDialog.title' ) ), FTL.Attribute( FTL.Identifier('style'), FTL.Pattern( elements=[ FTL.Placeable( expression=FTL.SelectExpression( expression=FTL.CallExpression( callee=FTL.Function('PLATFORM') ), variants=[ FTL.Variant( key=FTL.VariantName('macos'), default=False, value=CONCAT( FTL.TextElement('width: '), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'window.macWidth2' ) ) ), FTL.Variant( key=FTL.VariantName('other'), default=True, value=CONCAT( FTL.TextElement('width: '), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'window.width2' ) ) ) ] ) ) ] ) ) ] ), FTL.Message( id=FTL.Identifier('connection-close-key'), attributes=[ FTL.Attribute( FTL.Identifier('key'), COPY( 'toolkit/chrome/global/preferences.dtd', 'windowClose.key' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-disable-extension'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/main.dtd', 'disableExtension.label' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-configure'), value=COPY( 'browser/chrome/browser/preferences/connection.dtd', 'proxyTitle.label2' ) ), FTL.Message( id=FTL.Identifier('connection-proxy-option-no'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'noProxyTypeRadio.label' ) ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'noProxyTypeRadio.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-option-system'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'systemTypeRadio.label' ) ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'systemTypeRadio.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-option-auto'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'WPADTypeRadio.label' ) ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'WPADTypeRadio.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-option-manual'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'manualTypeRadio2.label' ) ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'manualTypeRadio2.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-http'), value=COPY( 'browser/chrome/browser/preferences/connection.dtd', 'http2.label' ), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'http2.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-http-port'), value=COPY( 'browser/chrome/browser/preferences/connection.dtd', 'port2.label' ), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'HTTPport.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-http-share'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'shareproxy.label' ) ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'shareproxy.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-ssl'), value=COPY( 'browser/chrome/browser/preferences/connection.dtd', 'ssl2.label' ), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'ssl2.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-ssl-port'), value=COPY( 'browser/chrome/browser/preferences/connection.dtd', 'port2.label' ), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'SSLport.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-ftp'), value=COPY( 'browser/chrome/browser/preferences/connection.dtd', 'ftp2.label' ), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'ftp2.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-ftp-port'), value=COPY( 'browser/chrome/browser/preferences/connection.dtd', 'port2.label' ), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'FTPport.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-socks'), value=COPY( 'browser/chrome/browser/preferences/connection.dtd', 'socks2.label' ), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'socks2.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-socks-port'), value=COPY( 'browser/chrome/browser/preferences/connection.dtd', 'port2.label' ), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'SOCKSport.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-socks4'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'socks4.label' ) ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'socks4.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-socks5'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'socks5.label' ) ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'socks5.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-noproxy'), value=COPY( 'browser/chrome/browser/preferences/connection.dtd', 'noproxy2.label' ), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'noproxy2.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-noproxy-desc'), value=COPY( 'browser/chrome/browser/preferences/connection.dtd', 'noproxyExplain.label' ) ), FTL.Message( id=FTL.Identifier('connection-proxy-autotype'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'autoTypeRadio2.label' ) ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'autoTypeRadio2.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-reload'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'reload.label' ) ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'reload.accesskey' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-autologin'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'autologinproxy.label' ) ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'autologinproxy.accesskey' ) ), FTL.Attribute( FTL.Identifier('tooltip'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'autologinproxy.tooltip' ) ) ] ), FTL.Message( id=FTL.Identifier('connection-proxy-socks-remote-dns'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'socksRemoteDNS.label2' ) ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/connection.dtd', 'socksRemoteDNS.accesskey' ) ) ] ) ] )
def migrate(ctx): """Bug 1445084 - Migrate search results pane of Preferences to Fluent, part {index}.""" ctx.add_transforms( 'browser/browser/preferences/preferences.ftl', 'browser/browser/preferences/preferences.ftl', [ FTL.Message( id=FTL.Identifier('search-input-box'), attributes=[ FTL.Attribute( FTL.Identifier('style'), CONCAT( FTL.TextElement('width: '), COPY( 'browser/chrome/browser/preferences/preferences.dtd', 'searchField.width')), ), FTL.Attribute( FTL.Identifier('placeholder'), FTL.Pattern([ FTL.Placeable( FTL.SelectExpression( expression=FTL.CallExpression( callee=FTL.Identifier('PLATFORM')), variants=[ FTL.Variant( key=FTL.VariantName('windows'), default=False, value=COPY( 'browser/chrome/browser/preferences/preferences.properties', 'searchInput.labelWin')), FTL.Variant( key=FTL.VariantName('other'), default=True, value=COPY( 'browser/chrome/browser/preferences/preferences.properties', 'searchInput.labelUnix')) ])) ])), ]), FTL.Message( id=FTL.Identifier('search-results-header'), value=COPY( 'browser/chrome/browser/preferences/preferences.dtd', 'paneSearchResults.title')), FTL.Message( id=FTL.Identifier('search-results-sorry-message'), value=FTL.Pattern(elements=[ FTL.Placeable(expression=FTL.SelectExpression( expression=FTL.CallExpression( callee=FTL.Identifier('PLATFORM')), variants=[ FTL.Variant( key=FTL.VariantName('windows'), default=False, value=REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'searchResults.sorryMessageWin', {'%S': FTL.TextElement("<span></span>")}, )), FTL.Variant( key=FTL.VariantName('other'), default=True, value=REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'searchResults.sorryMessageUnix', {'%S': FTL.TextElement("<span></span>")}, )) ])) ]), ), FTL.Message( id=FTL.Identifier('search-results-need-help'), value=REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'searchResults.needHelp3', { '%S': CONCAT( FTL.TextElement('<a>'), REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'searchResults.needHelpSupportLink', { '%S': MESSAGE_REFERENCE('-brand-short-name'), }, ), FTL.TextElement('</a>'), ), }, ), ), ])
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")})) ])
def migrate(ctx): """Bug 1419547 - Migrate Preferences::Containers to Fluent, part {index}.""" ctx.add_transforms( 'browser/browser/preferences/preferences.ftl', 'browser/browser/preferences/preferences.ftl', [ FTL.Message( id=FTL.Identifier('containers-back-link'), value=COPY('browser/chrome/browser/preferences/containers.dtd', 'backLink2.label')), FTL.Message( id=FTL.Identifier('containers-header'), value=COPY( 'browser/chrome/browser/preferences/preferences.dtd', 'paneContainers.title', )), FTL.Message( id=FTL.Identifier('containers-add-button'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.dtd', 'addButton.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/containers.dtd', 'addButton.accesskey')), ]), FTL.Message( id=FTL.Identifier('containers-preferences-button'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.dtd', 'preferencesButton.label')), ]), FTL.Message( id=FTL.Identifier('containers-remove-button'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.dtd', 'removeButton.label')), ]), ]) ctx.add_transforms('browser/browser/preferences/containers.ftl', 'browser/browser/preferences/containers.ftl', [ FTL. Message( id=FTL.Identifier('containers-window-new'), attributes=[ FTL. Attribute( FTL. Identifier('title'), COPY( 'browser/chrome/browser/preferences/containers.dtd', 'window.title', ), ), FTL. Attribute( FTL. Identifier('style'), CONCAT( FTL. TextElement('width: '), COPY( 'browser/chrome/browser/preferences/containers.dtd', 'window.width', ), ), ), ], ), FTL. Message( id=FTL.Identifier('containers-window-update'), attributes=[ FTL. Attribute( FTL. Identifier('title'), REPLACE( 'browser/chrome/browser/preferences/containers.properties', 'containers.updateContainerTitle', {'%S': EXTERNAL_ARGUMENT('name')}, ), ), FTL. Attribute( FTL. Identifier('style'), COPY( 'browser/chrome/browser/preferences/containers.dtd', 'window.width', ), ), ], ), FTL. Message( id=FTL.Identifier('containers-window-close'), attributes=[ FTL. Attribute( FTL .Identifier('key'), COPY( 'browser/chrome/browser/preferences/containers.dtd', 'windowClose.key', ), ), ], ), FTL. Term( id=FTL.Identifier('-containers-labels-style'), value=CONCAT( FTL. TextElement('min-width: '), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.labelMinWidth', ), ), ), FTL. Message( id=FTL.Identifier('containers-name-label'), value=COPY( 'browser/chrome/browser/preferences/containers.dtd', 'name2.label', ), attributes=[ FTL. Attribute( FTL. Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/containers.dtd', 'name2.accesskey', ), ), FTL. Attribute( FTL. Identifier('style'), CONCAT(MESSAGE_REFERENCE('-containers-labels-style'), )), ], ), FTL. Message( id=FTL.Identifier('containers-name-text'), attributes=[ FTL. Attribute( FTL. Identifier('placeholder'), COPY( 'browser/chrome/browser/preferences/containers.dtd', 'name.placeholder', ), ), ], ), FTL. Message( id=FTL.Identifier('containers-icon-label'), value=COPY( 'browser/chrome/browser/preferences/containers.dtd', 'icon2.label', ), attributes=[ FTL. Attribute( FTL. Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/containers.dtd', 'icon2.accesskey', ), ), FTL. Attribute( FTL. Identifier('style'), CONCAT(MESSAGE_REFERENCE('-containers-labels-style'), )), ], ), FTL. Message( id=FTL.Identifier('containers-color-label'), value=COPY( 'browser/chrome/browser/preferences/containers.dtd', 'color2.label', ), attributes=[ FTL. Attribute( FTL. Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/containers.dtd', 'color2.accesskey', ), ), FTL. Attribute( FTL. Identifier('style'), CONCAT(MESSAGE_REFERENCE('-containers-labels-style'), )), ], ), FTL. Message( id=FTL.Identifier('containers-button-done'), attributes=[ FTL. Attribute( FTL. Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.dtd', 'button.ok.label', ), ), FTL. Attribute( FTL. Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/containers.dtd', 'button.ok.accesskey', ), ), ], ), FTL. Message( id=FTL.Identifier('containers-remove-alert-title'), value=COPY( 'browser/chrome/browser/preferences/preferences.properties', 'removeContainerAlertTitle', ), ), FTL. Message( id=FTL.Identifier('containers-remove-alert-msg'), value=PLURALS( 'browser/chrome/browser/preferences/preferences.properties', 'removeContainerMsg', EXTERNAL_ARGUMENT('count'), lambda text: REPLACE_IN_TEXT(text, {'#S': EXTERNAL_ARGUMENT('count')})) ), FTL. Message( id=FTL.Identifier('containers-remove-ok-button'), value=COPY( 'browser/chrome/browser/preferences/preferences.properties', 'removeContainerOkButton', ), ), FTL. Message( id=FTL.Identifier('containers-remove-cancel-button'), value=COPY( 'browser/chrome/browser/preferences/preferences.properties', 'removeContainerButton2', ), ), FTL. Message( id=FTL.Identifier('containers-color-blue'), attributes=[ FTL. Attribute( FTL. Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.blue.label', ), ), ], ), FTL. Message( id=FTL.Identifier('containers-color-turquoise'), attributes=[ FTL. Attribute( FTL. Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.turquoise.label', ), ), ], ), FTL. Message( id=FTL.Identifier('containers-color-green'), attributes=[ FTL. Attribute( FTL. Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.green.label', ), ), ], ), FTL. Message( id=FTL.Identifier('containers-color-yellow'), attributes=[ FTL. Attribute( FTL. Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.yellow.label', ), ), ], ), FTL. Message( id=FTL.Identifier('containers-color-orange'), attributes=[ FTL. Attribute( FTL. Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.orange.label', ), ), ], ), FTL. Message( id=FTL.Identifier('containers-color-red'), attributes=[ FTL. Attribute( FTL. Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.red.label', ), ), ], ), FTL. Message( id=FTL.Identifier('containers-color-pink'), attributes=[ FTL. Attribute( FTL. Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.pink.label', ), ), ], ), FTL. Message( id=FTL.Identifier('containers-color-purple'), attributes=[ FTL. Attribute( FTL. Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.purple.label', ), ), ], ), FTL. Message( id=FTL.Identifier('containers-icon-fingerprint'), attributes=[ FTL. Attribute( FTL. Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.fingerprint.label', ), ), ], ), FTL. Message( id=FTL.Identifier('containers-icon-briefcase'), attributes=[ FTL. Attribute( FTL. Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.briefcase.label', ), ), ], ), FTL. Message( id=FTL.Identifier('containers-icon-dollar'), attributes=[ FTL. Attribute( FTL. Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.dollar.label', ), ), ], ), FTL. Message( id=FTL.Identifier('containers-icon-cart'), attributes=[ FTL. Attribute( FTL. Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.cart.label', ), ), ], ), FTL. Message( id=FTL.Identifier('containers-icon-circle'), attributes=[ FTL. Attribute( FTL. Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.circle.label', ), ), ], ), FTL. Message( id=FTL.Identifier('containers-icon-vacation'), attributes=[ FTL. Attribute( FTL. Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.vacation.label', ), ), ], ), FTL. Message( id=FTL.Identifier('containers-icon-gift'), attributes=[ FTL. Attribute( FTL. Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.gift.label', ), ), ], ), FTL. Message( id=FTL.Identifier('containers-icon-food'), attributes=[ FTL. Attribute( FTL. Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.food.label', ), ), ], ), FTL.Message( id=FTL.Identifier('containers-icon-fruit'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.fruit.label', ), ), ], ), FTL.Message( id=FTL.Identifier('containers-icon-pet'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.pet.label', ), ), ], ), FTL.Message( id=FTL.Identifier('containers-icon-tree'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.tree.label', ), ), ], ), FTL.Message( id=FTL.Identifier('containers-icon-chill'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/containers.properties', 'containers.chill.label', ), ), ], ), ])
def migrate(ctx): """Bug 1451992 - Migrate Preferences::Subdialogs::Languages to Fluent, part {index}.""" ctx.add_transforms( 'browser/browser/preferences/languages.ftl', 'browser/browser/preferences/languages.ftl', [ FTL.Message( id=FTL.Identifier('languages-window'), attributes=[ FTL.Attribute( FTL.Identifier('title'), COPY( 'browser/chrome/browser/preferences/languages.dtd', 'languages.customize.Header')), FTL.Attribute( FTL.Identifier('style'), CONCAT( FTL.TextElement('width: '), COPY( 'browser/chrome/browser/preferences/languages.dtd', 'window.width'))) ]), FTL.Message(id=FTL.Identifier('languages-close-key'), attributes=[ FTL.Attribute( FTL.Identifier('key'), COPY('toolkit/chrome/global/preferences.dtd', 'windowClose.key')) ]), FTL.Message(id=FTL.Identifier('languages-description'), value=COPY( 'browser/chrome/browser/preferences/languages.dtd', 'languages.customize2.description')), FTL.Message( id=FTL.Identifier('languages-customize-spoof-english'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/languages.dtd', 'languages.customize.spoofEnglish')) ]), FTL.Message( id=FTL.Identifier('languages-customize-moveup'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/languages.dtd', 'languages.customize.moveUp.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/languages.dtd', 'languages.customize.moveUp.accesskey')) ]), FTL.Message( id=FTL.Identifier('languages-customize-movedown'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/languages.dtd', 'languages.customize.moveDown.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/languages.dtd', 'languages.customize.moveDown.accesskey')) ]), FTL.Message( id=FTL.Identifier('languages-customize-remove'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/languages.dtd', 'languages.customize.deleteButton.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/languages.dtd', 'languages.customize.deleteButton.accesskey')) ]), FTL.Message( id=FTL.Identifier('languages-customize-select-language'), attributes=[ FTL.Attribute( FTL.Identifier('placeholder'), COPY( 'browser/chrome/browser/preferences/languages.dtd', 'languages.customize.selectLanguage.label')), ]), FTL.Message( id=FTL.Identifier('languages-customize-add'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/languages.dtd', 'languages.customize.addButton.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/languages.dtd', 'languages.customize.addButton.accesskey')) ]) ])
def migrate(ctx): """Bug 1491677 - Migrate subsection of strings of extensions.dtd, part {index}""" ctx.add_transforms( "toolkit/toolkit/about/aboutAddons.ftl", "toolkit/toolkit/about/aboutAddons.ftl", transforms_from(""" addons-window = .title = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "addons.windowTitle")} search-header = .placeholder = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "search.placeholder3")} .searchbuttonlabel = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "search.buttonlabel")} search-header-shortcut = .key = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "search.commandkey")} loading-label = .value = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "loading.label")} list-empty-installed = .value = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "listEmpty.installed.label")} list-empty-available-updates = .value ={ COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "listEmpty.availableUpdates.label")} list-empty-recent-updates = .value = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "listEmpty.recentUpdates.label")} list-empty-find-updates = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "listEmpty.findUpdates.label")} list-empty-button = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "listEmpty.button.label")} install-addon-from-file = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "installAddonFromFile.label")} .accesskey = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "installAddonFromFile.accesskey")} help-button = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "helpButton.label")} tools-menu = .tooltiptext = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "toolsMenu.tooltip")} show-unsigned-extensions-button = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "showUnsignedExtensions.button.label")} show-all-extensions-button = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "showAllExtensions.button.label")} debug-addons = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "debugAddons.label")} .accesskey = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "debugAddons.accesskey")} cmd-show-details = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "cmd.showDetails.label")} .accesskey = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "cmd.showDetails.accesskey")} cmd-find-updates = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "cmd.findUpdates.label")} .accesskey = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "cmd.findUpdates.accesskey")} cmd-enable-theme = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "cmd.enableTheme.label")} .accesskey = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "cmd.enableTheme.accesskey")} cmd-disable-theme = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "cmd.disableTheme.label")} .accesskey = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "cmd.disableTheme.accesskey")} cmd-install-addon = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "cmd.installAddon.label")} .accesskey = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "cmd.installAddon.accesskey")} cmd-contribute = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "cmd.contribute.label")} .accesskey = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "cmd.contribute.accesskey")} .tooltiptext = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "cmd.contribute.tooltip")} discover-title = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "discover.title")} discover-footer = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "discover.footer", trim:"True")} detail-version = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.version.label")} detail-last-updated = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.lastupdated.label")} detail-contributions-description = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.contributions.description")} detail-update-type = .value = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.updateType")} detail-update-default = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.updateDefault.label")} .tooltiptext = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.updateDefault.tooltip")} detail-update-automatic = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.updateAutomatic.label")} .tooltiptext = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.updateAutomatic.tooltip")} detail-update-manual = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.updateManual.label")} .tooltiptext = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.updateManual.tooltip")} detail-home = .label ={ COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.home")} detail-repository = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.repository")} detail-check-for-updates = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.checkForUpdates.label")} .accesskey = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.checkForUpdates.accesskey")} .tooltiptext = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.checkForUpdates.tooltip")} detail-rating = .value = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "rating2.label")} addon-restart-now = .label = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "addon.restartNow.label")} disabled-unsigned-heading = .value = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "disabledUnsigned.heading")} disabled-unsigned-learn-more = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "disabledUnsigned.learnMore")} legacy-warning-show-legacy = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "legacyWarning.showLegacy")} legacy-extensions = .value = { COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "legacyExtensions.title")} """)) ctx.add_transforms( "toolkit/toolkit/about/aboutAddons.ftl", "toolkit/toolkit/about/aboutAddons.ftl", [ FTL.Message( id=FTL.Identifier("preferences"), value=FTL.Pattern(elements=[ FTL.Placeable(expression=FTL.SelectExpression( selector=FTL.CallExpression(callee=FTL.Function( "PLATFORM"), ), variants=[ FTL.Variant( key=FTL.Identifier("windows"), default=False, value=REPLACE( "toolkit/chrome/mozapps/extensions/extensions.dtd", "preferencesWin.label", { "&brandShortName;": TERM_REFERENCE("-brand-short-name") })), FTL.Variant( key=FTL.Identifier("other"), default=True, value=REPLACE( "toolkit/chrome/mozapps/extensions/extensions.dtd", "preferencesUnix.label", { "&brandShortName;": TERM_REFERENCE("-brand-short-name") })) ])) ])), FTL.Message( id=FTL.Identifier("cmd-preferences"), attributes=[ FTL.Attribute( id=FTL.Identifier("label"), value=FTL.Pattern(elements=[ FTL.Placeable(expression=FTL.SelectExpression( selector=FTL.CallExpression( callee=FTL.Function("PLATFORM"), ), variants=[ FTL.Variant( key=FTL.Identifier("windows"), default=False, value=COPY( "toolkit/chrome/mozapps/extensions/extensions.dtd", "cmd.preferencesWin.label")), FTL.Variant( key=FTL.Identifier("other"), default=True, value=COPY( "toolkit/chrome/mozapps/extensions/extensions.dtd", "cmd.preferencesUnix.label")) ])) ])), FTL.Attribute( id=FTL.Identifier("accesskey"), value=FTL.Pattern(elements=[ FTL.Placeable(expression=FTL.SelectExpression( selector=FTL.CallExpression( callee=FTL.Function("PLATFORM"), ), variants=[ FTL.Variant( key=FTL.Identifier("windows"), default=False, value=COPY( "toolkit/chrome/mozapps/extensions/extensions.dtd", "cmd.preferencesWin.accesskey")), FTL.Variant( key=FTL.Identifier("other"), default=True, value=COPY( "toolkit/chrome/mozapps/extensions/extensions.dtd", "cmd.preferencesUnix.accesskey")) ])) ])) ]), FTL.Message( id=FTL.Identifier("discover-description"), value=REPLACE( "toolkit/chrome/mozapps/extensions/extensions.dtd", "discover.description2", {"&brandShortName;": TERM_REFERENCE("-brand-short-name")}, trim=True)), FTL.Message(id=FTL.Identifier("detail-home-value"), attributes=[ FTL.Attribute( id=FTL.Identifier("value"), value=FTL.Pattern(elements=[ FTL.Placeable(expression=MESSAGE_REFERENCE( "detail-home.label")) ])) ]), FTL.Message(id=FTL.Identifier("detail-repository-value"), attributes=[ FTL.Attribute( id=FTL.Identifier("value"), value=FTL.Pattern(elements=[ FTL.Placeable(expression=MESSAGE_REFERENCE( "detail-repository.label")) ])) ]), FTL.Message( id=FTL.Identifier("detail-show-preferences"), attributes=[ FTL.Attribute( id=FTL.Identifier("label"), value=FTL.Pattern(elements=[ FTL.Placeable(expression=FTL.SelectExpression( selector=FTL.CallExpression( callee=FTL.Function("PLATFORM"), ), variants=[ FTL.Variant( key=FTL.Identifier("windows"), default=False, value=COPY( "toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.showPreferencesWin.label") ), FTL.Variant( key=FTL.Identifier("other"), default=True, value=COPY( "toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.showPreferencesUnix.label") ) ])) ])), FTL.Attribute( id=FTL.Identifier("accesskey"), value=FTL.Pattern(elements=[ FTL.Placeable(expression=FTL.SelectExpression( selector=FTL.CallExpression( callee=FTL.Function("PLATFORM"), ), variants=[ FTL.Variant( key=FTL.Identifier("windows"), default=False, value=COPY( "toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.showPreferencesWin.accesskey" )), FTL.Variant( key=FTL.Identifier("other"), default=True, value=COPY( "toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.showPreferencesUnix.accesskey" )) ])) ])), FTL.Attribute( id=FTL.Identifier("tooltiptext"), value=FTL.Pattern(elements=[ FTL.Placeable(expression=FTL.SelectExpression( selector=FTL.CallExpression( callee=FTL.Function("PLATFORM"), ), variants=[ FTL.Variant( key=FTL.Identifier("windows"), default=False, value=COPY( "toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.showPreferencesWin.tooltip" )), FTL.Variant( key=FTL.Identifier("other"), default=True, value=COPY( "toolkit/chrome/mozapps/extensions/extensions.dtd", "detail.showPreferencesUnix.tooltip" )) ])) ])) ]), FTL.Message( id=FTL.Identifier("disabled-unsigned-description"), value=CONCAT( REPLACE("toolkit/chrome/mozapps/extensions/extensions.dtd", "disabledUnsigned.description.start", { "&brandShortName;": TERM_REFERENCE("-brand-short-name") }), FTL.TextElement('<label data-l10n-name="find-addons">'), COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "disabledUnsigned.description.findAddonsLink"), FTL.TextElement("</label>"), COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "disabledUnsigned.description.end"))), FTL.Message( id=FTL.Identifier("disabled-unsigned-devinfo"), value=CONCAT( COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "disabledUnsigned.devInfo.start"), FTL.TextElement('<label data-l10n-name="learn-more">'), COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "disabledUnsigned.devInfo.linkToManual"), FTL.TextElement("</label>"), COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "disabledUnsigned.devInfo.end"))), FTL.Message( id=FTL.Identifier("plugin-deprecation-description"), value=CONCAT( REPLACE("toolkit/chrome/mozapps/extensions/extensions.dtd", "pluginDeprecation.description", { "&brandShortName;": TERM_REFERENCE("-brand-short-name") }), FTL.TextElement(' <label data-l10n-name="learn-more">'), COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "pluginDeprecation.learnMore"), FTL.TextElement("</label>"))), FTL.Message( id=FTL.Identifier("legacy-extensions-description"), value=CONCAT( REPLACE("toolkit/chrome/mozapps/extensions/extensions.dtd", "legacyExtensions.description", { "&brandShortName;": TERM_REFERENCE("-brand-short-name") }), FTL.TextElement( ' <label data-l10n-name="legacy-learn-more">'), COPY("toolkit/chrome/mozapps/extensions/extensions.dtd", "legacyExtensions.learnMore"), FTL.TextElement("</label>"))) ])
def migrate(ctx): """Bug 1517528 - Migrate aboutPrivateBrowsing from DTD to Fluent, part {index}""" ctx.add_transforms( 'browser/browser/aboutPrivateBrowsing.ftl', 'browser/browser/aboutPrivateBrowsing.ftl', transforms_from(""" about-private-browsing-info-visited = { COPY("browser/chrome/browser/aboutPrivateBrowsing.dtd", "aboutPrivateBrowsing.info.visited") } about-private-browsing-search-placeholder = { COPY("browser/chrome/browser/aboutPrivateBrowsing.dtd", "aboutPrivateBrowsing.search.placeholder") } about-private-browsing-info-bookmarks = { COPY("browser/chrome/browser/aboutPrivateBrowsing.dtd", "aboutPrivateBrowsing.info.bookmarks") } about-private-browsing-info-title = { COPY("browser/chrome/browser/aboutPrivateBrowsing.dtd", "aboutPrivateBrowsing.info.title") } about-private-browsing-info-downloads = { COPY("browser/chrome/browser/aboutPrivateBrowsing.dtd", "aboutPrivateBrowsing.info.downloads") } about-private-browsing-info-searches = { COPY("browser/chrome/browser/aboutPrivateBrowsing.dtd", "aboutPrivateBrowsing.info.searches") } private-browsing-title = { COPY("browser/chrome/browser/aboutPrivateBrowsing.dtd", "privateBrowsing.title") } about-private-browsing-not-private = { COPY("browser/chrome/browser/aboutPrivateBrowsing.dtd", "aboutPrivateBrowsing.notPrivate") } content-blocking-title = { COPY("browser/chrome/browser/browser.dtd", "contentBlocking.title") } about-private-browsing-info-myths = { COPY("browser/chrome/browser/aboutPrivateBrowsing.dtd", "aboutPrivateBrowsing.info.myths") } about-private-browsing-info-clipboard = { COPY("browser/chrome/browser/aboutPrivateBrowsing.dtd", "aboutPrivateBrowsing.info.clipboard") } about-private-browsing-info-temporary-files = { COPY("browser/chrome/browser/aboutPrivateBrowsing.dtd", "aboutPrivateBrowsing.info.temporaryFiles") } about-private-browsing-info-cookies = { COPY("browser/chrome/browser/aboutPrivateBrowsing.dtd", "aboutPrivateBrowsing.info.cookies") } tracking-protection-start-tour = { COPY("browser/chrome/browser/aboutPrivateBrowsing.dtd", "trackingProtection.startTour1") } """)), ctx.add_transforms( 'browser/browser/aboutPrivateBrowsing.ftl', 'browser/browser/aboutPrivateBrowsing.ftl', [ FTL.Message( id=FTL.Identifier('about-private-browsing-learn-more'), value=CONCAT( COPY('browser/chrome/browser/aboutPrivateBrowsing.dtd', 'aboutPrivateBrowsing.learnMore3.before'), FTL.TextElement('<a data-l10n-name="learn-more">'), COPY('browser/chrome/browser/aboutPrivateBrowsing.dtd', 'aboutPrivateBrowsing.learnMore3.title'), FTL.TextElement('</a>'), COPY('browser/chrome/browser/aboutPrivateBrowsing.dtd', 'aboutPrivateBrowsing.learnMore3.after'))), FTL.Message( id=FTL.Identifier( 'privatebrowsingpage-open-private-window-label'), value=COPY( 'browser/chrome/browser/aboutPrivateBrowsing.dtd', 'privatebrowsingpage.openPrivateWindow.label', ), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/aboutPrivateBrowsing.dtd', 'privatebrowsingpage.openPrivateWindow.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('about-private-browsing-info-notsaved'), value=CONCAT( REPLACE('browser/chrome/browser/aboutPrivateBrowsing.dtd', 'aboutPrivateBrowsing.info.notsaved.before', {"Firefox": TERM_REFERENCE("brand-short-name")}), FTL.TextElement('<strong>'), COPY('browser/chrome/browser/aboutPrivateBrowsing.dtd', 'aboutPrivateBrowsing.info.notsaved.emphasize'), FTL.TextElement('</strong>'), COPY('browser/chrome/browser/aboutPrivateBrowsing.dtd', 'aboutPrivateBrowsing.info.notsaved.after'))), FTL.Message( id=FTL.Identifier('about-private-browsing-info-saved'), value=CONCAT( REPLACE('browser/chrome/browser/aboutPrivateBrowsing.dtd', 'aboutPrivateBrowsing.info.saved.before', {"Firefox": TERM_REFERENCE("brand-short-name")}), FTL.TextElement('<strong>'), COPY('browser/chrome/browser/aboutPrivateBrowsing.dtd', 'aboutPrivateBrowsing.info.saved.emphasize'), FTL.TextElement('</strong>'), COPY('browser/chrome/browser/aboutPrivateBrowsing.dtd', 'aboutPrivateBrowsing.info.saved.after2'))), FTL.Message( id=FTL.Identifier('about-private-browsing-note'), value=CONCAT( COPY('browser/chrome/browser/aboutPrivateBrowsing.dtd', 'aboutPrivateBrowsing.note.before'), FTL.TextElement('<strong>'), COPY('browser/chrome/browser/aboutPrivateBrowsing.dtd', 'aboutPrivateBrowsing.note.emphasize'), FTL.TextElement('</strong>'), COPY('browser/chrome/browser/aboutPrivateBrowsing.dtd', 'aboutPrivateBrowsing.note.after'))), FTL.Message( id=FTL.Identifier('about-private-browsing'), attributes=[ FTL.Attribute( FTL.Identifier('title'), COPY( 'browser/chrome/browser/aboutPrivateBrowsing.dtd', 'aboutPrivateBrowsing.search.placeholder', ), ), ], ), FTL.Message( id=FTL.Identifier('about-private-browsing-info-description'), value=REPLACE( 'browser/chrome/browser/aboutPrivateBrowsing.dtd', 'aboutPrivateBrowsing.info.description', {"&brandShortName;": TERM_REFERENCE("brand-short-name")})), FTL.Message(id=FTL.Identifier('content-blocking-description'), value=REPLACE( 'browser/chrome/browser/aboutPrivateBrowsing.dtd', 'contentBlocking.description', {"Firefox": TERM_REFERENCE("brand-short-name")})), ])
def migrate(ctx): """Bug 1549561 - Migrate strings from pipnss.properties to aboutCertError.ftl""" ctx.add_transforms( 'browser/browser/aboutCertError.ftl', 'browser/browser/aboutCertError.ftl', transforms_from( """ cert-error-mitm-intro = { COPY(from_path, "certErrorMitM") } cert-error-trust-unknown-issuer-intro = { COPY(from_path, "certErrorTrust_UnknownIssuer4") } cert-error-trust-cert-invalid = { COPY(from_path, "certErrorTrust_CaInvalid") } cert-error-trust-untrusted-issuer = { COPY(from_path, "certErrorTrust_Issuer") } cert-error-trust-signature-algorithm-disabled = { COPY(from_path, "certErrorTrust_SignatureAlgorithmDisabled") } cert-error-trust-expired-issuer = { COPY(from_path, "certErrorTrust_ExpiredIssuer") } cert-error-trust-self-signed = { COPY(from_path, "certErrorTrust_SelfSigned") } cert-error-trust-symantec = { COPY(from_path, "certErrorTrust_Symantec1") } cert-error-untrusted-default = { COPY(from_path, "certErrorTrust_Untrusted") } """, from_path="security/manager/chrome/pipnss/pipnss.properties")) ctx.add_transforms( 'browser/browser/aboutCertError.ftl', 'browser/browser/aboutCertError.ftl', [ FTL.Message( id=FTL.Identifier('cert-error-intro'), value=REPLACE( 'security/manager/chrome/pipnss/pipnss.properties', 'certErrorIntro', { "%1$S": VARIABLE_REFERENCE("hostname"), }, normalize_printf=True ) ), FTL.Message( id=FTL.Identifier('cert-error-mitm-mozilla'), value=REPLACE( 'security/manager/chrome/pipnss/pipnss.properties', 'certErrorMitM2', { "%1$S": TERM_REFERENCE("brand-short-name"), }, normalize_printf=True ) ), FTL.Message( id=FTL.Identifier('cert-error-mitm-connection'), value=REPLACE( 'security/manager/chrome/pipnss/pipnss.properties', 'certErrorMitM3', { "%1$S": TERM_REFERENCE("brand-short-name"), }, normalize_printf=True ) ), FTL.Message( id=FTL.Identifier('cert-error-trust-unknown-issuer'), value=REPLACE( 'security/manager/chrome/pipnss/pipnss.properties', 'certErrorTrust_UnknownIssuer6', { "%1$S": TERM_REFERENCE("brand-short-name"), "%2$S": VARIABLE_REFERENCE("hostname"), }, normalize_printf=True ) ), FTL.Message( id=FTL.Identifier('cert-error-domain-mismatch'), value=REPLACE( 'security/manager/chrome/pipnss/pipnss.properties', 'certErrorMismatch3', { "%1$S": TERM_REFERENCE("brand-short-name"), "%2$S": VARIABLE_REFERENCE("hostname"), }, normalize_printf=True ) ), FTL.Message( id=FTL.Identifier('cert-error-domain-mismatch-single-nolink'), value=CONCAT( REPLACE( 'security/manager/chrome/pipnss/pipnss.properties', 'certErrorMismatchSinglePrefix3', { "%1$S": TERM_REFERENCE("brand-short-name"), "%2$S": VARIABLE_REFERENCE("hostname"), }, normalize_printf=True ), FTL.TextElement(' '), REPLACE( 'security/manager/chrome/pipnss/pipnss.properties', 'certErrorMismatchSinglePrefix', { "%1$S": VARIABLE_REFERENCE("alt-name"), }, normalize_printf=True ), ), ), FTL.Message( id=FTL.Identifier('cert-error-domain-mismatch-single'), value=CONCAT( REPLACE( 'security/manager/chrome/pipnss/pipnss.properties', 'certErrorMismatchSinglePrefix3', { "%1$S": TERM_REFERENCE("brand-short-name"), "%2$S": VARIABLE_REFERENCE("hostname"), }, normalize_printf=True ), FTL.TextElement(' '), REPLACE( 'security/manager/chrome/pipnss/pipnss.properties', 'certErrorMismatchSinglePrefix', { "%S": CONCAT( FTL.TextElement('<a data-l10n-name="domain-mismatch-link">'), VARIABLE_REFERENCE("alt-name"), FTL.TextElement('</a>'), ), }, ), ), ), FTL.Message( id=FTL.Identifier('cert-error-domain-mismatch-multiple'), value=CONCAT( REPLACE( 'security/manager/chrome/pipnss/pipnss.properties', 'certErrorMismatchMultiple3', { "%1$S": TERM_REFERENCE("brand-short-name"), "%2$S": VARIABLE_REFERENCE("hostname"), }, normalize_printf=True ), FTL.TextElement(' '), VARIABLE_REFERENCE("subject-alt-names"), ), ), FTL.Message( id=FTL.Identifier('cert-error-expired-now'), value=REPLACE( 'security/manager/chrome/pipnss/pipnss.properties', 'certErrorExpiredNow3', { "%1$S": VARIABLE_REFERENCE("hostname"), "%2$S": VARIABLE_REFERENCE("not-after-local-time"), }, normalize_printf=True ), ), FTL.Message( id=FTL.Identifier('cert-error-not-yet-valid-now'), value=REPLACE( 'security/manager/chrome/pipnss/pipnss.properties', 'certErrorNotYetValidNow3', { "%1$S": VARIABLE_REFERENCE("hostname"), "%2$S": VARIABLE_REFERENCE("not-before-local-time"), }, normalize_printf=True ), ), FTL.Message( id=FTL.Identifier('cert-error-code-prefix-link'), value=REPLACE( 'security/manager/chrome/pipnss/pipnss.properties', 'certErrorCodePrefix3', { "%1$S": CONCAT( FTL.TextElement('<a data-l10n-name="error-code-link">'), VARIABLE_REFERENCE("error"), FTL.TextElement('</a>'), ), }, normalize_printf=True ), ), ] )
def migrate(ctx): """Bug 1519923 - Migrate about:rights to Fluent, part {index}.""" ctx.add_transforms( "toolkit/toolkit/about/aboutRights.ftl", "toolkit/toolkit/about/aboutRights.ftl", transforms_from(""" rights-title = { COPY(from_path, "rights.title") } rights-intro-point-4-unbranded = { COPY(from_path, "rights.intro-point3-unbranded") } rights-safebrowsing-term-1 = { COPY(from_path, "rights.safebrowsing-term1") } rights-safebrowsing-term-2 = { COPY(from_path, "rights.safebrowsing-term2") } rights-safebrowsing-term-4 = { COPY(from_path, "rights.safebrowsing-term4") } rights-locationawarebrowsing-term-2 = { COPY(from_path, "rights.locationawarebrowsing-term2") } rights-locationawarebrowsing-term-3 = { COPY(from_path, "rights.locationawarebrowsing-term3") } rights-locationawarebrowsing-term-4 = { COPY(from_path, "rights.locationawarebrowsing-term4") } rights-webservices-unbranded = { COPY(from_path, "rights.webservices-unbranded") } rights-webservices-term-unbranded = { COPY(from_path, "rights.webservices-term1-unbranded") } rights-webservices-term-7 = { COPY(from_path, "rights.webservices-term7") } enableSafeBrowsing-label = { COPY("browser/chrome/browser/preferences/security.dtd", "enableSafeBrowsing.label")} """, from_path="toolkit/chrome/global/aboutRights.dtd")) ctx.add_transforms( "toolkit/toolkit/about/aboutRights.ftl", "toolkit/toolkit/about/aboutRights.ftl", [ FTL.Message( id=FTL.Identifier("rights-intro"), value=REPLACE( "toolkit/chrome/global/aboutRights.dtd", "rights.intro", {"&brandFullName;": TERM_REFERENCE("brand-full-name")})), FTL.Message( id=FTL.Identifier("rights-intro-point-1"), value=CONCAT( REPLACE("toolkit/chrome/global/aboutRights.dtd", "rights.intro-point1a", { "&brandShortName;": TERM_REFERENCE("brand-short-name") }), FTL.TextElement( '<a data-l10n-name="mozilla-public-license-link">'), COPY("toolkit/chrome/global/aboutRights.dtd", "rights.intro-point1b"), FTL.TextElement('</a>'), REPLACE("toolkit/chrome/global/aboutRights.dtd", "rights.intro-point1c", { "&brandShortName;": TERM_REFERENCE("brand-short-name") }))), FTL.Message( id=FTL.Identifier("rights-intro-point-2"), value=CONCAT( COPY("toolkit/chrome/global/aboutRights.dtd", "rights.intro-point2-a"), FTL.TextElement( '<a data-l10n-name="mozilla-trademarks-link">'), COPY("toolkit/chrome/global/aboutRights.dtd", "rights.intro-point2-b"), FTL.TextElement('</a>'), COPY("toolkit/chrome/global/aboutRights.dtd", "rights.intro-point2-c"))), FTL.Message( id=FTL.Identifier("rights-intro-point-3"), value=REPLACE( "toolkit/chrome/global/aboutRights.dtd", "rights.intro-point2.5", { "&brandShortName;": TERM_REFERENCE("brand-short-name"), "&vendorShortName;": TERM_REFERENCE("vendor-short-name") })), FTL.Message( id=FTL.Identifier("rights-intro-point-4"), value=CONCAT( REPLACE( "toolkit/chrome/global/aboutRights.dtd", "rights2.intro-point3a", { "&vendorShortName;": TERM_REFERENCE("vendor-short-name"), "&brandShortName;": TERM_REFERENCE("brand-short-name") }), FTL.TextElement( '<a data-l10n-name="mozilla-privacy-policy-link">'), REPLACE("toolkit/chrome/global/aboutRights.dtd", "rights2.intro-point3b", { "&brandShortName;": TERM_REFERENCE("brand-short-name") }), FTL.TextElement('</a>'), COPY("toolkit/chrome/global/aboutRights.dtd", "rights.intro-point3c"))), FTL.Message( id=FTL.Identifier("rights-intro-point-5"), value=CONCAT( REPLACE("toolkit/chrome/global/aboutRights.dtd", "rights2.intro-point4a", { "&brandShortName;": TERM_REFERENCE("brand-short-name") }), FTL.TextElement( '<a data-l10n-name="mozilla-service-terms-link">'), COPY("toolkit/chrome/global/aboutRights.dtd", "rights.intro-point4b"), FTL.TextElement('</a>'), COPY("toolkit/chrome/global/aboutRights.dtd", "rights.intro-point4c"))), FTL.Message( id=FTL.Identifier("rights-intro-point-5-unbranded"), value=CONCAT( COPY("toolkit/chrome/global/aboutRights.dtd", "rights.intro-point4a-unbranded"), FTL.TextElement( '<a data-l10n-name="mozilla-website-services-link">'), COPY("toolkit/chrome/global/aboutRights.dtd", "rights.intro-point4b-unbranded"), FTL.TextElement('</a>'), COPY("toolkit/chrome/global/aboutRights.dtd", "rights.intro-point4c-unbranded"))), FTL.Message( id=FTL.Identifier("rights-intro-point-6"), value=REPLACE( "toolkit/chrome/global/aboutRights.dtd", "rights.intro-point5", {"&brandShortName;": TERM_REFERENCE("brand-short-name")})), FTL.Message( id=FTL.Identifier("rights-webservices-header"), value=REPLACE( "toolkit/chrome/global/aboutRights.dtd", "rights2.webservices-header", {"&brandFullName;": TERM_REFERENCE("brand-full-name")})), FTL.Message( id=FTL.Identifier("rights-webservices"), value=CONCAT( REPLACE( "toolkit/chrome/global/aboutRights.dtd", "rights2.webservices-a", { "&brandFullName;": TERM_REFERENCE("brand-full-name"), "&brandShortName;": TERM_REFERENCE("brand-short-name") }), FTL.TextElement( '<a data-l10n-name="mozilla-disable-service-link">'), COPY("toolkit/chrome/global/aboutRights.dtd", "rights2.webservices-b"), FTL.TextElement('</a>'), COPY("toolkit/chrome/global/aboutRights.dtd", "rights3.webservices-c"))), FTL.Message(id=FTL.Identifier("rights-safebrowsing"), value=CONCAT( FTL.TextElement('<strong>'), COPY("toolkit/chrome/global/aboutRights.dtd", "rights.safebrowsing-a"), FTL.TextElement('</strong>'), COPY("toolkit/chrome/global/aboutRights.dtd", "rights.safebrowsing-b"))), FTL.Message(id=FTL.Identifier("rights-safebrowsing-term-3"), value=REPLACE( "toolkit/chrome/global/aboutRights.dtd", "rights2.safebrowsing-term3", { "&enableSafeBrowsing.label;": MESSAGE_REFERENCE("enableSafeBrowsing-label") })), FTL.Message(id=FTL.Identifier("rights-locationawarebrowsing"), value=CONCAT( FTL.TextElement('<strong>'), COPY("toolkit/chrome/global/aboutRights.dtd", "rights.locationawarebrowsing-a"), FTL.TextElement('</strong>'), COPY("toolkit/chrome/global/aboutRights.dtd", "rights.locationawarebrowsing-b"))), FTL.Message( id=FTL.Identifier("rights-locationawarebrowsing-term-1"), value=CONCAT( COPY("toolkit/chrome/global/aboutRights.dtd", "rights.locationawarebrowsing-term1a"), FTL.TextElement('<code>'), COPY("toolkit/chrome/global/aboutRights.dtd", "rights.locationawarebrowsing-term1b"), FTL.TextElement('</code>'))), FTL.Message( id=FTL.Identifier("rights-webservices-term-1"), value=REPLACE( "toolkit/chrome/global/aboutRights.dtd", "rights2.webservices-term1", {"&vendorShortName;": TERM_REFERENCE("vendor-short-name") })), FTL.Message( id=FTL.Identifier("rights-webservices-term-2"), value=REPLACE( "toolkit/chrome/global/aboutRights.dtd", "rights.webservices-term2", {"&vendorShortName;": TERM_REFERENCE("vendor-short-name") })), FTL.Message( id=FTL.Identifier("rights-webservices-term-3"), value=REPLACE( "toolkit/chrome/global/aboutRights.dtd", "rights2.webservices-term3", { "&vendorShortName;": TERM_REFERENCE("vendor-short-name"), "&brandShortName;": TERM_REFERENCE("brand-short-name") })), FTL.Message(id=FTL.Identifier("rights-webservices-term-4"), value=CONCAT( FTL.TextElement('<strong>'), REPLACE( "toolkit/chrome/global/aboutRights.dtd", "rights.webservices-term4", { "&vendorShortName;": TERM_REFERENCE("vendor-short-name"), "&brandShortName;": TERM_REFERENCE("brand-short-name") }), FTL.TextElement('</strong>'))), FTL.Message(id=FTL.Identifier("rights-webservices-term-5"), value=CONCAT( FTL.TextElement('<strong>'), REPLACE( "toolkit/chrome/global/aboutRights.dtd", "rights.webservices-term5", { "&vendorShortName;": TERM_REFERENCE("vendor-short-name"), "&brandShortName;": TERM_REFERENCE("brand-short-name") }), FTL.TextElement('</strong>'))), FTL.Message( id=FTL.Identifier("rights-webservices-term-6"), value=REPLACE( "toolkit/chrome/global/aboutRights.dtd", "rights.webservices-term6", {"&vendorShortName;": TERM_REFERENCE("vendor-short-name") })) ])
def migrate(ctx): """Bug 1451992 - Migrate Preferences::Subdialogs::ClearSiteData to Fluent, part {index}.""" ctx.add_transforms( 'browser/browser/preferences/clearSiteData.ftl', 'browser/browser/preferences/clearSiteData.ftl', [ FTL.Message( id=FTL.Identifier('clear-site-data-window'), attributes=[ FTL.Attribute( FTL.Identifier('title'), COPY( 'browser/chrome/browser/preferences/clearSiteData.dtd', 'window.title')), FTL.Attribute( FTL.Identifier('style'), CONCAT( FTL.TextElement('width: '), COPY( 'browser/chrome/browser/preferences/clearSiteData.dtd', 'window.width'))) ]), FTL.Message( id=FTL.Identifier('clear-site-data-description'), value=REPLACE( 'browser/chrome/browser/preferences/clearSiteData.dtd', 'window.description', { '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name') })), FTL.Message( id=FTL.Identifier('clear-site-data-close-key'), attributes=[ FTL.Attribute( FTL.Identifier('key'), COPY( 'browser/chrome/browser/preferences/clearSiteData.dtd', 'windowClose.key')) ]), FTL.Message( id=FTL.Identifier('clear-site-data-cookies-info'), value=COPY( 'browser/chrome/browser/preferences/clearSiteData.dtd', 'clearSiteData.description')), FTL.Message( id=FTL.Identifier('clear-site-data-cache-info'), value=COPY( 'browser/chrome/browser/preferences/clearSiteData.dtd', 'clearCache.description')), FTL.Message( id=FTL.Identifier('clear-site-data-cancel'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/clearSiteData.dtd', 'button.cancel.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/clearSiteData.dtd', 'button.cancel.accesskey')) ]), FTL.Message( id=FTL.Identifier('clear-site-data-clear'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/clearSiteData.dtd', 'button.clear.label')), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/clearSiteData.dtd', 'button.clear.accesskey')) ]) ])
def migrate(ctx): """Bug 1446180 - Migrate Preferences::Privacy to Fluent, part {index}.""" ctx.add_transforms( 'browser/branding/official/brand.ftl', 'browser/branding/official/brand.ftl', [ FTL.Term(id=FTL.Identifier('-vendor-short-name'), value=COPY('browser/branding/official/brand.dtd', 'vendorShortName')), ]) ctx.add_transforms( 'browser/browser/preferences/preferences.ftl', 'browser/browser/preferences/preferences.ftl', [ FTL.Message( id=FTL.Identifier('privacy-header'), value=COPY( 'browser/chrome/browser/preferences/preferences.dtd', 'browserPrivacy.label', ), ), FTL.Message( id=FTL.Identifier('forms-header'), value=COPY( 'browser/chrome/browser/preferences/security.dtd', 'formsAndPasswords.label', ), ), FTL.Message( id=FTL.Identifier('forms-remember-logins'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'rememberLogins2.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'rememberLogins2.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('forms-exceptions'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'passwordExceptions.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'passwordExceptions.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('forms-saved-logins'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'savedLogins.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'savedLogins.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('forms-master-pw-use'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'useMasterPassword.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'useMasterPassword.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('forms-master-pw-change'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'changeMasterPassword.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'changeMasterPassword.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('history-header'), value=COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'history.label', ), ), FTL.Message( id=FTL.Identifier('history-remember-description'), value=REPLACE( 'browser/chrome/browser/preferences/privacy.dtd', 'rememberDescription1.label', { '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name') }, ), ), FTL.Message( id=FTL.Identifier('history-dontremember-description'), value=REPLACE( 'browser/chrome/browser/preferences/privacy.dtd', 'dontrememberDescription.label', { '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name') }, ), ), FTL.Message( id=FTL.Identifier('history-private-browsing-permanent'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'privateBrowsingPermanent2.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'privateBrowsingPermanent2.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('history-remember-option'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'rememberHistory2.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'rememberHistory2.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('history-remember-search-option'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'rememberSearchForm.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'rememberSearchForm.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('history-clear-on-close-option'), attributes=[ FTL.Attribute( FTL.Identifier('label'), REPLACE( 'browser/chrome/browser/preferences/privacy.dtd', 'clearOnClose.label', { '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name') }, ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'clearOnClose.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('history-clear-on-close-settings'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'clearOnCloseSettings.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'clearOnCloseSettings.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('history-clear-button'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'clearHistoryButton.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'clearHistoryButton.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sitedata-header'), value=COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'siteData1.label', ), ), FTL.Message( id=FTL.Identifier('sitedata-learn-more'), value=COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'siteDataLearnMoreLink.label', ), ), FTL.Message( id=FTL.Identifier('sitedata-accept-cookies-option'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'acceptCookies4.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'acceptCookies4.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sitedata-block-cookies-option'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'blockCookies.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'blockCookies.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sitedata-keep-until'), value=COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'keepUntil2.label', ), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'keepUntil2.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sitedata-accept-third-party-desc'), value=COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'acceptThirdParty3.pre.label', ), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'acceptThirdParty3.pre.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sitedata-accept-third-party-always-option'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'acceptThirdParty.always.label', ), ), ], ), FTL.Message( id=FTL.Identifier( 'sitedata-accept-third-party-visited-option'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'acceptThirdParty.visited.label', ), ), ], ), FTL.Message( id=FTL.Identifier('sitedata-accept-third-party-never-option'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'acceptThirdParty.never.label', ), ), ], ), FTL.Message( id=FTL.Identifier('sitedata-clear'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'clearSiteData1.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'clearSiteData1.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sitedata-settings'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'siteDataSettings1.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'siteDataSettings1.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sitedata-cookies-exceptions'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'cookieExceptions.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'cookieExceptions.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('addressbar-header'), value=COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'addressBar.label', ), ), FTL.Message( id=FTL.Identifier('addressbar-suggest'), value=COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'addressBar.suggest.label', ), ), FTL.Message( id=FTL.Identifier('addressbar-locbar-history-option'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'locbar.history2.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'locbar.history2.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('addressbar-locbar-bookmarks-option'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'locbar.bookmarks.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'locbar.bookmarks.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('addressbar-locbar-openpage-option'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'locbar.openpage.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'locbar.openpage.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('addressbar-suggestions-settings'), value=COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'suggestionSettings2.label', ), ), FTL.Message( id=FTL.Identifier('tracking-header'), value=COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'trackingProtectionHeader2.label', ), ), FTL.Message( id=FTL.Identifier('tracking-description'), value=CONCAT( COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'trackingProtection3.description', ), FTL.TextElement(' <a>'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'trackingProtectionLearnMore2.label', ), FTL.TextElement('</a>'), ), ), FTL.Message( id=FTL.Identifier('tracking-mode-label'), value=COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'trackingProtection3.radioGroupLabel', ), ), FTL.Message( id=FTL.Identifier('tracking-mode-always'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'trackingProtectionAlways.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'trackingProtectionAlways.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('tracking-mode-private'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'trackingProtectionPrivate.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'trackingProtectionPrivate.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('tracking-mode-never'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'trackingProtectionNever.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'trackingProtectionNever.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('tracking-pbm-label'), value=COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'trackingProtectionPBM6.label', ), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'trackingProtectionPBM6.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('tracking-exceptions'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'trackingProtectionExceptions.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'trackingProtectionExceptions.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('tracking-change-block-list'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'changeBlockList2.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'changeBlockList2.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('permissions-header'), value=COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'permissions.label', ), ), FTL.Message( id=FTL.Identifier('permissions-location'), value=COPY( 'browser/chrome/browser/preferences/content.dtd', 'locationPermissions.label', ), ), FTL.Message( id=FTL.Identifier('permissions-location-settings'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/content.dtd', 'locationSettingsButton.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/content.dtd', 'locationSettingsButton.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('permissions-camera'), value=COPY( 'browser/chrome/browser/preferences/content.dtd', 'cameraPermissions.label', ), ), FTL.Message( id=FTL.Identifier('permissions-camera-settings'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/content.dtd', 'cameraSettingsButton.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/content.dtd', 'cameraSettingsButton.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('permissions-microphone'), value=COPY( 'browser/chrome/browser/preferences/content.dtd', 'microphonePermissions.label', ), ), FTL.Message( id=FTL.Identifier('permissions-microphone-settings'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/content.dtd', 'microphoneSettingsButton.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/content.dtd', 'microphoneSettingsButton.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('permissions-notification'), value=COPY( 'browser/chrome/browser/preferences/content.dtd', 'notificationPermissions.label', ), ), FTL.Message( id=FTL.Identifier('permissions-notification-settings'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/content.dtd', 'notificationSettingsButton.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/content.dtd', 'notificationSettingsButton.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('permissions-notification-link'), value=COPY( 'browser/chrome/browser/preferences/content.dtd', 'notificationPermissionsLearnMore.label', ), ), FTL.Message( id=FTL.Identifier('permissions-notification-pause'), attributes=[ FTL.Attribute( FTL.Identifier('label'), REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'pauseNotifications.label', {'%S': MESSAGE_REFERENCE('-brand-short-name')}, ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/preferences.properties', 'pauseNotifications.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('permissions-block-popups'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/content.dtd', 'blockPopups.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/content.dtd', 'blockPopups.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('permissions-block-popups-exceptions'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/content.dtd', 'popupExceptions.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/content.dtd', 'popupExceptions.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('permissions-addon-install-warning'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'warnOnAddonInstall2.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'warnOnAddonInstall2.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('permissions-addon-exceptions'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'addonExceptions.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'addonExceptions.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('permissions-a11y-privacy-checkbox'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'a11yPrivacy.checkbox.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'a11yPrivacy.checkbox.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('permissions-a11y-privacy-link'), value=COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'a11yPrivacy.learnmore.label', ), ), FTL.Message( id=FTL.Identifier('collection-header'), value=REPLACE( 'browser/chrome/browser/preferences/advanced.dtd', 'dataCollection.label', { '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name') }, ), ), FTL.Message( id=FTL.Identifier('collection-description'), value=REPLACE( 'browser/chrome/browser/preferences/advanced.dtd', 'dataCollectionDesc.label', { '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name') }, ), ), FTL.Message( id=FTL.Identifier('collection-privacy-notice'), value=COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'dataCollectionPrivacyNotice.label', ), ), FTL.Message( id=FTL.Identifier('collection-health-report'), attributes=[ FTL.Attribute( FTL.Identifier('label'), REPLACE( 'browser/chrome/browser/preferences/advanced.dtd', 'enableHealthReport2.label', { '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name'), 'Mozilla': MESSAGE_REFERENCE('-vendor-short-name'), }, ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'enableHealthReport2.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('collection-health-report-link'), value=COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'healthReportLearnMore.label', ), ), FTL.Message( id=FTL.Identifier('collection-health-report-disabled'), value=COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'healthReportingDisabled.label', ), ), FTL.Message( id=FTL.Identifier('collection-browser-errors'), attributes=[ FTL.Attribute( FTL.Identifier('label'), REPLACE( 'browser/chrome/browser/preferences/advanced.dtd', 'collectBrowserErrors.label', { '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name'), 'Mozilla': MESSAGE_REFERENCE('-vendor-short-name'), }, ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'collectBrowserErrors.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('collection-browser-errors-link'), value=COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'collectBrowserErrorsLearnMore.label', ), ), FTL.Message( id=FTL.Identifier('collection-backlogged-crash-reports'), attributes=[ FTL.Attribute( FTL.Identifier('label'), REPLACE( 'browser/chrome/browser/preferences/advanced.dtd', 'sendBackloggedCrashReports.label', { '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name') }, ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'sendBackloggedCrashReports.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('collection-backlogged-crash-reports-link'), value=COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'crashReporterLearnMore.label', ), ), FTL.Message( id=FTL.Identifier('security-header'), value=COPY( 'browser/chrome/browser/preferences/security.dtd', 'security.label', ), ), FTL.Message( id=FTL.Identifier('security-browsing-protection'), value=COPY( 'browser/chrome/browser/preferences/security.dtd', 'browsingProtection.label', ), ), FTL.Message( id=FTL.Identifier('security-enable-safe-browsing'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'enableSafeBrowsing.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'enableSafeBrowsing.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('security-enable-safe-browsing-link'), value=COPY( 'browser/chrome/browser/preferences/privacy.dtd', 'enableSafeBrowsingLearnMore.label', ), ), FTL.Message( id=FTL.Identifier('security-block-downloads'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'blockDownloads.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'blockDownloads.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('security-block-uncommon-software'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'blockUncommonAndUnwanted.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/security.dtd', 'blockUncommonAndUnwanted.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('certs-header'), value=COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'certificateTab.label', ), ), FTL.Message( id=FTL.Identifier('certs-personal-label'), value=COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'certPersonal2.description', ), ), FTL.Message( id=FTL.Identifier('certs-select-auto-option'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'selectCerts.auto', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'selectCerts.auto.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('certs-select-ask-option'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'selectCerts.ask', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'selectCerts.ask.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('certs-enable-ocsp'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'enableOCSP.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'enableOCSP.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('certs-view'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'viewCerts2.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'viewCerts2.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('certs-devices'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'viewSecurityDevices2.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/advanced.dtd', 'viewSecurityDevices2.accesskey', ), ), ], ), ])