Replace TEMP_ strings in hiddenWindow.xhtml

Restores correct menuitem labels and shortcuts.
This commit is contained in:
Abe Jellinek 2023-12-05 13:11:11 -05:00 committed by Dan Stillman
parent 5730bf690e
commit 0c5479f033

View file

@ -34,7 +34,12 @@
<!ENTITY % zoteroDTD SYSTEM "chrome://zotero/locale/zotero.dtd"> %zoteroDTD; <!ENTITY % zoteroDTD SYSTEM "chrome://zotero/locale/zotero.dtd"> %zoteroDTD;
]> ]>
<window id="main-window" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <window id="main-window" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml">
<html:link rel="localization" href="branding/brand.ftl"/>
<html:link rel="localization" href="browser/menubar.ftl"/>
<html:link rel="localization" href="browser/browserSets.ftl"/>
<script type="application/javascript"> <script type="application/javascript">
Components.utils.import("resource://gre/modules/Services.jsm"); Components.utils.import("resource://gre/modules/Services.jsm");
var { AppConstants } = ChromeUtils.import("resource://gre/modules/AppConstants.jsm"); var { AppConstants } = ChromeUtils.import("resource://gre/modules/AppConstants.jsm");
@ -82,33 +87,33 @@
</commandset> </commandset>
<keyset id="mainKeyset"> <keyset id="mainKeyset">
<key id="key_close" key="TEMP_closeCmd.key;" command="cmd_close" modifiers="accel"/> <key id="key_close" data-l10n-id="close-shortcut" command="cmd_close" modifiers="accel"/>
<key id="key_mainWindow" key="0" command="cmd_mainWindow" modifiers="accel"/> <key id="key_mainWindow" key="0" command="cmd_mainWindow" modifiers="accel"/>
<key id="key_preferencesCmdMac" <key id="key_preferencesCmdMac"
key="TEMP_preferencesCmdMac.commandkey;" data-l10n-id="preferences-shortcut"
modifiers="accel" modifiers="accel"
internal="true"/> internal="true"/>
<key id="key_hideThisAppCmdMac" <key id="key_hideThisAppCmdMac"
key="TEMP_hideThisAppCmdMac.commandkey;" data-l10n-id="hide-app-shortcut"
modifiers="accel" modifiers="accel"
internal="true"/> internal="true"/>
<key id="key_hideOtherAppsCmdMac" <key id="key_hideOtherAppsCmdMac"
key="TEMP_hideOtherAppsCmdMac.commandkey;" data-l10n-id="hide-other-apps-shortcut"
modifiers="accel,alt" modifiers="accel,alt"
internal="true"/> internal="true"/>
<key id="key_quitApplication" <key id="key_quitApplication"
key="TEMP_quitApplicationCmdMac.key;" data-l10n-id="quit-app-shortcut"
command="cmd_quitApplication" command="cmd_quitApplication"
modifiers="accel" modifiers="accel"
internal="true"/> internal="true"/>
<key id="key_minimizeWindow" <key id="key_minimizeWindow"
command="minimizeWindow" command="minimizeWindow"
key="TEMP_minimizeWindow.key;" data-l10n-id="window-minimize-command"
modifiers="accel"/> modifiers="accel"/>
</keyset> </keyset>
<menubar id="main-menubar"> <menubar id="main-menubar">
<menu id="fileMenu" label="TEMP_fileMenu.label;" accesskey="TEMP_fileMenu.accesskey;"> <menu id="fileMenu" data-l10n-id="menu-file">
<menupopup id="menu_FilePopup"> <menupopup id="menu_FilePopup">
<!-- This gets moved to the Application menu automatically --> <!-- This gets moved to the Application menu automatically -->
<menuitem id="aboutName" <menuitem id="aboutName"
@ -122,7 +127,7 @@
<menuitem id="menu_mac_services" <menuitem id="menu_mac_services"
label="&servicesMenuMac.label;"/> label="&servicesMenuMac.label;"/>
<menuitem id="menu_mac_hide_app" <menuitem id="menu_mac_hide_app"
label="TEMP_hideThisAppCmdMac.label;" data-l10n-id="menu-application-hide-this"
key="key_hideThisAppCmdMac"/> key="key_hideThisAppCmdMac"/>
<menuitem id="menu_mac_hide_others" <menuitem id="menu_mac_hide_others"
label="&hideOtherAppsCmdMac.label;" label="&hideOtherAppsCmdMac.label;"