Bug 1501886 - Migrate menubar to Fluent. r=fluent-reviewers,Pike,flod
authorZibi Braniecki <zbraniecki@mozilla.com>
Fri, 02 Aug 2019 16:07:44 +0000
changeset 11859 17135536a648f9b17e598366c461d022577ae42b
parent 11858 3ba11d4132da06b28f019481fcecc1e3d84b0b6b
child 11860 0dd659ee9b6f76f4e9d01938f1018a945a46dc51
push id158
push userflodolo@mozilla.com
push dateSat, 03 Aug 2019 12:11:35 +0000
reviewersfluent-reviewers, Pike, flod
bugs1501886
Bug 1501886 - Migrate menubar to Fluent. r=fluent-reviewers,Pike,flod Differential Revision: https://phabricator.services.mozilla.com/D34379 X-Channel-Repo: mozilla-central X-Channel-Converted-Revision: 1f622156e9eab1d2c58d5d77bb5908fcc83db253 X-Channel-Repo: releases/mozilla-beta X-Channel-Revision: e5d98eda2ec359a0968c567076b1a625cb6c99ce X-Channel-Repo: releases/mozilla-release X-Channel-Revision: 2fb19d0466d2f61674c0af80813645cccd510593 X-Channel-Repo: releases/mozilla-esr68 X-Channel-Revision: a8da73ce90a4110e14caaba3e93d8a086b3a0669
browser/browser/menubar.ftl
browser/chrome/browser/browser.dtd
new file mode 100644
--- /dev/null
+++ b/browser/browser/menubar.ftl
@@ -0,0 +1,282 @@
+# This Source Code Form is subject to the terms of the Mozilla Public
+# License, v. 2.0. If a copy of the MPL was not distributed with this
+# file, You can obtain one at http://mozilla.org/MPL/2.0/.
+
+## File Menu
+
+menu-file =
+    .label = File
+    .accesskey = F
+menu-file-new-tab =
+    .label = New Tab
+    .accesskey = T
+menu-file-new-container-tab =
+    .label = New Container Tab
+    .accesskey = b
+menu-file-new-window =
+    .label = New Window
+    .accesskey = N
+menu-file-new-private-window =
+    .label = New Private Window
+    .accesskey = W
+# "Open Location" is only displayed on macOS, and only on windows
+# that aren't main browser windows, or when there are no windows
+# but Firefox is still running.
+menu-file-open-location =
+    .label = Open Location…
+menu-file-open-file =
+    .label = Open File…
+    .accesskey = O
+menu-file-close =
+    .label = Close
+    .accesskey = C
+menu-file-close-window =
+    .label = Close Window
+    .accesskey = d
+menu-file-save-page =
+    .label = Save Page As…
+    .accesskey = A
+menu-file-email-link =
+    .label = Email Link…
+    .accesskey = E
+menu-file-print-setup =
+    .label = Page Setup…
+    .accesskey = u
+menu-file-print-preview =
+    .label = Print Preview
+    .accesskey = v
+menu-file-print =
+    .label = Print…
+    .accesskey = P
+menu-file-import-from-another-browser =
+    .label = Import from Another Browser…
+    .accesskey = I
+menu-file-go-offline =
+    .label = Work Offline
+    .accesskey = k
+
+## Edit Menu
+
+menu-edit =
+    .label = Edit
+    .accesskey = E
+menu-edit-undo =
+    .label = Undo
+    .accesskey = U
+menu-edit-redo =
+    .label = Redo
+    .accesskey = R
+menu-edit-cut =
+    .label = Cut
+    .accesskey = t
+menu-edit-copy =
+    .label = Copy
+    .accesskey = C
+menu-edit-paste =
+    .label = Paste
+    .accesskey = P
+menu-edit-delete =
+    .label = Delete
+    .accesskey = D
+menu-edit-select-all =
+    .label = Select All
+    .accesskey = A
+menu-edit-find-on =
+    .label = Find in This Page…
+    .accesskey = F
+menu-edit-find-again =
+    .label = Find Again
+    .accesskey = g
+menu-edit-bidi-switch-text-direction =
+    .label = Switch Text Direction
+    .accesskey = w
+
+## View Menu
+
+menu-view =
+    .label = View
+    .accesskey = V
+menu-view-toolbars-menu =
+    .label = Toolbars
+    .accesskey = T
+menu-view-customize-toolbar =
+    .label = Customize…
+    .accesskey = C
+menu-view-sidebar =
+    .label = Sidebar
+    .accesskey = e
+menu-view-bookmarks =
+    .label = Bookmarks
+menu-view-history-button =
+    .label = History
+menu-view-synced-tabs-sidebar =
+    .label = Synced Tabs
+menu-view-full-zoom =
+    .label = Zoom
+    .accesskey = Z
+menu-view-full-zoom-enlarge =
+    .label = Zoom In
+    .accesskey = I
+menu-view-full-zoom-reduce =
+    .label = Zoom Out
+    .accesskey = O
+menu-view-full-zoom-reset =
+    .label = Reset
+    .accesskey = R
+menu-view-full-zoom-toggle =
+    .label = Zoom Text Only
+    .accesskey = T
+menu-view-page-style-menu =
+    .label = Page Style
+    .accesskey = y
+menu-view-page-style-no-style =
+    .label = No Style
+    .accesskey = n
+menu-view-page-basic-style =
+    .label = Basic Page Style
+    .accesskey = B
+menu-view-charset =
+    .label = Text Encoding
+    .accesskey = c
+
+## These should match what Safari and other Apple applications
+## use on macOS.
+
+menu-view-enter-full-screen =
+    .label = Enter Full Screen
+    .accesskey = F
+menu-view-exit-full-screen =
+    .label = Exit Full Screen
+    .accesskey = F
+menu-view-full-screen =
+    .label = Full Screen
+    .accesskey = F
+
+##
+
+menu-view-show-all-tabs =
+    .label = Show All Tabs
+    .accesskey = A
+menu-view-bidi-switch-page-direction =
+    .label = Switch Page Direction
+    .accesskey = D
+
+## History Menu
+
+menu-history =
+    .label = History
+    .accesskey = s
+menu-history-show-all-history =
+    .label = Show All History
+menu-history-clear-recent-history =
+    .label = Clear Recent History…
+menu-history-synced-tabs =
+    .label = Synced Tabs
+menu-history-restore-last-session =
+    .label = Restore Previous Session
+menu-history-hidden-tabs =
+    .label = Hidden Tabs
+menu-history-undo-menu =
+    .label = Recently Closed Tabs
+menu-history-undo-window-menu =
+    .label = Recently Closed Windows
+
+## Bookmarks Menu
+
+menu-bookmarks-menu =
+    .label = Bookmarks
+    .accesskey = B
+menu-bookmarks-show-all =
+    .label = Show All Bookmarks
+menu-bookmarks-all-tabs =
+    .label = Bookmark All Tabs…
+menu-bookmarks-toolbar =
+    .label = Bookmarks Toolbar
+menu-bookmarks-other =
+    .label = Other Bookmarks
+menu-bookmarks-mobile =
+    .label = Mobile Bookmarks
+
+## Tools Menu
+
+menu-tools =
+    .label = Tools
+    .accesskey = T
+menu-tools-downloads =
+    .label = Downloads
+    .accesskey = D
+menu-tools-addons =
+    .label = Add-ons
+    .accesskey = A
+menu-tools-sync-sign-in =
+    .label = Sign In To { -sync-brand-short-name }…
+    .accesskey = y
+menu-tools-sync-now =
+    .label = Sync Now
+    .accesskey = S
+menu-tools-sync-re-auth =
+    .label = Reconnect to { -sync-brand-short-name }…
+    .accesskey = R
+menu-tools-web-developer =
+    .label = Web Developer
+    .accesskey = W
+menu-tools-page-source =
+    .label = Page Source
+    .accesskey = o
+menu-tools-page-info =
+    .label = Page Info
+    .accesskey = I
+menu-preferences =
+    .label =
+        { PLATFORM() ->
+            [windows] Options
+           *[other] Preferences
+        }
+    .accesskey =
+        { PLATFORM() ->
+            [windows] O
+           *[other] n
+        }
+menu-tools-layout-debugger =
+    .label = Layout Debugger
+    .accesskey = L
+
+## Window Menu
+
+menu-window-menu =
+    .label = Window
+menu-window-bring-all-to-front =
+    .label = Bring All to Front
+
+## Help Menu
+
+menu-help =
+    .label = Help
+    .accesskey = H
+menu-help-product =
+    .label = { -brand-shorter-name } Help
+    .accesskey = H
+menu-help-show-tour =
+    .label = { -brand-shorter-name } Tour
+    .accesskey = o
+menu-help-keyboard-shortcuts =
+    .label = Keyboard Shortcuts
+    .accesskey = K
+menu-help-troubleshooting-info =
+    .label = Troubleshooting Information
+    .accesskey = T
+menu-help-feedback-page =
+    .label = Submit Feedback…
+    .accesskey = S
+menu-help-safe-mode-without-addons =
+    .label = Restart with Add-ons Disabled…
+    .accesskey = R
+menu-help-safe-mode-with-addons =
+    .label = Restart with Add-ons Enabled
+    .accesskey = R
+# Label of the Help menu item. Either this or
+# safeb.palm.notdeceptive.label from
+# phishing-afterload-warning-message.dtd is shown.
+menu-help-report-deceptive-site =
+    .label = Report Deceptive Site…
+    .accesskey = D
--- a/browser/chrome/browser/browser.dtd
+++ b/browser/chrome/browser/browser.dtd
@@ -194,16 +194,17 @@ These should match what Safari and other
 
 <!ENTITY bookmarksMenu.label "Bookmarks">
 <!ENTITY bookmarksMenu.accesskey "B">
 <!ENTITY bookmarkThisPageCmd.label "Bookmark This Page">
 <!ENTITY editThisBookmarkCmd.label "Edit This Bookmark">
 <!ENTITY bookmarkThisPageCmd.commandkey "d">
 
 <!ENTITY addCurPagesCmd.label "Bookmark All Tabs…">
+
 <!ENTITY showAllBookmarks2.label "Show All Bookmarks">
 <!ENTITY recentBookmarks.label "Recently Bookmarked">
 <!ENTITY otherBookmarksCmd.label "Other Bookmarks">
 <!ENTITY mobileBookmarksCmd.label "Mobile Bookmarks">
 <!ENTITY bookmarksToolbarChevron.tooltip "Show more bookmarks">
 
 <!ENTITY backCmd.label                "Back">
 <!ENTITY backCmd.accesskey            "B">
@@ -316,16 +317,17 @@ These should match what Safari and other
 
 <!ENTITY inspectContextMenu.label     "Inspect Element">
 <!ENTITY inspectContextMenu.accesskey "Q">
 
 <!ENTITY inspectA11YContextMenu.label     "Inspect Accessibility Properties">
 
 <!ENTITY fileMenu.label         "File">
 <!ENTITY fileMenu.accesskey       "F">
+
 <!ENTITY newUserContext.label             "New Container Tab">
 <!ENTITY newUserContext.accesskey         "B">
 <!ENTITY manageUserContext.label          "Manage Containers">
 <!ENTITY manageUserContext.accesskey      "O">
 <!ENTITY newNavigatorCmd.label        "New Window">
 <!ENTITY newNavigatorCmd.key        "N">
 <!ENTITY newNavigatorCmd.accesskey      "N">
 <!ENTITY newPrivateWindow.label     "New Private Window">
@@ -365,29 +367,31 @@ These should match what Safari and other
 <!ENTITY privateBrowsingCmd.commandkey          "P">
 
 <!ENTITY viewMenu.label         "View">
 <!ENTITY viewMenu.accesskey       "V">
 <!ENTITY viewToolbarsMenu.label       "Toolbars">
 <!ENTITY viewToolbarsMenu.accesskey     "T">
 <!ENTITY viewSidebarMenu.label "Sidebar">
 <!ENTITY viewSidebarMenu.accesskey "e">
+
 <!ENTITY viewCustomizeToolbar.label       "Customize…">
 <!ENTITY viewCustomizeToolbar.accesskey     "C">
 <!ENTITY overflowCustomizeToolbar.label       "Customize Toolbar…">
 <!ENTITY overflowCustomizeToolbar.accesskey   "C">
 
 <!ENTITY historyMenu.label "History">
 <!ENTITY historyMenu.accesskey "s">
 <!ENTITY historyUndoMenu.label "Recently Closed Tabs">
 <!-- LOCALIZATION NOTE (historyUndoWindowMenu): see bug 394759 -->
 <!ENTITY historyUndoWindowMenu.label "Recently Closed Windows">
 <!ENTITY historyRestoreLastSession.label "Restore Previous Session">
 
 <!ENTITY showAllHistoryCmd2.label "Show All History">
+
 <!ENTITY showAllHistoryCmd.commandkey "H">
 
 <!ENTITY appMenuHistory.showAll.label "Show All History">
 <!ENTITY appMenuHistory.clearRecent.label "Clear Recent History…">
 <!ENTITY appMenuHistory.restoreSession.label "Restore Previous Session">
 <!ENTITY appMenuHistory.viewSidebar.label "View History Sidebar">
 <!ENTITY appMenuHistory.hideSidebar.label "Hide History Sidebar">
 <!ENTITY appMenuHistory.recentHistory.label "Recent History">
@@ -598,19 +602,19 @@ These should match what Safari and other
 <!ENTITY saveToPocketCmd.label        "Save Page to Pocket">
 <!ENTITY saveToPocketCmd.accesskey    "k">
 <!ENTITY saveLinkToPocketCmd.label    "Save Link to Pocket">
 <!ENTITY saveLinkToPocketCmd.accesskey "o">
 <!ENTITY pocketMenuitem.label         "View Pocket List">
 
 <!ENTITY emailPageCmd.label           "Email Link…">
 <!ENTITY emailPageCmd.accesskey       "E">
+<!-- alternate for content area context menu -->
 <!ENTITY savePageCmd.label            "Save Page As…">
 <!ENTITY savePageCmd.accesskey        "A">
-<!-- alternate for content area context menu -->
 <!ENTITY savePageCmd.accesskey2       "P">
 <!ENTITY savePageCmd.commandkey       "s">
 <!ENTITY saveFrameCmd.label           "Save Frame As…">
 <!ENTITY saveFrameCmd.accesskey       "F">
 <!ENTITY printFrameCmd.label          "Print Frame…">
 <!ENTITY printFrameCmd.accesskey      "P">
 <!ENTITY saveLinkCmd.label            "Save Link As…">
 <!ENTITY saveLinkCmd.accesskey        "k">
@@ -705,32 +709,36 @@ items are mutually exclusive. -->
 <!-- LOCALIZATION NOTE :
 fullZoomEnlargeCmd.commandkey3, fullZoomReduceCmd.commandkey2 and
 fullZoomResetCmd.commandkey2 are alternative acceleration keys for zoom.
 If shift key is needed with your locale popular keyboard for them,
 you can use these alternative items. Otherwise, their values should be empty.  -->
 
 <!ENTITY fullZoomEnlargeCmd.label       "Zoom In">
 <!ENTITY fullZoomEnlargeCmd.accesskey   "I">
+
 <!ENTITY fullZoomEnlargeCmd.commandkey  "+">
 <!ENTITY fullZoomEnlargeCmd.commandkey2 "="> <!-- + is above this key on many keyboards -->
 <!ENTITY fullZoomEnlargeCmd.commandkey3 "">
 
 <!ENTITY fullZoomReduceCmd.label        "Zoom Out">
 <!ENTITY fullZoomReduceCmd.accesskey    "O">
+
 <!ENTITY fullZoomReduceCmd.commandkey   "-">
 <!ENTITY fullZoomReduceCmd.commandkey2  "">
 
 <!ENTITY fullZoomResetCmd.label         "Reset">
 <!ENTITY fullZoomResetCmd.accesskey     "R">
+
 <!ENTITY fullZoomResetCmd.commandkey    "0">
 <!ENTITY fullZoomResetCmd.commandkey2   "">
 
 <!ENTITY fullZoomToggleCmd.label        "Zoom Text Only">
 <!ENTITY fullZoomToggleCmd.accesskey    "T">
+
 <!ENTITY fullZoom.label                 "Zoom">
 <!ENTITY fullZoom.accesskey             "Z">
 
 <!ENTITY sidebarCloseButton.tooltip     "Close sidebar">
 <!ENTITY sidebarMenuClose.label         "Close Sidebar">
 
 <!ENTITY quitApplicationCmdWin2.label       "Exit">
 <!ENTITY quitApplicationCmdWin2.accesskey   "x">
@@ -738,16 +746,17 @@ you can use these alternative items. Oth
 <!ENTITY goBackCmd.commandKey "[">
 <!ENTITY goForwardCmd.commandKey "]">
 <!ENTITY quitApplicationCmd.label       "Quit">
 <!ENTITY quitApplicationCmd.accesskey   "Q">
 <!ENTITY quitApplicationCmdMac2.label   "Quit &brandShorterName;">
 <!ENTITY quitApplicationCmd.key         "Q">
 
 <!ENTITY closeCmd.label                 "Close">
+
 <!ENTITY closeCmd.key                   "W">
 <!ENTITY closeCmd.accesskey             "C">
 
 <!ENTITY toggleMuteCmd.key              "M">
 
 <!ENTITY pageStyleMenu.label "Page Style">
 <!ENTITY pageStyleMenu.accesskey "y">
 <!ENTITY pageStyleNoStyle.label "No Style">
@@ -894,16 +903,17 @@ you can use these alternative items. Oth
 <!ENTITY syncTabsMenu3.label     "Synced Tabs">
 
 <!ENTITY syncedTabs.sidebar.label              "Synced Tabs">
 
 <!ENTITY syncBrand.shortName.label    "Sync">
 
 <!ENTITY syncSignIn.label             "Sign In To &syncBrand.shortName.label;…">
 <!ENTITY syncSignIn.accesskey         "Y">
+
 <!ENTITY syncSyncNowItem.label        "Sync Now">
 <!ENTITY syncSyncNowItemSyncing.label "Syncing…">
 <!ENTITY syncSyncNowItem.accesskey    "S">
 <!ENTITY syncReAuthItem.label         "Reconnect to &syncBrand.shortName.label;…">
 <!ENTITY syncReAuthItem.accesskey     "R">
 <!ENTITY syncToolbarButton.label      "Sync">
 
 <!ENTITY customizeMode.autoHideDownloadsButton.label "Auto-hide">