Bug 1514347 - Remove Fluent migration recipes for Firefox 64 r=stas
authorFrancesco Lodolo (:flod) <flod@lodolo.net>
Fri, 14 Dec 2018 20:18:59 +0000
changeset 450578 2286c129387080cc0bb809158d3c38d8ccff7bfa
parent 450577 a743dea491c904fa89cb0f3a3a3b5945ed4330bd
child 450579 90a1eb1a99de210c7148860d187baf2d13c2c455
push id35207
push useraciure@mozilla.com
push dateSat, 15 Dec 2018 02:27:37 +0000
treeherdermozilla-central@d8a944c012a7 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersstas
bugs1514347
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1514347 - Remove Fluent migration recipes for Firefox 64 r=stas Differential Revision: https://phabricator.services.mozilla.com/D14608
python/l10n/fluent_migrations/bug_1411707_findbar.py
python/l10n/fluent_migrations/bug_1486934_aboutAbout.py
python/l10n/fluent_migrations/bug_1486935_aboutprofiles.py
python/l10n/fluent_migrations/bug_1486936_about_config.py
python/l10n/fluent_migrations/bug_1486937_abouturlclassifier.py
python/l10n/fluent_migrations/bug_1488788_aboutrestartrequired.py
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1411707_findbar.py
+++ /dev/null
@@ -1,42 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate.helpers import transforms_from
-
-
-def migrate(ctx):
-    """Bug 1411707 - Migrate the findbar XBL binding to a Custom Element, part {index}."""
-
-    ctx.add_transforms(
-        'toolkit/toolkit/main-window/findbar.ftl',
-        'toolkit/toolkit/main-window/findbar.ftl',
-        transforms_from(
-"""
-findbar-next =
-    .tooltiptext = { COPY(from_path, "next.tooltip") }
-findbar-previous =
-    .tooltiptext = { COPY(from_path, "previous.tooltip") }
-
-findbar-find-button-close =
-    .tooltiptext = { COPY(from_path, "findCloseButton.tooltip") }
-
-findbar-highlight-all =
-    .label = { COPY(from_path, "highlightAll.label") }
-    .accesskey = { COPY(from_path, "highlightAll.accesskey") }
-    .tooltiptext = { COPY(from_path, "highlightAll.tooltiptext") }
-
-findbar-case-sensitive =
-    .label = { COPY(from_path, "caseSensitive.label") }
-    .accesskey = { COPY(from_path, "caseSensitive.accesskey") }
-    .tooltiptext = { COPY(from_path, "caseSensitive.tooltiptext") }
-
-findbar-entire-word =
-    .label = { COPY(from_path, "entireWord.label") }
-    .accesskey = { COPY(from_path, "entireWord.accesskey") }
-    .tooltiptext = { COPY(from_path, "entireWord.tooltiptext") }
-""", from_path="toolkit/chrome/global/findbar.dtd")
-    )
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1486934_aboutAbout.py
+++ /dev/null
@@ -1,21 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate.helpers import transforms_from
-
-def migrate(ctx):
-    """Bug 1486934 - Modify about:about to use Fluent for localization, part {index}."""
-
-    ctx.add_transforms(
-        "toolkit/toolkit/about/aboutAbout.ftl",
-        "toolkit/toolkit/about/aboutAbout.ftl",
-        transforms_from(
-"""
-about-about-title = { COPY("toolkit/chrome/global/aboutAbout.dtd", "aboutAbout.title") }
-about-about-note = { COPY("toolkit/chrome/global/aboutAbout.dtd", "aboutAbout.note", trim:"True") }
-""")
-)
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1486935_aboutprofiles.py
+++ /dev/null
@@ -1,138 +0,0 @@
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate.helpers import transforms_from
-from fluent.migrate.helpers import VARIABLE_REFERENCE
-from fluent.migrate import REPLACE
-from fluent.migrate import COPY
-
-
-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"
-                                    )
-                                )
-                            ]
-                        )
-                    )
-                ]
-            )
-        )
-    ]
-)
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1486936_about_config.py
+++ /dev/null
@@ -1,125 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate.helpers import transforms_from, VARIABLE_REFERENCE
-from fluent.migrate import REPLACE, COPY
-
-def migrate(ctx):
-	"""Bug 1486936 - Convert about:config to using Fluent for localization, part {index}."""
-
-	ctx.add_transforms(
-	"toolkit/toolkit/about/aboutConfig.ftl",
-	"toolkit/toolkit/about/aboutConfig.ftl",
-	transforms_from(
-"""
-config-window =
-  .title = { COPY(from_path, "window.title") }
-config-about-warning-title =
-  .value = { COPY(from_path, "aboutWarningTitle.label") }
-config-about-warning-text = { COPY(from_path, "aboutWarningText.label") }
-config-about-warning-button = 
-  .label = { COPY(from_path, "aboutWarningButton2.label") }
-config-about-warning-checkbox =
-  .label = { COPY(from_path, "aboutWarningCheckbox.label") }
-config-search-prefs =
-  .value = { COPY(from_path, "searchPrefs.label") }
-  .accesskey = { COPY(from_path, "searchPrefs.accesskey") }
-config-focus-search =
-  .key = { COPY(from_path, "focusSearch.key") }
-config-focus-search-2 =
-  .key = { COPY(from_path, "focusSearch2.key") }
-config-pref-column =
-  .label = { COPY(from_path, "prefColumn.label") }
-config-lock-column =
-  .label = { COPY(from_path, "lockColumn.label") }
-config-type-column =
-  .label = { COPY(from_path, "typeColumn.label") }
-config-value-column =
-  .label = { COPY(from_path, "valueColumn.label") }
-config-pref-column-header =
-  .tooltip = { COPY(from_path, "prefColumnHeader.tooltip") }
-config-column-chooser =
-  .tooltip = { COPY(from_path, "columnChooser.tooltip") }
-config-copy-pref =
-  .key = { COPY(from_path, "copyPref.key") }
-  .label = { COPY(from_path, "copyPref.label") }
-  .accesskey = { COPY(from_path, "copyPref.accesskey") }
-config-copy-name =
-  .label = { COPY(from_path, "copyName.label") }
-  .accesskey = { COPY(from_path, "copyName.accesskey") }
-config-copy-value =
-  .label = { COPY(from_path, "copyValue.label") }
-  .accesskey = { COPY(from_path, "copyValue.accesskey") }
-config-modify =
-  .label = { COPY(from_path, "modify.label") }
-  .accesskey = { COPY(from_path, "modify.accesskey") }
-config-toggle =
-  .label = { COPY(from_path, "toggle.label") }
-  .accesskey = { COPY(from_path, "toggle.accesskey") }
-config-reset =
-  .label = { COPY(from_path, "reset.label") }
-  .accesskey = { COPY(from_path, "reset.accesskey") }
-config-new =
-  .label = { COPY(from_path, "new.label") }
-  .accesskey = { COPY(from_path, "new.accesskey") }
-config-string =
-  .label = { COPY(from_path, "string.label") }
-  .accesskey = { COPY(from_path, "string.accesskey") }
-config-integer =
-  .label = { COPY(from_path, "integer.label") }
-  .accesskey = { COPY(from_path, "integer.accesskey") }
-config-boolean =
-  .label = { COPY(from_path, "boolean.label") }
-  .accesskey = { COPY(from_path, "boolean.accesskey") }
-""", from_path="toolkit/chrome/global/config.dtd"))
-
-	ctx.add_transforms(
-	"toolkit/toolkit/about/aboutConfig.ftl",
-	"toolkit/toolkit/about/aboutConfig.ftl",
-		transforms_from(
-"""
-config-default = { COPY(from_path, "default") }
-config-modified = { COPY(from_path, "modified") }
-config-locked = { COPY(from_path, "locked") }
-config-property-string = { COPY(from_path, "string") }
-config-property-int = { COPY(from_path, "int") }
-config-property-bool = { COPY(from_path, "bool") }
-config-new-prompt = { COPY(from_path, "new_prompt") }
-config-nan-title = { COPY(from_path, "nan_title") }
-config-nan-text = { COPY(from_path, "nan_text") }
-""", from_path="toolkit/chrome/global/config.properties"))
-
-	ctx.add_transforms(
-	"toolkit/toolkit/about/aboutConfig.ftl",
-	"toolkit/toolkit/about/aboutConfig.ftl",
-	[
-		FTL.Message(
-			id=FTL.Identifier("config-new-title"),
-			value=REPLACE(
-				"toolkit/chrome/global/config.properties",
-				"new_title",
-				{
-					"%S": VARIABLE_REFERENCE(
-						"type"
-					),
-				}
-			)
-		),
-		FTL.Message(
-			id=FTL.Identifier("config-modify-title"),
-			value=REPLACE(
-				"toolkit/chrome/global/config.properties",
-				"modify_title",
-				{
-					"%S": VARIABLE_REFERENCE(
-						"type"
-					),
-				}
-			)
-		),
-	]
-	)
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1486937_abouturlclassifier.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate.helpers import transforms_from
-from fluent.migrate.helpers import VARIABLE_REFERENCE
-from fluent.migrate import REPLACE
-
-
-def migrate(ctx):
-    """Bug 1486937 - Migrate about:url-classifier to Fluent, part {index}."""
-
-    ctx.add_transforms(
-        "toolkit/toolkit/about/url-classifier.ftl",
-        "toolkit/toolkit/about/url-classifier.ftl",
-        transforms_from(
-"""
-url-classifier-title = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.title")}
-url-classifier-provider-title = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.providerTitle")}
-url-classifier-provider = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.provider")}
-url-classifier-provider-last-update-time = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.providerLastUpdateTime")}
-url-classifier-provider-next-update-time = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.providerNextUpdateTime")}
-url-classifier-provider-back-off-time = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.providerBackOffTime")}
-url-classifier-provider-last-update-status = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.providerLastUpdateStatus")}
-url-classifier-provider-update-btn = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.providerUpdateBtn")}
-url-classifier-cache-title = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.cacheTitle")}
-url-classifier-cache-refresh-btn = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.cacheRefreshBtn")}
-url-classifier-cache-clear-btn = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.cacheClearBtn")}
-url-classifier-cache-table-name = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.cacheTableName")}
-url-classifier-cache-ncache-entries = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.cacheNCacheEntries")}
-url-classifier-cache-pcache-entries = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.cachePCacheEntries")}
-url-classifier-cache-show-entries = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.cacheShowEntries")}
-url-classifier-cache-entries = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.cacheEntries")}
-url-classifier-cache-prefix = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.cachePrefix")}
-url-classifier-cache-ncache-expiry = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.cacheNCacheExpiry")}
-url-classifier-cache-fullhash = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.cacheFullhash")}
-url-classifier-cache-pcache-expiry = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.cachePCacheExpiry")}
-url-classifier-debug-title = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.debugTitle")}
-url-classifier-debug-module-btn = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.debugModuleBtn")}
-url-classifier-debug-file-btn = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.debugFileBtn")}
-url-classifier-debug-js-log-chk = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.debugJSLogChk")}
-url-classifier-debug-sb-modules = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.debugSBModules")}
-url-classifier-debug-modules = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.debugModules")}
-url-classifier-debug-sbjs-modules = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.debugSBJSModules")}
-url-classifier-debug-file = { COPY("toolkit/chrome/global/aboutUrlClassifier.dtd", "aboutUrlClassifier.debugFile")}
-
-url-classifier-trigger-update = { COPY("toolkit/chrome/global/aboutUrlClassifier.properties", "TriggerUpdate")}
-url-classifier-not-available = { COPY("toolkit/chrome/global/aboutUrlClassifier.properties", "NotAvailable")}
-url-classifier-disable-sbjs-log = { COPY("toolkit/chrome/global/aboutUrlClassifier.properties", "DisableSBJSLog")}
-url-classifier-enable-sbjs-log = { COPY("toolkit/chrome/global/aboutUrlClassifier.properties", "EnableSBJSLog")}
-url-classifier-enabled = { COPY("toolkit/chrome/global/aboutUrlClassifier.properties", "Enabled")}
-url-classifier-disabled = { COPY("toolkit/chrome/global/aboutUrlClassifier.properties", "Disabled")}
-url-classifier-updating = { COPY("toolkit/chrome/global/aboutUrlClassifier.properties", "Updating")}
-url-classifier-cannot-update = { COPY("toolkit/chrome/global/aboutUrlClassifier.properties", "CannotUpdate")}
-url-classifier-success = { COPY("toolkit/chrome/global/aboutUrlClassifier.properties", "success")}
-""")
-    )
-
-    ctx.add_transforms(
-    "toolkit/toolkit/about/url-classifier.ftl",
-    "toolkit/toolkit/about/url-classifier.ftl",
-    [
-        FTL.Message(
-            id=FTL.Identifier("url-classifier-update-error"),
-            value=REPLACE(
-                "toolkit/chrome/global/aboutUrlClassifier.properties",
-                "updateError",
-                {
-                    "%S": VARIABLE_REFERENCE(
-                        "error"
-                    ),
-                }
-            )
-        ),
-        FTL.Message(
-            id=FTL.Identifier("url-classifier-download-error"),
-            value=REPLACE(
-                "toolkit/chrome/global/aboutUrlClassifier.properties",
-                "downloadError",
-                {
-                    "%S": VARIABLE_REFERENCE(
-                        "error"
-                    ),
-                }
-            )
-        ),
-    ]
-)
deleted file mode 100644
--- a/python/l10n/fluent_migrations/bug_1488788_aboutrestartrequired.py
+++ /dev/null
@@ -1,25 +0,0 @@
-# coding=utf8
-
-# Any copyright is dedicated to the Public Domain.
-# http://creativecommons.org/publicdomain/zero/1.0/
-
-from __future__ import absolute_import
-import fluent.syntax.ast as FTL
-from fluent.migrate.helpers import transforms_from
-from fluent.migrate.helpers import TERM_REFERENCE
-from fluent.migrate import REPLACE
-
-def migrate(ctx):
-    """Bug 1488788- Migrate about:restartrequired from DTD to Fluent, part {index}."""
-
-    ctx.add_transforms(
-        "browser/browser/aboutRestartRequired.ftl",
-        "browser/browser/aboutRestartRequired.ftl",
-        transforms_from(
-"""
-restart-required-title = { COPY("browser/chrome/browser/aboutRestartRequired.dtd", "restartRequired.title") }
-
-restart-required-header = { COPY("browser/chrome/browser/aboutRestartRequired.dtd", "restartRequired.header") }
-""")
-        )
-