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 1486935 - Migrate about:profiles to Fluent, part {index}. """ ctx.add_transforms( "toolkit/toolkit/about/aboutProfiles.ftl", "toolkit/toolkit/about/aboutProfiles.ftl", transforms_from(""" profiles-title = { COPY("toolkit/chrome/global/aboutProfiles.dtd", "aboutProfiles.title")} profiles-subtitle = { COPY("toolkit/chrome/global/aboutProfiles.dtd", "aboutProfiles.subtitle")} profiles-create = { COPY("toolkit/chrome/global/aboutProfiles.dtd", "aboutProfiles.create")} profiles-restart-title = { COPY("toolkit/chrome/global/aboutProfiles.dtd", "aboutProfiles.restart.title")} profiles-restart-in-safe-mode = { COPY("toolkit/chrome/global/aboutProfiles.dtd", "aboutProfiles.restart.inSafeMode")} profiles-restart-normal = { COPY("toolkit/chrome/global/aboutProfiles.dtd", "aboutProfiles.restart.normal")} profiles-is-default = { COPY("toolkit/chrome/global/aboutProfiles.properties", "isDefault")} profiles-rootdir = { COPY("toolkit/chrome/global/aboutProfiles.properties", "rootDir")} profiles-localdir = { COPY("toolkit/chrome/global/aboutProfiles.properties", "localDir")} profiles-current-profile = { COPY("toolkit/chrome/global/aboutProfiles.properties", "currentProfile")} profiles-in-use-profile = { COPY("toolkit/chrome/global/aboutProfiles.properties", "inUseProfile")} profiles-rename = { COPY("toolkit/chrome/global/aboutProfiles.properties", "rename")} profiles-remove = { COPY("toolkit/chrome/global/aboutProfiles.properties", "remove")} profiles-set-as-default = { COPY("toolkit/chrome/global/aboutProfiles.properties", "setAsDefault")} profiles-launch-profile = { COPY("toolkit/chrome/global/aboutProfiles.properties", "launchProfile")} profiles-yes = { COPY("toolkit/chrome/global/aboutProfiles.properties", "yes")} profiles-no = { COPY("toolkit/chrome/global/aboutProfiles.properties", "no")} profiles-rename-profile-title = { COPY("toolkit/chrome/global/aboutProfiles.properties", "renameProfileTitle")} profiles-invalid-profile-name-title = { COPY("toolkit/chrome/global/aboutProfiles.properties", "invalidProfileNameTitle")} profiles-delete-profile-title = { COPY("toolkit/chrome/global/aboutProfiles.properties", "deleteProfileTitle")} profiles-delete-files = { COPY("toolkit/chrome/global/aboutProfiles.properties", "deleteFiles")} profiles-dont-delete-files = { COPY("toolkit/chrome/global/aboutProfiles.properties", "dontDeleteFiles")} profiles-delete-profile-failed-title = { COPY("toolkit/chrome/global/aboutProfiles.properties", "deleteProfileFailedTitle")} profiles-delete-profile-failed-message = { COPY("toolkit/chrome/global/aboutProfiles.properties", "deleteProfileFailedMessage")} """)) ctx.add_transforms( "toolkit/toolkit/about/aboutProfiles.ftl", "toolkit/toolkit/about/aboutProfiles.ftl", [ FTL.Message(id=FTL.Identifier("profiles-name"), value=REPLACE( "toolkit/chrome/global/aboutProfiles.properties", "name", { "%S": VARIABLE_REFERENCE("name"), })), FTL.Message(id=FTL.Identifier("profiles-rename-profile"), value=REPLACE( "toolkit/chrome/global/aboutProfiles.properties", "renameProfile", { "%S": VARIABLE_REFERENCE("name"), })), FTL.Message(id=FTL.Identifier("profiles-invalid-profile-name"), value=REPLACE( "toolkit/chrome/global/aboutProfiles.properties", "invalidProfileName", { "%S": VARIABLE_REFERENCE("name"), })), FTL.Message(id=FTL.Identifier("profiles-delete-profile-confirm"), value=REPLACE( "toolkit/chrome/global/aboutProfiles.properties", "deleteProfileConfirm", { "%S": VARIABLE_REFERENCE("dir"), })), FTL.Message( id=FTL.Identifier("profiles-opendir"), value=FTL.Pattern(elements=[ FTL.Placeable(expression=FTL.SelectExpression( selector=FTL.CallExpression( callee=FTL.Function("PLATFORM")), variants=[ FTL.Variant( key=FTL.Identifier("macos"), default=False, value=COPY( "toolkit/chrome/global/aboutProfiles.properties", "macOpenDir")), FTL.Variant( key=FTL.Identifier("windows"), default=False, value=COPY( "toolkit/chrome/global/aboutProfiles.properties", "winOpenDir2")), FTL.Variant( key=FTL.Identifier("other"), default=True, value=COPY( "toolkit/chrome/global/aboutProfiles.properties", "openDir")) ])) ])) ])
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 1507595 - Migrate about:support messages to use Fluent for localization, part {index}.""" ctx.add_transforms( "toolkit/toolkit/about/aboutSupport.ftl", "toolkit/toolkit/about/aboutSupport.ftl", transforms_from(""" page-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.pageTitle")} crashes-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.crashes.title")} crashes-id = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.crashes.id")} crashes-send-date = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.crashes.sendDate")} crashes-all-reports = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.crashes.allReports")} crashes-no-config = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.crashes.noConfig")} extensions-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.extensionsTitle")} extensions-name = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.extensionName")} extensions-enabled = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.extensionEnabled")} extensions-version = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.extensionVersion")} extensions-id = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.extensionId")} security-software-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.securitySoftwareTitle")} security-software-type = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.securitySoftwareType")} security-software-name = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.securitySoftwareName")} security-software-antivirus = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.securitySoftwareAntivirus")} security-software-antispyware = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.securitySoftwareAntiSpyware")} security-software-firewall = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.securitySoftwareFirewall")} features-name = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.featureName")} features-version = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.featureVersion")} features-id = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.featureId")} app-basics-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsTitle")} app-basics-name = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsName")} app-basics-version = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsVersion")} app-basics-build-id = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsBuildID")} app-basics-update-channel = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsUpdateChannel")} app-basics-update-history = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsUpdateHistory")} app-basics-show-update-history = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsShowUpdateHistory")} app-basics-enabled-plugins = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsEnabledPlugins")} app-basics-build-config = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsBuildConfig")} app-basics-user-agent = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsUserAgent")} app-basics-os = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsOS")} app-basics-memory-use = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsMemoryUse")} app-basics-performance = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsPerformance")} app-basics-service-workers = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsServiceWorkers")} app-basics-profiles = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsProfiles")} app-basics-multi-process-support = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsMultiProcessSupport")} app-basics-process-count = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsProcessCount")} app-basics-enterprise-policies = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.enterprisePolicies")} app-basics-location-service-key-google = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsLocationServiceKeyGoogle")} app-basics-safebrowsing-key-google = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsSafebrowsingKeyGoogle")} app-basics-key-mozilla = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsKeyMozilla")} app-basics-safe-mode = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsSafeMode")} modified-key-prefs-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.modifiedKeyPrefsTitle")} modified-prefs-name = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.modifiedPrefsName")} modified-prefs-value = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.modifiedPrefsValue")} user-js-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.userJSTitle")} locked-key-prefs-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.lockedKeyPrefsTitle")} locked-prefs-name = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.lockedPrefsName")} locked-prefs-value = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.lockedPrefsValue")} graphics-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.graphicsTitle")} graphics-features-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.graphicsFeaturesTitle")} graphics-diagnostics-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.graphicsDiagnosticsTitle")} graphics-failure-log-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.graphicsFailureLogTitle")} graphics-gpu1-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.graphicsGPU1Title")} graphics-gpu2-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.graphicsGPU2Title")} graphics-decision-log-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.graphicsDecisionLogTitle")} graphics-crash-guards-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.graphicsCrashGuardsTitle")} graphics-workarounds-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.graphicsWorkaroundsTitle")} place-database-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.placeDatabaseTitle")} place-database-integrity = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.placeDatabaseIntegrity")} place-database-verify-integrity = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.placeDatabaseVerifyIntegrity")} js-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.jsTitle")} js-incremental-gc = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.jsIncrementalGC")} a11y-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.a11yTitle")} a11y-activated = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.a11yActivated")} a11y-force-disabled = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.a11yForceDisabled")} a11y-handler-used = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.a11yHandlerUsed")} a11y-instantiator = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.a11yInstantiator")} library-version-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.libraryVersionsTitle")} copy-text-to-clipboard-label = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.copyTextToClipboard.label")} copy-raw-data-to-clipboard-label = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.copyRawDataToClipboard.label")} sandbox-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.sandboxTitle")} sandbox-sys-call-log-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.sandboxSyscallLogTitle")} sandbox-sys-call-index = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.sandboxSyscallIndex")} sandbox-sys-call-age = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.sandboxSyscallAge")} sandbox-sys-call-pid = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.sandboxSyscallPID")} sandbox-sys-call-tid = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.sandboxSyscallTID")} sandbox-sys-call-proc-type = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.sandboxSyscallProcType")} sandbox-sys-call-number = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.sandboxSyscallNumber")} sandbox-sys-call-args = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.sandboxSyscallArgs")} safe-mode-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.safeModeTitle")} restart-in-safe-mode-label = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.restartInSafeMode.label")} media-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.mediaTitle")} media-output-devices-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.mediaOutputDevicesTitle")} media-input-devices-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.mediaInputDevicesTitle")} media-device-name = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.mediaDeviceName")} media-device-group = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.mediaDeviceGroup")} media-device-vendor = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.mediaDeviceVendor")} media-device-state = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.mediaDeviceState")} media-device-preferred = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.mediaDevicePreferred")} media-device-format = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.mediaDeviceFormat")} media-device-channels = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.mediaDeviceChannels")} media-device-rate = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.mediaDeviceRate")} media-device-latency = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.mediaDeviceLatency")} intl-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.intlTitle")} intl-app-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.intlAppTitle")} intl-locales-requested = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.intlLocalesRequested")} intl-locales-available = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.intlLocalesAvailable")} intl-locales-supported = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.intlLocalesSupported")} intl-locales-default = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.intlLocalesDefault")} intl-os-title = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.intlOSTitle")} intl-os-prefs-system-locales = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.intlOSPrefsSystemLocales")} intl-regional-prefs = { COPY("toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.intlRegionalPrefs")} raw-data-copied = { COPY("toolkit/chrome/global/aboutSupport.properties", "rawDataCopied")} text-copied = { COPY("toolkit/chrome/global/aboutSupport.properties", "textCopied")} clear-type-parameters = { COPY("toolkit/chrome/global/aboutSupport.properties", "clearTypeParameters")} compositing = { COPY("toolkit/chrome/global/aboutSupport.properties", "compositing")} hardware-h264 = { COPY("toolkit/chrome/global/aboutSupport.properties", "hardwareH264")} main-thread-no-omtc = { COPY("toolkit/chrome/global/aboutSupport.properties", "mainThreadNoOMTC")} yes = { COPY("toolkit/chrome/global/aboutSupport.properties", "yes")} no = { COPY("toolkit/chrome/global/aboutSupport.properties", "no")} found = { COPY("toolkit/chrome/global/aboutSupport.properties", "found")} missing = { COPY("toolkit/chrome/global/aboutSupport.properties", "missing")} gpu-description = { COPY("toolkit/chrome/global/aboutSupport.properties", "gpuDescription")} gpu-vendor-id = { COPY("toolkit/chrome/global/aboutSupport.properties", "gpuVendorID")} gpu-device-id = { COPY("toolkit/chrome/global/aboutSupport.properties", "gpuDeviceID")} gpu-subsys-id = { COPY("toolkit/chrome/global/aboutSupport.properties", "gpuSubsysID")} gpu-drivers = { COPY("toolkit/chrome/global/aboutSupport.properties", "gpuDrivers")} gpu-ram = { COPY("toolkit/chrome/global/aboutSupport.properties", "gpuRAM")} gpu-driver-version = { COPY("toolkit/chrome/global/aboutSupport.properties", "gpuDriverVersion")} gpu-driver-date = { COPY("toolkit/chrome/global/aboutSupport.properties", "gpuDriverDate")} gpu-active = { COPY("toolkit/chrome/global/aboutSupport.properties", "gpuActive")} webgl1-wsiinfo = { COPY("toolkit/chrome/global/aboutSupport.properties", "webgl1WSIInfo")} webgl1-renderer = { COPY("toolkit/chrome/global/aboutSupport.properties", "webgl1Renderer")} webgl1-version = { COPY("toolkit/chrome/global/aboutSupport.properties", "webgl1Version")} webgl1-driver-extensions = { COPY("toolkit/chrome/global/aboutSupport.properties", "webgl1DriverExtensions")} webgl1-extensions = { COPY("toolkit/chrome/global/aboutSupport.properties", "webgl1Extensions")} webgl2-wsiinfo = { COPY("toolkit/chrome/global/aboutSupport.properties", "webgl2WSIInfo")} webgl2-renderer = { COPY("toolkit/chrome/global/aboutSupport.properties", "webgl2Renderer")} webgl2-version = { COPY("toolkit/chrome/global/aboutSupport.properties", "webgl2Version")} webgl2-driver-extensions = { COPY("toolkit/chrome/global/aboutSupport.properties", "webgl2DriverExtensions")} webgl2-extensions = { COPY("toolkit/chrome/global/aboutSupport.properties", "webgl2Extensions")} blocklisted-bug = { COPY("toolkit/chrome/global/aboutSupport.properties", "blocklistedBug")} d3d11layers-crash-guard = { COPY("toolkit/chrome/global/aboutSupport.properties", "d3d11layersCrashGuard")} d3d11video-crash-guard = { COPY("toolkit/chrome/global/aboutSupport.properties", "d3d11videoCrashGuard")} d3d9video-crash-buard = { COPY("toolkit/chrome/global/aboutSupport.properties", "d3d9videoCrashGuard")} glcontext-crash-guard = { COPY("toolkit/chrome/global/aboutSupport.properties", "glcontextCrashGuard")} reset-on-next-restart = { COPY("toolkit/chrome/global/aboutSupport.properties", "resetOnNextRestart")} gpu-process-kill-button = { COPY("toolkit/chrome/global/aboutSupport.properties", "gpuProcessKillButton")} gpu-device-reset-button = { COPY("toolkit/chrome/global/aboutSupport.properties", "gpuDeviceResetButton")} uses-tiling = { COPY("toolkit/chrome/global/aboutSupport.properties", "usesTiling")} content-uses-tiling = { COPY("toolkit/chrome/global/aboutSupport.properties", "contentUsesTiling")} off-main-thread-paint-enabled = { COPY("toolkit/chrome/global/aboutSupport.properties", "offMainThreadPaintEnabled")} off-main-thread-paint-worker-count = { COPY("toolkit/chrome/global/aboutSupport.properties", "offMainThreadPaintWorkerCount")} audio-backend = { COPY("toolkit/chrome/global/aboutSupport.properties", "audioBackend")} max-audio-channels = { COPY("toolkit/chrome/global/aboutSupport.properties", "maxAudioChannels")} channel-layout = { COPY("toolkit/chrome/global/aboutSupport.properties", "channelLayout")} sample-rate = { COPY("toolkit/chrome/global/aboutSupport.properties", "sampleRate")} min-lib-versions = { COPY("toolkit/chrome/global/aboutSupport.properties", "minLibVersions")} loaded-lib-versions = { COPY("toolkit/chrome/global/aboutSupport.properties", "loadedLibVersions")} has-seccomp-bpf = { COPY("toolkit/chrome/global/aboutSupport.properties", "hasSeccompBPF")} has-seccomp-tsync = { COPY("toolkit/chrome/global/aboutSupport.properties", "hasSeccompTSync")} has-user-namespaces = { COPY("toolkit/chrome/global/aboutSupport.properties", "hasUserNamespaces")} has-privileged-user-namespaces = { COPY("toolkit/chrome/global/aboutSupport.properties", "hasPrivilegedUserNamespaces")} can-sandbox-content = { COPY("toolkit/chrome/global/aboutSupport.properties", "canSandboxContent")} can-sandbox-media = { COPY("toolkit/chrome/global/aboutSupport.properties", "canSandboxMedia")} content-sandbox-level = { COPY("toolkit/chrome/global/aboutSupport.properties", "contentSandboxLevel")} effective-content-sandbox-level = { COPY("toolkit/chrome/global/aboutSupport.properties", "effectiveContentSandboxLevel")} sandbox-proc-type-content = { COPY("toolkit/chrome/global/aboutSupport.properties", "sandboxProcType.content")} sandbox-proc-type-file = { COPY("toolkit/chrome/global/aboutSupport.properties", "sandboxProcType.file")} sandbox-proc-type-media-plugin = { COPY("toolkit/chrome/global/aboutSupport.properties", "sandboxProcType.mediaPlugin")} multi-process-status-0 = { COPY("toolkit/chrome/global/aboutSupport.properties", "multiProcessStatus.0")} multi-process-status-1 = { COPY("toolkit/chrome/global/aboutSupport.properties", "multiProcessStatus.1")} multi-process-status-2 = { COPY("toolkit/chrome/global/aboutSupport.properties", "multiProcessStatus.2")} multi-process-status-4 = { COPY("toolkit/chrome/global/aboutSupport.properties", "multiProcessStatus.4")} multi-process-status-6 = { COPY("toolkit/chrome/global/aboutSupport.properties", "multiProcessStatus.6")} multi-process-status-7 = { COPY("toolkit/chrome/global/aboutSupport.properties", "multiProcessStatus.7")} multi-process-status-8 = { COPY("toolkit/chrome/global/aboutSupport.properties", "multiProcessStatus.8")} multi-process-status-unknown = { COPY("toolkit/chrome/global/aboutSupport.properties", "multiProcessStatus.unknown")} async-pan-zoom = { COPY("toolkit/chrome/global/aboutSupport.properties", "asyncPanZoom")} apz-none = { COPY("toolkit/chrome/global/aboutSupport.properties", "apzNone")} wheel-enabled = { COPY("toolkit/chrome/global/aboutSupport.properties", "wheelEnabled")} touch-enabled = { COPY("toolkit/chrome/global/aboutSupport.properties", "touchEnabled")} drag-enabled = { COPY("toolkit/chrome/global/aboutSupport.properties", "dragEnabled")} keyboard-enabled = { COPY("toolkit/chrome/global/aboutSupport.properties", "keyboardEnabled")} autoscroll-enabled = { COPY("toolkit/chrome/global/aboutSupport.properties", "autoscrollEnabled")} policies-inactive = { COPY("toolkit/chrome/global/aboutSupport.properties", "policies.inactive")} policies-active = { COPY("toolkit/chrome/global/aboutSupport.properties", "policies.active")} policies-error = { COPY("toolkit/chrome/global/aboutSupport.properties", "policies.error")} multi-process-windows = { $remoteWindows }/{ $totalWindows } blocked-driver = { COPY("toolkit/chrome/global/aboutSupport.properties", "blockedDriver")} blocked-gfx-card = { COPY("toolkit/chrome/global/aboutSupport.properties", "blockedGfxCard")} blocked-os-version = { COPY("toolkit/chrome/global/aboutSupport.properties", "blockedOSVersion")} blocked-mismatched-version = { COPY("toolkit/chrome/global/aboutSupport.properties", "blockedMismatchedVersion")} """)) ctx.add_transforms( "toolkit/toolkit/about/aboutSupport.ftl", "toolkit/toolkit/about/aboutSupport.ftl", [ FTL.Message( id=FTL.Identifier("page-subtitle"), value=REPLACE( "toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.pageSubtitle", { "&brandShortName;": TERM_REFERENCE("-brand-short-name"), "<a id='supportLink'>": FTL.TextElement('<a data-l10n-name="support-link">'), }, trim=True)), FTL.Message(id=FTL.Identifier("features-title"), value=REPLACE( "toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.featuresTitle", { "&brandShortName;": TERM_REFERENCE("-brand-short-name"), }, )), FTL.Message( id=FTL.Identifier("app-basics-profile-dir"), value=FTL.Pattern(elements=[ FTL.Placeable(expression=FTL.SelectExpression( selector=FTL.CallExpression( callee=FTL.Function("PLATFORM")), variants=[ FTL.Variant( key=FTL.Identifier("linux"), default=False, value=COPY( "toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsProfileDir")), FTL.Variant( key=FTL.Identifier("other"), default=True, value=COPY( "toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.appBasicsProfileDirWinMac")), ])) ])), FTL.Message( id=FTL.Identifier("show-dir-label"), value=FTL.Pattern(elements=[ FTL.Placeable(expression=FTL.SelectExpression( selector=FTL.CallExpression( callee=FTL.Function("PLATFORM")), variants=[ FTL.Variant( key=FTL.Identifier("macos"), default=False, value=COPY( "toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.showMac.label")), FTL.Variant( key=FTL.Identifier("windows"), default=False, value=COPY( "toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.showWin2.label")), FTL.Variant( key=FTL.Identifier("other"), default=True, value=COPY( "toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.showDir.label")), ])) ])), FTL.Message( id=FTL.Identifier("user-js-description"), value=REPLACE( "toolkit/chrome/global/aboutSupport.dtd", "aboutSupport.userJSDescription", { "<a id='prefs-user-js-link'>": FTL.TextElement('<a data-l10n-name="user-js-link">'), "&brandShortName;": TERM_REFERENCE("-brand-short-name"), }, )), FTL.Message(id=FTL.Identifier("report-crash-for-days"), value=PLURALS( "toolkit/chrome/global/aboutSupport.properties", "crashesTitle", VARIABLE_REFERENCE("days"), lambda text: REPLACE_IN_TEXT( text, {"#1": VARIABLE_REFERENCE("days")}))), FTL.Message( id=FTL.Identifier("crashes-time-minutes"), value=PLURALS( "toolkit/chrome/global/aboutSupport.properties", "crashesTimeMinutes", VARIABLE_REFERENCE("minutes"), lambda text: REPLACE_IN_TEXT( text, {"#1": VARIABLE_REFERENCE("minutes")}))), FTL.Message(id=FTL.Identifier("crashes-time-hours"), value=PLURALS( "toolkit/chrome/global/aboutSupport.properties", "crashesTimeHours", VARIABLE_REFERENCE("hours"), lambda text: REPLACE_IN_TEXT( text, {"#1": VARIABLE_REFERENCE("hours")}))), FTL.Message(id=FTL.Identifier("crashes-time-days"), value=PLURALS( "toolkit/chrome/global/aboutSupport.properties", "crashesTimeDays", VARIABLE_REFERENCE("days"), lambda text: REPLACE_IN_TEXT( text, {"#1": VARIABLE_REFERENCE("days")}))), FTL.Message(id=FTL.Identifier("pending-reports"), value=PLURALS( "toolkit/chrome/global/aboutSupport.properties", "pendingReports", VARIABLE_REFERENCE("reports"), lambda text: REPLACE_IN_TEXT( text, {"#1": VARIABLE_REFERENCE("reports")}))), FTL.Message(id=FTL.Identifier("bug-link"), value=REPLACE( "toolkit/chrome/global/aboutSupport.properties", "bugLink", { "%1$S": VARIABLE_REFERENCE("bugNumber"), }, )), FTL.Message(id=FTL.Identifier("unknown-failure"), value=REPLACE( "toolkit/chrome/global/aboutSupport.properties", "unknownFailure", { "%1$S": VARIABLE_REFERENCE("failureCode"), }, )), FTL.Message(id=FTL.Identifier("wheel-warning"), value=REPLACE( "toolkit/chrome/global/aboutSupport.properties", "wheelWarning", { "%S": VARIABLE_REFERENCE("preferenceKey"), }, )), FTL.Message(id=FTL.Identifier("touch-warning"), value=REPLACE( "toolkit/chrome/global/aboutSupport.properties", "touchWarning", { "%S": VARIABLE_REFERENCE("preferenceKey"), }, )), FTL.Message(id=FTL.Identifier("try-newer-driver"), value=REPLACE( "toolkit/chrome/global/aboutSupport.properties", "tryNewerDriver", { "%S": VARIABLE_REFERENCE("driverVersion"), }, )), ])
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 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 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 1491676 - Move strings from preferences.properties to Fluent""" ctx.add_transforms( "toolkit/toolkit/preferences/preferences.ftl", "toolkit/toolkit/preferences/preferences.ftl", transforms_from( """ password-not-set = .value = { COPY(from_path, "password_not_set") } failed-pw-change = { COPY(from_path, "failed_pw_change") } incorrect-pw = { COPY(from_path, "incorrect_pw") } pw-empty-warning = { COPY(from_path, "pw_empty_warning") } pw-change-ok = { COPY(from_path, "pw_change_ok") } pw-erased-ok = { COPY(from_path, "pw_erased_ok") } { pw-empty-warning } pw-not-wanted = { COPY(from_path, "pw_not_wanted") } { pw-empty-warning } pw-change2empty-in-fips-mode = { COPY(from_path, "pw_change2empty_in_fips_mode") } pw-change-success-title = { COPY(from_path, "pw_change_success_title") } pw-change-failed-title = { COPY(from_path, "pw_change_failed_title") } pw-remove-button = .label = { COPY(from_path, "pw_remove_button") } """, from_path= "toolkit/chrome/mozapps/preferences/preferences.properties")) ctx.add_transforms( "browser/browser/preferences/preferences.ftl", "browser/browser/preferences/preferences.ftl", transforms_from( """ space-alert-learn-more-button = .label = { COPY(from_path, "spaceAlert.learnMoreButton.label")} .accesskey = { COPY(from_path, "spaceAlert.learnMoreButton.accesskey")} space-alert-under-5gb-ok-button = .label = { COPY(from_path, "spaceAlert.under5GB.okButton.label")} .accesskey = { COPY(from_path, "spaceAlert.under5GB.okButton.accesskey")} desktop-folder-name = { COPY(from_path, "desktopFolderName")} downloads-folder-name = { COPY(from_path, "downloadsFolderName")} choose-download-folder-title = { COPY(from_path, "chooseDownloadFolderTitle")} """, from_path= "browser/chrome/browser/preferences/preferences.properties")) ctx.add_transforms( "browser/browser/preferences/preferences.ftl", "browser/browser/preferences/preferences.ftl", [ FTL.Message( id=FTL.Identifier("space-alert-under-5gb-message"), value=REPLACE( "browser/chrome/browser/preferences/preferences.properties", "spaceAlert.under5GB.message", { "%S": TERM_REFERENCE("-brand-short-name"), })), FTL.Message( id=FTL.Identifier("space-alert-over-5gb-pref-button"), 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( "browser/chrome/browser/preferences/preferences.properties", "spaceAlert.over5GB.prefButtonWin.label" )), FTL.Variant( key=FTL.Identifier("other"), default=True, value=COPY( "browser/chrome/browser/preferences/preferences.properties", "spaceAlert.over5GB.prefButton.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( "browser/chrome/browser/preferences/preferences.properties", "spaceAlert.over5GB.prefButtonWin.accesskey" )), FTL.Variant( key=FTL.Identifier("other"), default=True, value=COPY( "browser/chrome/browser/preferences/preferences.properties", "spaceAlert.over5GB.prefButton.accesskey" )), ])) ])), ]), FTL.Message( id=FTL.Identifier("space-alert-over-5gb-message"), 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( "browser/chrome/browser/preferences/preferences.properties", "spaceAlert.over5GB.messageWin1", { "%S": TERM_REFERENCE( "-brand-short-name"), })), FTL.Variant( key=FTL.Identifier("other"), default=True, value=REPLACE( "browser/chrome/browser/preferences/preferences.properties", "spaceAlert.over5GB.message1", { "%S": TERM_REFERENCE( "-brand-short-name"), })), ])) ])), ], ) ctx.add_transforms( "browser/browser/preferences/permissions.ftl", "browser/browser/preferences/permissions.ftl", transforms_from( """ permissions-capabilities-listitem-allow = .value = { COPY(from_path, "can")} permissions-capabilities-listitem-allow-first-party = .value = { COPY(from_path, "canAccessFirstParty")} permissions-capabilities-listitem-allow-session = .value = { COPY(from_path, "canSession")} permissions-capabilities-listitem-block = .value = { COPY(from_path, "cannot")} """, from_path= "browser/chrome/browser/preferences/preferences.properties"))
def migrate(ctx): """Bug 1445694 - Migrate Preferences::Sync to Fluent, part {index}.""" ctx.add_transforms( 'browser/browser/branding/sync-brand.ftl', 'browser/browser/branding/sync-brand.ftl', [ FTL.Term( id=FTL.Identifier('-fxaccount-brand-name'), value=COPY( 'browser/chrome/browser/syncBrand.dtd', 'syncBrand.fxAccount.label' ) ), ] ) ctx.add_transforms( 'browser/browser/preferences/preferences.ftl', 'browser/browser/preferences/preferences.ftl', [ FTL.Message( id=FTL.Identifier('sync-signedout-caption'), value=COPY( 'browser/chrome/browser/preferences/sync.dtd', 'signedOut.caption', ), ), FTL.Message( id=FTL.Identifier('sync-signedout-description'), value=COPY( 'browser/chrome/browser/preferences/sync.dtd', 'signedOut.description', ), ), FTL.Message( id=FTL.Identifier('sync-signedout-account-title'), value=REPLACE( 'browser/chrome/browser/preferences/sync.dtd', 'signedOut.accountBox.title', { '&syncBrand.fxAccount.label;': MESSAGE_REFERENCE('-fxaccount-brand-name') }, ), ), FTL.Message( id=FTL.Identifier('sync-signedout-account-create'), value=COPY( 'browser/chrome/browser/preferences/sync.dtd', 'signedOut.accountBox.create2', ), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'signedOut.accountBox.create2.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sync-signedout-account-signin'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'signedOut.accountBox.signin2', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'signedOut.accountBox.signin2.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sync-profile-picture'), attributes=[ FTL.Attribute( FTL.Identifier('tooltiptext'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'profilePicture.tooltip', ), ), ], ), FTL.Message( id=FTL.Identifier('sync-disconnect'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'disconnect3.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'disconnect3.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sync-manage-account'), value=COPY( 'browser/chrome/browser/preferences/sync.dtd', 'verifiedManage.label', ), attributes=[ FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'verifiedManage.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sync-signedin-unverified'), value=CONCAT_BEFORE_AFTER( COPY( 'browser/chrome/browser/preferences/sync.dtd', 'signedInUnverified.beforename.label', ), EXTERNAL_ARGUMENT('email'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'signedInUnverified.aftername.label', ), ), ), FTL.Message( id=FTL.Identifier('sync-signedin-login-failure'), value=CONCAT_BEFORE_AFTER( COPY( 'browser/chrome/browser/preferences/sync.dtd', 'signedInLoginFailure.beforename.label', ), EXTERNAL_ARGUMENT('email'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'signedInLoginFailure.aftername.label', ), ) ), FTL.Message( id=FTL.Identifier('sync-resend-verification'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'resendVerification.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'resendVerification.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sync-remove-account'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'removeAccount.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'removeAccount.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sync-sign-in'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'signIn.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'signIn.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sync-signedin-settings-header'), value=COPY( 'browser/chrome/browser/preferences/sync.dtd', 'signedIn.settings.label', ), ), FTL.Message( id=FTL.Identifier('sync-signedin-settings-desc'), value=REPLACE( 'browser/chrome/browser/preferences/sync.dtd', 'signedIn.settings.description', { '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name') }, ), ), FTL.Message( id=FTL.Identifier('sync-engine-bookmarks'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.bookmarks.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.bookmarks.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sync-engine-history'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.history.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.history.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sync-engine-tabs'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.tabs.label2', ), ), FTL.Attribute( FTL.Identifier('tooltiptext'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.tabs.title', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.tabs.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sync-engine-logins'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.logins.label', ), ), FTL.Attribute( FTL.Identifier('tooltiptext'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.logins.title', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.logins.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sync-engine-addresses'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.addresses.label', ), ), FTL.Attribute( FTL.Identifier('tooltiptext'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.addresses.title', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.addresses.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sync-engine-creditcards'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.creditcards.label', ), ), FTL.Attribute( FTL.Identifier('tooltiptext'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.creditcards.title', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.creditcards.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sync-engine-addons'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.addons.label', ), ), FTL.Attribute( FTL.Identifier('tooltiptext'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.addons.title', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.addons.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sync-engine-prefs'), attributes=[ FTL.Attribute( FTL.Identifier('label'), 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/sync.dtd', 'engine.prefsWin.label' ) ), FTL.Variant( key=FTL.VariantName('other'), default=True, value=COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.prefs.label' ) ) ] )), ]), ), FTL.Attribute( FTL.Identifier('tooltiptext'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.prefs.title' ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'engine.prefs.accesskey' ), ), ], ), FTL.Message( id=FTL.Identifier('sync-device-name-header'), value=COPY( 'browser/chrome/browser/preferences/sync.dtd', 'fxaSyncDeviceName.label', ), ), FTL.Message( id=FTL.Identifier('sync-device-name-change'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'changeSyncDeviceName2.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'changeSyncDeviceName2.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sync-device-name-cancel'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'cancelChangeSyncDeviceName.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'cancelChangeSyncDeviceName.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sync-device-name-save'), attributes=[ FTL.Attribute( FTL.Identifier('label'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'saveChangeSyncDeviceName.label', ), ), FTL.Attribute( FTL.Identifier('accesskey'), COPY( 'browser/chrome/browser/preferences/sync.dtd', 'saveChangeSyncDeviceName.accesskey', ), ), ], ), FTL.Message( id=FTL.Identifier('sync-mobilepromo-single'), value=COPY( 'browser/chrome/browser/preferences/sync.dtd', 'mobilepromo.singledevice', ), ), FTL.Message( id=FTL.Identifier('sync-mobilepromo-multi'), value=COPY( 'browser/chrome/browser/preferences/sync.dtd', 'mobilepromo.multidevice', ), ), FTL.Message( id=FTL.Identifier('sync-tos-link'), value=COPY( 'browser/chrome/browser/preferences/sync.dtd', 'prefs.tosLink.label', ), ), FTL.Message( id=FTL.Identifier('sync-fxa-privacy-notice'), value=COPY( 'browser/chrome/browser/preferences/sync.dtd', 'fxaPrivacyNotice.link.label', ), ), ] )
def migrate(ctx): """Bug 1453480 - Migrate Fluent resources to use DOM Overlays, part {index}.""" ctx.add_transforms( 'browser/browser/preferences/preferences.ftl', 'browser/browser/preferences/preferences.ftl', [ FTL.Message( id=FTL.Identifier('search-results-empty-message'), value=FTL.Pattern(elements=[ FTL.Placeable(expression=FTL.SelectExpression( expression=FTL.CallExpression( callee=FTL.Function('PLATFORM')), variants=[ FTL.Variant( key=FTL.VariantName('windows'), default=False, value=REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'searchResults.sorryMessageWin', { '%S': FTL.TextElement( '<span data-l10n-name="query"></span>' ) })), FTL.Variant( key=FTL.VariantName('other'), default=True, value=REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'searchResults.sorryMessageUnix', { '%S': FTL.TextElement( '<span data-l10n-name="query"></span>' ) })) ])) ])), FTL.Message( id=FTL.Identifier('search-results-help-link'), value=REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'searchResults.needHelp3', { '%S': CONCAT( FTL.TextElement('<a data-l10n-name="url">'), REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'searchResults.needHelpSupportLink', { '%S': MESSAGE_REFERENCE('-brand-short-name'), }), FTL.TextElement('</a>')) })), FTL.Message( id=FTL.Identifier('update-application-version'), value=CONCAT( COPY('browser/chrome/browser/preferences/advanced.dtd', 'updateApplication.version.pre'), EXTERNAL_ARGUMENT('version'), COPY('browser/chrome/browser/preferences/advanced.dtd', 'updateApplication.version.post'), FTL.TextElement(' <a data-l10n-name="learn-more">'), COPY('browser/chrome/browser/aboutDialog.dtd', 'releaseNotes.link'), FTL.TextElement('</a>'))), FTL.Message( id=FTL.Identifier( 'performance-limit-content-process-blocked-desc'), value=CONCAT( REPLACE('browser/chrome/browser/preferences/advanced.dtd', 'limitContentProcessOption.disabledDescription', { '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name') }), FTL.TextElement(' <a data-l10n-name="learn-more">'), COPY('browser/chrome/browser/preferences/advanced.dtd', 'limitContentProcessOption.disabledDescriptionLink'), FTL.TextElement('</a>'))), FTL.Message( id=FTL.Identifier('tracking-desc'), value=CONCAT( COPY('browser/chrome/browser/preferences/privacy.dtd', 'trackingProtection3.description'), FTL.TextElement(' <a data-l10n-name="learn-more">'), COPY('browser/chrome/browser/preferences/privacy.dtd', 'trackingProtectionLearnMore2.label'), FTL.TextElement('</a>'))), ])
def migrate(ctx): """Bug 1424682 - Migrate the chrome of Preferences to Fluent, part {index}.""" ctx.add_transforms( 'browser/browser/preferences/preferences.ftl', 'browser/locales/en-US/browser/preferences/preferences.ftl', [ FTL.Message( id=FTL.Identifier('pref-page'), attributes=[ FTL.Attribute( FTL.Identifier('title'), 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=COPY( 'browser/chrome/browser/preferences/preferences.dtd', 'prefWindow.titleWin')), FTL.Variant( key=FTL.VariantName('other'), default=True, value=COPY( 'browser/chrome/browser/preferences/preferences.dtd', 'prefWindow.title')) ])) ])) ]), FTL.Message( id=FTL.Identifier('search-input'), attributes=[ FTL.Attribute( FTL.Identifier('style'), CONCAT( FTL.TextElement('width: '), COPY( 'browser/chrome/browser/preferences/preferences.dtd', 'searchField.width')), ) ]), FTL.Message( id=FTL.Identifier('pane-general-title'), value=COPY( 'browser/chrome/browser/preferences/preferences.dtd', 'paneGeneral.title')), FTL.Message(id=FTL.Identifier('category-general'), attributes=[ FTL.Attribute( FTL.Identifier('tooltiptext'), CONCAT( MESSAGE_REFERENCE('pane-general-title'))) ]), FTL.Message( id=FTL.Identifier('pane-search-title'), value=COPY( 'browser/chrome/browser/preferences/preferences.dtd', 'paneSearch.title')), FTL.Message(id=FTL.Identifier('category-search'), attributes=[ FTL.Attribute( FTL.Identifier('tooltiptext'), CONCAT(MESSAGE_REFERENCE('pane-search-title'))) ]), FTL.Message( id=FTL.Identifier('pane-privacy-title'), value=COPY( 'browser/chrome/browser/preferences/preferences.dtd', 'panePrivacySecurity.title')), FTL.Message(id=FTL.Identifier('category-privacy'), attributes=[ FTL.Attribute( FTL.Identifier('tooltiptext'), CONCAT( MESSAGE_REFERENCE('pane-privacy-title'))) ]), FTL.Message( id=FTL.Identifier('pane-sync-title'), value=COPY( 'browser/chrome/browser/preferences/preferences.dtd', 'paneSync1.title')), FTL.Message(id=FTL.Identifier('category-sync'), attributes=[ FTL.Attribute( FTL.Identifier('tooltiptext'), CONCAT(MESSAGE_REFERENCE('pane-sync-title'))) ]), FTL.Message( id=FTL.Identifier('help-button-label'), value=REPLACE( 'browser/chrome/browser/preferences/preferences.dtd', 'helpButton2.label', { '&brandShortName;': MESSAGE_REFERENCE('-brand-short-name') })), FTL.Message( id=FTL.Identifier('focus-search'), attributes=[ FTL.Attribute( FTL.Identifier('key'), COPY('toolkit/chrome/passwordmgr/passwordManager.dtd', 'focusSearch1.key')) ]), FTL.Message(id=FTL.Identifier('close-button'), attributes=[ FTL.Attribute( FTL.Identifier('aria-label'), COPY('toolkit/chrome/global/preferences.dtd', 'preferencesCloseButton.label')) ]), FTL.Message( id=FTL.Identifier('feature-enable-requires-restart'), value=REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'featureEnableRequiresRestart', {'%S': MESSAGE_REFERENCE('-brand-short-name')})), FTL.Message( id=FTL.Identifier('feature-disable-requires-restart'), value=REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'featureDisableRequiresRestart', {'%S': MESSAGE_REFERENCE('-brand-short-name')})), FTL.Message( id=FTL.Identifier('should-restart-title'), value=REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'shouldRestartTitle', {'%S': MESSAGE_REFERENCE('-brand-short-name')})), FTL.Message( id=FTL.Identifier('should-restart-ok'), value=REPLACE( 'browser/chrome/browser/preferences/preferences.properties', 'okToRestartButton', {'%S': MESSAGE_REFERENCE('-brand-short-name')})), FTL.Message( id=FTL.Identifier('restart-later'), value=COPY( 'browser/chrome/browser/preferences/preferences.properties', 'restartLater', )), ])