Bug 1288406 - Part 2: Add {menubar,toolbar}.ftl files. r=Pike
authorStaś Małolepszy <stas@mozilla.com>
Fri, 29 Jul 2016 19:42:05 +0200
changeset 396499 3d3707dea61ed0ad2e25e54f56db4f0911f9c57a
parent 395447 c3e41e9933518f504db66d6a7bca2157678eceaf
child 396500 319e513a7cafb9b272919129398b303689634feb
child 396523 828fe08e213c83e382a8d76dd551fa060986fe21
push id25023
push usersmalolepszy@mozilla.com
push dateWed, 03 Aug 2016 23:10:07 +0000
reviewersPike
bugs1288406
milestone50.0a1
Bug 1288406 - Part 2: Add {menubar,toolbar}.ftl files. r=Pike Add menubar.ftl and toolbar.ftl required to localize browser's visible UI and expose them under resource://chrome/en-US/browser/. MozReview-Commit-ID: 8BQQ0DIwkqo
browser/locales/en-US/browser/menubar.ftl
browser/locales/en-US/browser/toolbar.ftl
browser/locales/jar.mn
new file mode 100644
--- /dev/null
+++ b/browser/locales/en-US/browser/menubar.ftl
@@ -0,0 +1,347 @@
+# 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 ]]
+
+file-menu =
+    [xul/label]     File
+    [xul/accesskey] F
+tab-menuitem =
+    [xul/label]      New Tab
+    [xul/accesskey]  T
+tab-key =
+    [xul/key]        t
+new-user-context-menu =
+    [xul/label]      New Container Tab
+    [xul/accesskey]  C
+new-navigator-menuitem =
+    [xul/label]      New Window
+    [xul/accesskey]  N
+new-navigator-key =
+    [xul/key]        N
+new-private-window-menuitem =
+    [xul/label]      New Private Window
+    [xul/accesskey]  W
+new-non-remote-window-menuitem =
+    [xul/label]      New Non-e10s Window
+
+# Only displayed on OS X, and only on windows that aren't main browser windows,
+# or when there are no windows but Firefox is still running.
+open-location-menuitem =
+    [xul/label]      Open Location…
+open-file-menuitem =
+    [xul/label]      Open File…
+    [xul/accesskey]  O
+open-file-key =
+    [xul/key]        o
+
+close-menuitem =
+    [xul/label]      Close
+    [xul/accesskey]  C
+close-key =
+    [xul/key]        W
+close-window-menuitem =
+    [xul/label]      Close Window
+    [xul/accesskey]  d
+
+# [xul/accesskey2] is for content area context menu
+save-page-menuitem =
+    [xul/label]      Save Page As…
+    [xul/accesskey]  A
+    [xul/accesskey2] P
+save-page-key =
+    [xul/key]        s
+
+email-page-menuitem =
+    [xul/label]      Email Link…
+    [xul/accesskey]  E
+
+print-setup-menuitem =
+    [xul/label]      Page Setup…
+    [xul/accesskey]  u
+print-preview-menuitem =
+    [xul/label]      Print Preview…
+    [xul/accesskey]  v
+print-menuitem =
+    [xul/label]      Print…
+    [xul/accesskey]  P
+print-key =
+    [xul/key]        p
+
+go-offline-menuitem =
+    [xul/label]      Work Offline
+    [xul/accesskey]  k
+
+quit-application-menuitem =
+    [xul/label]      { OS() ->
+        [win]    Exit
+        [mac]    Quit { brand-shorter-name }
+       *[lin]    Quit
+    }
+    [xul/accesskey]  { OS() ->
+        [win]    x
+        [mac]    Q
+       *[lin]    Q
+    }
+# [xul/key] is used by both Linux and OSX builds
+quit-application-key =
+    [xul/key]        Q
+
+[[ Edit menu ]]
+
+edit-menu =
+    [xul/label]      Edit
+    [xul/accesskey]  E
+undo-menuitem =
+    [xul/label]      Undo
+    [xul/accesskey]  U
+undo-key =
+    [xul/key]        Z
+redo-menuitem =
+    [xul/label]      Redo
+    [xul/accesskey]  R
+redo-key =
+    [xul/key]        Y
+cut-menuitem =
+    [xul/label]      Cut
+    [xul/accesskey]  t
+cut-key =
+    [xul/key]        X
+copy-menuitem =
+    [xul/label]      Copy
+    [xul/accesskey]  C
+copy-key =
+    [xul/key]        C
+paste-menuitem =
+    [xul/label]      Paste
+    [xul/accesskey]  P
+paste-key =
+    [xul/key]        V
+delete-menuitem =
+    [xul/label]      Delete
+    [xul/accesskey]  D
+delete-key =
+    [xul/key]        D
+select-all-menuitem =
+    [xul/label]      Select All
+    [xul/accesskey]  A
+select-all-key =
+    [xul/key]        A
+
+find-on-menuitem =
+    [xul/label]      Find in This Page…
+    [xul/accesskey]  F
+find-on-key =
+    [xul/key]        f
+find-again-menuitem =
+    [xul/label]      Find Again
+    [xul/accesskey]  g
+find-again-key1 =
+    [xul/key]        g
+find-again-key2 =
+    [xul/keycode]    VK_F3
+find-selection-key =
+    [xul/key]        e
+
+bidi-switch-text-direction-menuitem =
+    [xul/label]      Switch Text Direction
+    [xul/accesskey]  w
+bidi-switch-text-direction-key =
+    [xul/key]        X
+
+preferences-menuitem =
+    [xul/label]      { OS() ->
+        [win]    Options
+       *[other]  Preferences
+    }
+    [xul/accesskey]  { OS() ->
+        [win]    O
+       *[other]  n
+    }
+
+
+[[ View menu ]]
+
+view-menu =
+    [xul/label]      View
+    [xul/accesskey]  V
+view-toolbars-menu =
+    [xul/label]      Toolbars
+    [xul/accesskey]  T
+view-sidebar-menu =
+    [xul/label]      Sidebar
+    [xul/accesskey]  e
+view-customize-toolbar-menuitem =
+    [xul/label]      Customize…
+    [xul/accesskey]  C
+
+view-history-menuitem =
+    [xul/label]      History
+view-synced-tabs-menuitem =
+    [xul/label]      Synced Tabs
+
+full-zoom-menu =
+    [xul/label]      Zoom
+    [xul/accesskey]  Z
+full-zoom-enlarge-menuitem =
+    [xul/label]      Zoom In
+    [xul/accesskey]  I
+full-zoom-enlarge-key1 =
+    [xul/key]        +
+full-zoom-enlarge-key2 =
+    [xul/key]        =
+full-zoom-enlarge-key3 =
+    [xul/key]        ""
+full-zoom-reduce-menuitem =
+    [xul/label]      Zoom Out
+    [xul/accesskey]  O
+full-zoom-reduce-key1 =
+    [xul/key]        -
+full-zoom-reduce-key2 =
+    [xul/key]        ""
+full-zoom-reset-menuitem =
+    [xul/label]      Reset
+    [xul/accesskey]  R
+full-zoom-reset-key1 =
+    [xul/key]        0
+full-zoom-reset-key2 =
+    [xul/key]        ""
+full-zoom-toggle-menuitem =
+    [xul/label]      Zoom Text Only
+    [xul/accesskey]  T
+
+page-style-menu =
+    [xul/label]      Page Style
+    [xul/accesskey]  y
+page-style-no-style-menuitem =
+    [xul/label]      No Style
+    [xul/accesskey]  n
+page-style-persistent-only-menuitem =
+    [xul/label]      Basic Page Style
+    [xul/accesskey]  b
+
+show-all-tabs-menuitem =
+    [xul/label]      Show All Tabs
+    [xul/accesskey]  A
+bidi-switch-page-direction-menuitem =
+    [xul/label]      Switch Page Direction
+    [xul/accesskey]  D
+
+# Match what Safari and other Apple applications use on OS X Lion.
+[[ Full Screen controls ]]
+
+enter-full-screen-menuitem =
+    [xul/label]      Enter Full Screen
+    [xul/accesskey]  F
+exit-full-screen-menuitem =
+    [xul/label]      Exit Full Screen
+    [xul/accesskey]  F
+full-screen-menuitem =
+    [xul/label]      Full Screen
+    [xul/accesskey]  F
+full-screen-key =
+    [xul/key]        f
+
+
+[[ History menu ]]
+
+history-menu =
+    [xul/label]        History
+    [xul/accesskey]    s
+show-all-history-menuitem =
+    [xul/label]        Show All History
+show-all-history-key =
+    [xul/key]          H
+clear-recent-history-menuitem =
+    [xul/label]        Clean Recent History…
+history-synced-tabs-menuitem =
+    [xul/label]        Synced Tabs
+history-restore-last-session-menuitem =
+    [xul/label]        Restore Previous Session
+history-undo-menu =
+    [xul/label]        Recently Closed Tabs
+history-undo-window-menu =
+    [xul/label]        Recently Closed Windows
+
+
+[[ Bookmarks menu ]]
+
+bookmarks-menu =
+    [xul/label]      Bookmarks
+    [xul/accesskey]  B
+show-all-bookmarks-menuitem =
+    [xul/label]      Show All Bookmarks
+bookmark-this-page-menuitem =
+    [xul/label]      Bookmark This Page
+edit-this-page-menuitem =
+    [xul/label]      Edit This Page
+bookmark-this-page-key =
+    [xul/key]        d
+subscribe-to-page-menuitem =
+    [xul/label]      Subscribe to This Page…
+subscribe-to-page-menupopup =
+    [xul/label]      Subscribe to This Page…
+add-cur-pages-menuitem =
+    [xul/label]      Bookmark All Tabs…
+recent-bookmarks-menuitem =
+    [xul/label]      Recently Bookmarked
+
+other-bookmarks-menu =
+    [xul/label]      Other Bookmarks
+personalbar-menu =
+    [xul/label]      Bookmarks Toolbar
+    [xul/accesskey]  B
+
+
+[[ Tools menu ]]
+
+tools-menu =
+    [xul/label]      Tools
+    [xul/accesskey]  T
+downloads-menuitem =
+    [xul/label]      Downloads
+    [xul/accesskey]  D
+downloads-key =
+    [xul/key]        { OS() ->
+        [lin]    y
+       *[other]  j
+    }
+addons-menuitem =
+    [xul/label]      Add-ons
+    [xul/accesskey]  A
+addons-key =
+    [xul/key]        A
+
+sync-brand-short-name =
+   *[xul/label]      Sync
+
+sync-sign-in-menuitem =
+    [xul/label]      Sign In To { sync-brand-short-name }…
+    [xul/accesskey]  Y
+sync-sync-now-menuitem =
+    [xul/label]      Sync Now
+    [xul/accesskey]  S
+sync-re-auth-menuitem =
+    [xul/label]      Reconnect to { sync-brand-short-name }…
+    [xul/accesskey]  R
+sync-toolbar-button =
+    [xul/label]      Sync
+
+web-developer-menu =
+    [xul/label]      Web Developer
+    [xul/accesskey]  W
+
+page-source-menuitem =
+    [xul/label]      Page Source
+    [xul/accesskey]  o
+page-source-key =
+    [xul/key]        u
+page-info-menuitem =
+    [xul/label]      Page Info
+    [xul/accesskey]  I
+page-info-key =
+    [xul/key]        i
+mirror-tab-menu =
+    [xul/label]      Mirror Tab
+    [xul/accesskey]  m
new file mode 100644
--- /dev/null
+++ b/browser/locales/en-US/browser/toolbar.ftl
@@ -0,0 +1,26 @@
+# 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/.
+
+urlbar-textbox =
+    [xul/placeholder] Search or enter address
+    [xul/accesskey]   d
+
+
+[[ Toolbar items ]]
+
+bookmarks-button =
+    [xul/label]      Bookmarks
+# The command key for [lin] should not contain the letters A-F since they
+# are reserved shortcut keys on Linux.
+bookmarks-key =
+    [xul/key]    { OS() ->
+        [win] o
+        [mac] b
+       *[lin] i
+    }
+
+history-button =
+    [xul/label]      History
+history-key =
+    [xul/key]        h
--- a/browser/locales/jar.mn
+++ b/browser/locales/jar.mn
@@ -107,14 +107,16 @@
     locale/browser/downloads/settingsChange.dtd  (%chrome/overrides/settingsChange.dtd)
 % override chrome://global/locale/netError.dtd chrome://browser/locale/netError.dtd
 % override chrome://global/locale/appstrings.properties chrome://browser/locale/appstrings.properties
 % override chrome://mozapps/locale/downloads/settingsChange.dtd chrome://browser/locale/downloads/settingsChange.dtd
 % locale pdf.js @AB_CD@ %locale/pdfviewer/
     locale/pdfviewer/viewer.properties             (%pdfviewer/viewer.properties)
     locale/pdfviewer/chrome.properties             (%pdfviewer/chrome.properties)
 
+    browser                                        (%browser/*.ftl)
+
 #ifdef XPI_NAME
 # Bug 1240628, restructure how l10n repacks work with feature addons
 # This is hacky, but ensures the chrome.manifest chain is complete
 [.] chrome.jar:
 % manifest features/chrome.manifest
 #endif