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 1786055 - Migrate styleeditor DTD localization to Fluent. r=nchev…
…obbe,fluent-reviewers,flod After the preceding change, the editMenuOverlay strings are only used by the styleeditor. Therefore it makes sense to migrate them here specifically to its localization file. Differential Revision: https://phabricator.services.mozilla.com/D155449
- Loading branch information
Showing
5 changed files
with
40 additions
and
21 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
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 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,30 @@ | ||
# 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 COPY | ||
|
||
|
||
def migrate(ctx): | ||
"""Bug 1786055 - Migrate styleeditor from DTD to Fluent, part {index}""" | ||
|
||
ctx.add_transforms( | ||
"devtools/client/styleeditor.ftl", | ||
"devtools/client/styleeditor.ftl", | ||
transforms_from( | ||
""" | ||
styleeditor-find = | ||
.label = { COPY(path1, "findCmd.label") } | ||
.accesskey = { COPY(path1, "findCmd.accesskey") } | ||
styleeditor-find-again = | ||
.label = { COPY(path1, "findAgainCmd.label") } | ||
.accesskey = { COPY(path1, "findAgainCmd.accesskey") } | ||
""", | ||
path1="toolkit/chrome/global/editMenuOverlay.dtd", | ||
), | ||
) |
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