Bug 1250120 - Change name to Responsive Design Mode in Tools -> Web Developer menu r=jryans

This commit is contained in:
Bryan Clark
2016-03-28 20:46:18 -07:00
committed by J. Ryan Stinnett
parent 3342fc0261
commit b633562c37
6 changed files with 14 additions and 14 deletions

View File

@@ -541,7 +541,7 @@
accesskey="&browserConsoleCmd.accesskey;"/>
<menuitem id="menu_responsiveUI"
observes="devtoolsMenuBroadcaster_ResponsiveUI"
accesskey="&responsiveDesignTool.accesskey;"/>
accesskey="&responsiveDesignMode.accesskey;"/>
<menuitem id="menu_eyedropper"
observes="devtoolsMenuBroadcaster_Eyedropper"
accesskey="&eyedropper.accesskey;"/>

View File

@@ -227,7 +227,7 @@
command="Tools:Scratchpad"
key="key_scratchpad"/>
<broadcaster id="devtoolsMenuBroadcaster_ResponsiveUI"
label="&responsiveDesignTool.label;"
label="&responsiveDesignMode.label;"
type="checkbox" autocheck="false"
command="Tools:ResponsiveUI"
key="key_responsiveUI"/>
@@ -304,7 +304,7 @@
<key id="key_browserToolbox" key="&browserToolboxCmd.commandkey;" command="Tools:BrowserToolbox" modifiers="accel,alt,shift"/>
<key id="key_devToolbar" keycode="&devToolbar.keycode;" modifiers="shift"
keytext="&devToolbar.keytext;" command="Tools:DevToolbarFocus"/>
<key id="key_responsiveUI" key="&responsiveDesignTool.commandkey;" command="Tools:ResponsiveUI"
<key id="key_responsiveUI" key="&responsiveDesignMode.commandkey;" command="Tools:ResponsiveUI"
#ifdef XP_MACOSX
modifiers="accel,alt"
#else

View File

@@ -275,9 +275,9 @@ These should match what Safari and other Apple applications use on OS X Lion. --
<!ENTITY inspectContextMenu.label "Inspect Element">
<!ENTITY inspectContextMenu.accesskey "Q">
<!ENTITY responsiveDesignTool.label "Responsive Design View">
<!ENTITY responsiveDesignTool.accesskey "R">
<!ENTITY responsiveDesignTool.commandkey "M">
<!ENTITY responsiveDesignMode.label "Responsive Design Mode">
<!ENTITY responsiveDesignMode.accesskey "R">
<!ENTITY responsiveDesignMode.commandkey "M">
<!ENTITY eyedropper.label "Eyedropper">
<!ENTITY eyedropper.accesskey "Y">

View File

@@ -45,12 +45,12 @@ responsiveUI.customResolution=%S (custom)
# For example: "320x480 (phone)".
responsiveUI.namedResolution=%S (%S)
# LOCALIZATION NOTE (responsiveUI.customNamePromptTitle): prompt title when asking
# LOCALIZATION NOTE (responsiveUI.customNamePromptTitle1): prompt title when asking
# the user to specify a name for a new custom preset.
responsiveUI.customNamePromptTitle=Responsive Design View
responsiveUI.customNamePromptTitle1=Responsive Design Mode
# LOCALIZATION NOTE (responsiveUI.close): tooltip text of the close button.
responsiveUI.close=Leave Responsive Design View
# LOCALIZATION NOTE (responsiveUI.close1): tooltip text of the close button.
responsiveUI.close1=Leave Responsive Design Mode
# LOCALIZATION NOTE (responsiveUI.customNamePromptMsg): prompt message when asking
# the user to specify a name for a new custom preset.

View File

@@ -460,7 +460,7 @@ ResponsiveUI.prototype = {
* <menulist class="devtools-responsiveui-menulist"/> // presets
* <toolbarbutton tabindex="0" class="devtools-responsiveui-toolbarbutton" tooltiptext="rotate"/> // rotate
* <toolbarbutton tabindex="0" class="devtools-responsiveui-toolbarbutton" tooltiptext="screenshot"/> // screenshot
* <toolbarbutton tabindex="0" class="devtools-responsiveui-toolbarbutton" tooltiptext="Leave Responsive Design View"/> // close
* <toolbarbutton tabindex="0" class="devtools-responsiveui-toolbarbutton" tooltiptext="Leave Responsive Design Mode"/> // close
* </toolbar>
* <stack class="browserStack"> From tabbrowser.xml
* <browser/>
@@ -525,7 +525,7 @@ ResponsiveUI.prototype = {
this.closebutton = this.chromeDoc.createElement("toolbarbutton");
this.closebutton.setAttribute("tabindex", "0");
this.closebutton.className = "devtools-responsiveui-toolbarbutton devtools-responsiveui-close";
this.closebutton.setAttribute("tooltiptext", this.strings.GetStringFromName("responsiveUI.close"));
this.closebutton.setAttribute("tooltiptext", this.strings.GetStringFromName("responsiveUI.close1"));
this.closebutton.addEventListener("command", this.bound_close, true);
this.toolbar.appendChild(this.closebutton);
@@ -762,7 +762,7 @@ ResponsiveUI.prototype = {
let h = this.customPreset.height;
let newName = {};
let title = this.strings.GetStringFromName("responsiveUI.customNamePromptTitle");
let title = this.strings.GetStringFromName("responsiveUI.customNamePromptTitle1");
let message = this.strings.formatStringFromName("responsiveUI.customNamePromptMsg", [w, h], 2);
let promptOk = Services.prompt.prompt(null, title, message, newName, null, {});

View File

@@ -1032,7 +1032,7 @@ interface nsIDocShell : nsIDocShellTreeItem
* If deviceSizeIsPageSize is set to true, device-width/height media queries
* will be calculated from the page size, not the device size.
*
* Used by the Responsive Design View and B2G Simulator.
* Used by the Responsive Design Mode and B2G Simulator.
*
* Default is False.
* Default value can be overriden with