Bug 1591328 - Migrate the window title to Fluent. r=fluent-reviewers,Gijs,mixedpuppy
authorZibi Braniecki <zbraniecki@mozilla.com>
Thu, 21 Nov 2019 19:16:15 +0000
changeset 12451 63bbb9b6dcb77b09e5e53730a77bb0f173ecc765
parent 12450 98f9fd340b012386d4b8397855e56393407b955b
child 12452 3f7cbe15c6d5b03f55eb2294ed5fe2b620e15229
push id200
push userflodolo@mozilla.com
push dateSat, 23 Nov 2019 13:48:56 +0000
reviewersfluent-reviewers, Gijs, mixedpuppy
bugs1591328
Bug 1591328 - Migrate the window title to Fluent. r=fluent-reviewers,Gijs,mixedpuppy Depends on D53775 Differential Revision: https://phabricator.services.mozilla.com/D53776 X-Channel-Repo: mozilla-central X-Channel-Converted-Revision: bff9eef8191f12cee9af275966a563517dcdf429 X-Channel-Repo: releases/mozilla-beta X-Channel-Revision: a25e8472d4ff130f59792b0ac11a133b0514aca0 X-Channel-Repo: releases/mozilla-release X-Channel-Revision: 0eae18af659f087056bce0f62a325e5e595fff72 X-Channel-Repo: releases/mozilla-esr68 X-Channel-Revision: 78764fc644ded50f7e681596608aa754ed90b0cc
browser/browser/browser.ftl
--- a/browser/browser/browser.ftl
+++ b/browser/browser/browser.ftl
@@ -1,12 +1,44 @@
 # 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/.
 
+
+# This is the default window title in case there is no content
+# title to be displayed.
+#
+# Depending on the $mode, the string will look like this (in en-US):
+#
+# "default" - "Mozilla Firefox"
+# "private" - "Mozilla Firefox (Private Browsing)"
+#
+# Variables
+#   $mode (String) - "private" in case of a private browsing mode, "default" otherwise.
+browser-main-window-title = { $mode ->
+        [private] { -brand-full-name } (Private Browsing)
+       *[default] { -brand-full-name }
+    }
+
+# This is the default window title in case there is a content
+# title to be displayed.
+#
+# Depending on the $mode, the string will look like this (in en-US):
+#
+# "default" - "Example Title - Mozilla Firefox"
+# "private" - "Example Title - Mozilla Firefox (Private Browsing)"
+#
+# Variables
+#   $mode (String) - "private" in case of a private browsing mode, "default" otherwise.
+#   $title (String) - Content title string.
+browser-main-window-content-title = { $mode ->
+        [private] { $title } - { -brand-full-name } (Private Browsing)
+       *[default] { $title } - { -brand-full-name }
+    }
+
 urlbar-identity-button =
     .aria-label = View site information
 
 ## Tooltips for images appearing in the address bar
 
 urlbar-services-notification-anchor =
     .tooltiptext = Open install message panel
 urlbar-web-notification-anchor =