Migrate a single string in browser.xul to Fluent draft
authorZibi Braniecki <zbraniecki@mozilla.com>
Thu, 20 Sep 2018 18:42:13 -0700
changeset 1706249 69a89c5e6e090e621b30fa6f5dd92a0a84c219d3
parent 1705927 ea12f08bca89233f4f1037b6061a3877ab81d841
child 1706250 9d2d72e91bb43bedee1e475bf6830e2b50a705ac
child 1706251 dc84863c66d3892bf6dee6399897287a22c391d6
child 1707720 124d47815196e328fcb55a90a2d7db1b0ada4744
push id301495
push userzbraniecki@mozilla.com
push dateMon, 24 Sep 2018 23:15:12 +0000
treeherdertry@9d2d72e91bb4 [default view] [failures only]
milestone64.0a1
Migrate a single string in browser.xul to Fluent
browser/base/content/browser.xul
browser/locales/en-US/browser/preferences/selectBookmark.ftl
--- a/browser/base/content/browser.xul
+++ b/browser/base/content/browser.xul
@@ -61,16 +61,20 @@
         windowtype="navigator:browser"
         macanimationtype="document"
         screenX="4" screenY="4"
         fullscreenbutton="true"
         sizemode="normal"
         retargetdocumentfocus="urlbar"
         persist="screenX screenY width height sizemode">
 
+  <linkset>
+    <link rel="localization" href="browser/preferences/selectBookmark.ftl"/>
+  </linkset>
+
 # All JS files which are needed by browser.xul and other top level windows to
 # support MacOS specific features *must* go into the global-scripts.inc file so
 # that they can be shared with macWindow.inc.xul.
 #include global-scripts.inc
 
 <script type="application/javascript"
 #ifdef BROWSER_XHTML
 xmlns="http://www.w3.org/1999/xhtml"
@@ -101,17 +105,17 @@ xmlns="http://www.w3.org/1999/xhtml"
 # *must* go into the browser-sets.inc file so that they can be shared with other
 # top level windows in macWindow.inc.xul.
 #include browser-sets.inc
 
   <popupset id="mainPopupSet">
     <menupopup id="tabContextMenu"
                onpopupshowing="if (event.target == this) TabContextMenu.updateContextMenu(this);"
                onpopuphidden="if (event.target == this) TabContextMenu.contextTab = null;">
-      <menuitem id="context_reloadTab" label="&reloadTab.label;" accesskey="&reloadTab.accesskey;"
+      <menuitem id="context_reloadTab" data-l10n-id="main-popup-reload-tab"
                 oncommand="gBrowser.reloadTab(TabContextMenu.contextTab);"/>
       <menuitem id="context_reloadSelectedTabs" label="&reloadSelectedTabs.label;" hidden="true"
                 accesskey="&reloadSelectedTabs.accesskey;"
                 oncommand="gBrowser.reloadMultiSelectedTabs();"/>
       <menuitem id="context_toggleMuteTab" oncommand="TabContextMenu.contextTab.toggleMuteAudio();"/>
       <menuitem id="context_toggleMuteSelectedTabs" hidden="true"
                 oncommand="gBrowser.toggleMuteAudioOnMultiSelectedTabs(TabContextMenu.contextTab);"/>
       <menuseparator/>
--- a/browser/locales/en-US/browser/preferences/selectBookmark.ftl
+++ b/browser/locales/en-US/browser/preferences/selectBookmark.ftl
@@ -2,8 +2,12 @@
 # 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/.
 
 select-bookmark-window =
     .title = Set Home Page
     .style = width: 32em;
 
 select-bookmark-desc = Choose a Bookmark to be your Home Page. If you choose a folder, the Bookmarks in that folder will be opened in Tabs.
+
+main-popup-reload-tab =
+  .label = Reload Tab [FTL]
+  .accesskey = R