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;
}

View File

@@ -54,7 +54,9 @@
</menupopup>
</menu>
<menu id="context_sendTabToDevice"
class="sync-ui-item">
class="sync-ui-item"
data-lazy-l10n-id="tab-context-send-tabs-to-device"
data-l10n-args='{"tabCount": 1}'>
<menupopup id="context_sendTabToDevicePopupMenu"
onpopupshowing="gSync.populateSendTabToDevicesMenu(event.target, TabContextMenu.contextTab.linkedBrowser.currentURI.spec, TabContextMenu.contextTab.linkedBrowser.contentTitle, TabContextMenu.contextTab.multiselected);"/>
</menu>

View File

@@ -94,3 +94,11 @@ tab-context-move-tabs =
*[other] Move Tabs
}
.accesskey = v
tab-context-send-tabs-to-device =
.label =
{ $tabCount ->
[1] Send Tab to Device
*[other] Send { $tabCount } Tabs to Device
}
.accessKey = n