forked from mozilla/gecko-dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1608200 - port toolkit/chrome/global/wizard.dtd to Fluent r=Gijs,…
…fluent-reviewers,flod Differential Revision: https://phabricator.services.mozilla.com/D66771 --HG-- extra : moz-landing-system : lando
- Loading branch information
Showing
5 changed files
with
116 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# 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 import COPY, REPLACE | ||
from fluent.migrate.helpers import MESSAGE_REFERENCE, TERM_REFERENCE | ||
|
||
def migrate(ctx): | ||
"""Bug 1608200 - Migrate wizard to Fluent, part {index}.""" | ||
|
||
ctx.add_transforms( | ||
"toolkit/toolkit/global/wizard.ftl", | ||
"toolkit/toolkit/global/wizard.ftl", | ||
transforms_from( | ||
""" | ||
wizard-macos-button-back = | ||
.label = { COPY(from_path, "button-back-mac.label") } | ||
.accesskey = { COPY(from_path, "button-back-mac.accesskey") } | ||
wizard-linux-button-back = | ||
.label = { COPY(from_path, "button-back-unix.label") } | ||
.accesskey = { COPY(from_path, "button-back-unix.accesskey") } | ||
wizard-win-button-back = | ||
.label = { COPY(from_path, "button-back-win.label") } | ||
.accesskey = { COPY(from_path, "button-back-win.accesskey") } | ||
wizard-macos-button-next = | ||
.label = { COPY(from_path, "button-next-mac.label") } | ||
.accesskey = { COPY(from_path, "button-next-mac.accesskey") } | ||
wizard-linux-button-next = | ||
.label = { COPY(from_path, "button-next-unix.label") } | ||
.accesskey = { COPY(from_path, "button-next-unix.accesskey") } | ||
wizard-win-button-next = | ||
.label = { COPY(from_path, "button-next-win.label") } | ||
.accesskey = { COPY(from_path, "button-next-win.accesskey") } | ||
wizard-macos-button-finish = | ||
.label = { COPY(from_path, "button-finish-mac.label") } | ||
wizard-linux-button-finish = | ||
.label = { COPY(from_path, "button-finish-unix.label") } | ||
wizard-win-button-finish = | ||
.label = { COPY(from_path, "button-finish-win.label") } | ||
wizard-macos-button-cancel = | ||
.label = { COPY(from_path, "button-cancel-mac.label") } | ||
wizard-linux-button-cancel = | ||
.label = { COPY(from_path, "button-cancel-unix.label") } | ||
wizard-win-button-cancel = | ||
.label = { COPY(from_path, "button-cancel-win.label") } | ||
""", from_path="toolkit/chrome/global/wizard.dtd")) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# This Source Code Form is subject to the terms of the Mozilla Public | ||
# License, v. 2.0. If a copy of the MPL was not distributed with this | ||
# file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
|
||
wizard-macos-button-back = | ||
.label = Go Back | ||
.accesskey = B | ||
wizard-linux-button-back = | ||
.label = Back | ||
.accesskey = B | ||
wizard-win-button-back = | ||
.label = < Back | ||
.accesskey = B | ||
wizard-macos-button-next = | ||
.label = Continue | ||
.accesskey = C | ||
wizard-linux-button-next = | ||
.label = Next | ||
.accesskey = N | ||
wizard-win-button-next = | ||
.label = Next > | ||
.accesskey = N | ||
wizard-macos-button-finish = | ||
.label = Done | ||
wizard-linux-button-finish = | ||
.label = Finish | ||
wizard-win-button-finish = | ||
.label = Finish | ||
wizard-macos-button-cancel = | ||
.label = Cancel | ||
wizard-linux-button-cancel = | ||
.label = Cancel | ||
wizard-win-button-cancel = | ||
.label = Cancel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters