Bug 1727484 - Convert the "Send Tab to Device" string in the tab context menu to title case. r=Gijs,fluent-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D124131
This commit is contained in:
Molly Howell
2021-09-01 00:18:57 +00:00
parent ae193f61c5
commit e9ba2664a2
3 changed files with 14 additions and 7 deletions

View File

@@ -1543,12 +1543,9 @@ var gSync = {
let tabCount = aTargetTab.multiselected
? gBrowser.multiSelectedTabsCount
: 1;
sendTabsToDevice.label = PluralForm.get(
tabCount,
gNavigatorBundle.getString("sendTabsToDevice.label")
).replace("#1", tabCount.toLocaleString());
sendTabsToDevice.accessKey = gNavigatorBundle.getString(
"sendTabsToDevice.accesskey"
sendTabsToDevice.setAttribute(
"data-l10n-args",
JSON.stringify({ tabCount })
);
sendTabsToDevice.hidden = false;
}