Bug 1613801 - Don't include brand name in the window title on Mac., part 1.
authorAxel Hecht <l10n@mozilla.com>
Wed, 19 Feb 2020 11:02:47 +0100
changeset 5567 1df6cec4871aa23d68ef4c5a7b071e87cacfa5ab
parent 5566 f6f52958fd20a765f42443a773eff8ce665745ef
child 5568 aa770983440e28e71c26f3cc4343a28fd8bc5635
push id2711
push userflodolo@mozilla.com
push dateWed, 19 Feb 2020 10:03:06 +0000
bugs1613801
Bug 1613801 - Don't include brand name in the window title on Mac., part 1.
browser/browser/browser.ftl
--- a/browser/browser/browser.ftl
+++ b/browser/browser/browser.ftl
@@ -28,16 +28,40 @@ browser-main-window-title =
 # 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 } (Navegação privada)
        *[default] { $title } - { -brand-full-name }
     }
+
+## This is the default window title in case there is content
+## title to be displayed.
+##
+## On macOS the title doesn't include the brand name, on all other
+## platforms it does.
+##
+## For example, in private mode on Windows, the title will be:
+## "Example Title - Mozilla Firefox (Private Browsing)"
+##
+## while on macOS in default mode it will be:
+## "Example Title"
+##
+## Variables
+##   $title (String) - Content title string.
+
+browser-main-window-content-title-default =
+    { PLATFORM() ->
+        [macos] { $title }
+       *[other] { $title } - { -brand-full-name }
+    }
+
+##
+
 urlbar-identity-button =
     .aria-label = Ver informação do site
 
 ## Tooltips for images appearing in the address bar
 
 urlbar-services-notification-anchor =
     .tooltiptext = Abrir painel de mensagem de instalação
 urlbar-web-notification-anchor =