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 1845123 - Use moz-message-bar to show extension shortcut warnings…
… in about:addons. r=tgiles,fluent-reviewers,extension-reviewers,flod,rpl Differential Revision: https://phabricator.services.mozilla.com/D186173
- Loading branch information
ganna
committed
Aug 29, 2023
1 parent
8723a9f
commit 61e4901
Showing
4 changed files
with
37 additions
and
15 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
python/l10n/fluent_migrations/bug_1845123_mozMessageBar_aboutAddons_shortcutWarnings.py
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,21 @@ | ||
# Any copyright is dedicated to the Public Domain. | ||
# http://creativecommons.org/publicdomain/zero/1.0/ | ||
|
||
import fluent.syntax.ast as FTL | ||
from fluent.migrate.helpers import transforms_from | ||
|
||
|
||
def migrate(ctx): | ||
"""Bug 1845123 - Use moz-message-bar to show extension shortcut warnings in about:addons, part {index}.""" | ||
aboutAddons_ftl = "toolkit/toolkit/about/aboutAddons.ftl" | ||
ctx.add_transforms( | ||
aboutAddons_ftl, | ||
aboutAddons_ftl, | ||
transforms_from( | ||
""" | ||
shortcuts-duplicate-warning-message2 = | ||
.message = {COPY_PATTERN(from_path, "shortcuts-duplicate-warning-message")} | ||
""", | ||
from_path=aboutAddons_ftl, | ||
), | ||
) |
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