Bug 1097836 - Give users on Windows the choice between POSIX and Windows escaped "Copy as cURL" commands. r=Honza
authorgoncharov <real.trd@gmail.com>
Tue, 27 Aug 2019 14:46:33 +0000
changeset 11988 6a917edafb5e5d935ba823c4756e87ed842657b7
parent 11987 d6890fa7cb6749f545e8490f71141346cf597b11
child 11989 3560e6d8f24c46d1a98ed2c5079516f9bd37cbf1
push id172
push userflodolo@mozilla.com
push dateFri, 30 Aug 2019 05:08:04 +0000
reviewersHonza
bugs1097836
Bug 1097836 - Give users on Windows the choice between POSIX and Windows escaped "Copy as cURL" commands. r=Honza Differential Revision: https://phabricator.services.mozilla.com/D42699 X-Channel-Repo: mozilla-central X-Channel-Converted-Revision: 41b21e18ff5ae2e135dec99534dfe0fa091bf33d X-Channel-Repo: releases/mozilla-beta X-Channel-Revision: 9b31bfdfac102bced19d7e9b4a507bbf1ffc3b71 X-Channel-Repo: releases/mozilla-release X-Channel-Revision: b19ffb3ca153242cc668db6549940b421f176d4b X-Channel-Repo: releases/mozilla-esr68 X-Channel-Revision: 6da286bb33b5cee90f383d21b5835e81a4709388
devtools/client/netmonitor.properties
--- a/devtools/client/netmonitor.properties
+++ b/devtools/client/netmonitor.properties
@@ -1151,16 +1151,25 @@ netmonitor.context.copyRequestData.acces
 # The capitalization is part of the official name and should be used throughout all languages.
 # http://en.wikipedia.org/wiki/CURL
 netmonitor.context.copyAsCurl=Copy as cURL
 
 # LOCALIZATION NOTE (netmonitor.context.copyAsCurl.accesskey): This is the access key
 # for the Copy as cURL menu item displayed in the context menu for a request
 netmonitor.context.copyAsCurl.accesskey=C
 
+# LOCALIZATION NOTE (netmonitor.context.copyAsCurl.*): This is the template used to add
+# a target platform to the label for "Copy as cURL" command
+# e.g. Copy as cURL (Windows)
+# Localized label for "Copy as cURL": %S
+netmonitor.context.copyAsCurl.win=%S (Windows)
+netmonitor.context.copyAsCurl.win.accesskey=C
+netmonitor.context.copyAsCurl.posix=%S (POSIX)
+netmonitor.context.copyAsCurl.posix.accesskey=P
+
 # LOCALIZATION NOTE (netmonitor.context.copyAsFetch): This is the label displayed
 # on the context menu that copies the selected request as a fetch request.
 netmonitor.context.copyAsFetch=Copy as Fetch
 
 # LOCALIZATION NOTE (netmonitor.context.copyAsFetch.accesskey): This is the access key
 # for the Copy as fetch menu item displayed in the context menu for a request
 netmonitor.context.copyAsFetch.accesskey=F