diff --git a/browser/base/content/aboutRestartRequired.xhtml b/browser/base/content/aboutRestartRequired.xhtml index 03cf2f5e3f85..df6fdcc59125 100644 --- a/browser/base/content/aboutRestartRequired.xhtml +++ b/browser/base/content/aboutRestartRequired.xhtml @@ -1,56 +1,43 @@ - - + - - - %htmlDTD; - - %globalDTD; - - %brandDTD; - - %restartRequiredDTD; -]> +
-We will restore all your pages, windows and tabs afterwards, so you can be on your way quickly.
-"> - - diff --git a/browser/locales/jar.mn b/browser/locales/jar.mn index 0640725780a0..2f8fbcbbd26b 100644 --- a/browser/locales/jar.mn +++ b/browser/locales/jar.mn @@ -18,7 +18,6 @@ locale/browser/aboutPrivateBrowsing.dtd (%chrome/browser/aboutPrivateBrowsing.dtd) locale/browser/aboutRobots.dtd (%chrome/browser/aboutRobots.dtd) locale/browser/accounts.properties (%chrome/browser/accounts.properties) - locale/browser/aboutRestartRequired.dtd (%chrome/browser/aboutRestartRequired.dtd) locale/browser/aboutSearchReset.dtd (%chrome/browser/aboutSearchReset.dtd) locale/browser/aboutSessionRestore.dtd (%chrome/browser/aboutSessionRestore.dtd) locale/browser/aboutTabCrashed.dtd (%chrome/browser/aboutTabCrashed.dtd) diff --git a/python/l10n/fluent_migrations/bug_1488788_aboutrestartrequired.py b/python/l10n/fluent_migrations/bug_1488788_aboutrestartrequired.py new file mode 100644 index 000000000000..645b2ad987b4 --- /dev/null +++ b/python/l10n/fluent_migrations/bug_1488788_aboutrestartrequired.py @@ -0,0 +1,25 @@ +# 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") } +""") + ) +