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 1793557 - Convert Extension.jsm strings to Fluent. r=mkmelin,geck…
…oview-reviewers,robwu,flod,owlish This changes the arguments of `ExtensionData.formatPermissionStrings()`. The second `bundle` arg is dropped, and a `localization` option is added. Call sites in m-c are updated, but this will also need a matching update for Thunderbird. A few Thunderbird test cases will also need to be updated, as they currently point to a non-existing localization file paths "messenger/addons.ftl" and "messenger/addonPermissions.ftl". As discussed at the addon workweek, the Fluent l10n keys for extension permissions match the pattern: webext-perms-description-{name} where `{name}` is the permission's sanitized name. A fluent-lint exception is added for the capitalization of these generated names. To allow for message updates and subsequent l10n identifier updates, a `PERMISSION_L10N_ID_OVERRIDES` map is provided. Because Fluent localization keys are not enumerable and attempting to format a missing key is an error, the `PERMISSIONS_WITH_MESSAGE` set must be kept in sync with message updates. Differential Revision: https://phabricator.services.mozilla.com/D158663
- Loading branch information
Showing
18 changed files
with
1,118 additions
and
743 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
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
Oops, something went wrong.