Bug 1443771 - Add ESR name to the about dialog. It is not translated. r?felipe draft
authorMichael Kaply <mozilla@kaply.com>
Wed, 14 Mar 2018 17:41:26 -0500
changeset 770094 849dcd719b47a9d1522927f807aa0d321a6b4540
parent 770080 3d4f4a6bb6ba36a649f7f9b856b7b42c2127e133
push id103314
push usermozilla@kaply.com
push dateTue, 20 Mar 2018 18:22:12 +0000
reviewersfelipe
bugs1443771
milestone61.0a1
Bug 1443771 - Add ESR name to the about dialog. It is not translated. r?felipe MozReview-Commit-ID: FYjA7IrTGYt
browser/base/content/aboutDialog.css
browser/base/content/aboutDialog.js
browser/base/content/aboutDialog.xul
--- a/browser/base/content/aboutDialog.css
+++ b/browser/base/content/aboutDialog.css
@@ -21,16 +21,23 @@
 #rightBox:-moz-locale-dir(rtl) {
   background-position: 100% 0;
 }
 
 #bottomBox {
   padding: 15px 10px 0;
 }
 
+#release {
+  font-weight: bold;
+  font-size: 125%;
+  margin-top: 10px;
+  margin-inline-start: 0;
+}
+
 #version {
   font-weight: bold;
   margin-top: 10px;
   margin-left: 0;
   -moz-user-select: text;
   -moz-user-focus: normal;
   cursor: text;
 }
--- a/browser/base/content/aboutDialog.js
+++ b/browser/base/content/aboutDialog.js
@@ -73,14 +73,17 @@ function init(aEvent) {
 
     let channelLabel = document.getElementById("currentChannel");
     let currentChannelText = document.getElementById("currentChannelText");
     channelLabel.value = UpdateUtils.UpdateChannel;
     if (/^release($|\-)/.test(channelLabel.value))
         currentChannelText.hidden = true;
   }
 
+  if (AppConstants.MOZ_UPDATE_CHANNEL == "esr") {
+    document.getElementById("release").hidden = false;
+  }
   if (AppConstants.platform == "macosx") {
     // it may not be sized at this point, and we need its width to calculate its position
     window.sizeToContent();
     window.moveTo((screen.availWidth / 2) - (window.outerWidth / 2), screen.availHeight / 5);
   }
 }
--- a/browser/base/content/aboutDialog.xul
+++ b/browser/base/content/aboutDialog.xul
@@ -40,16 +40,20 @@
   <script type="application/javascript" src="chrome://browser/content/aboutDialog.js"/>
 #ifdef MOZ_UPDATER
   <script type="application/javascript" src="chrome://browser/content/aboutDialog-appUpdater.js"/>
 #endif
   <vbox id="aboutDialogContainer">
     <hbox id="clientBox">
       <vbox id="leftBox" flex="1"/>
       <vbox id="rightBox" flex="1">
+        <label id="release" hidden="true">
+        <!-- This string is explicitly not translated -->
+          Extended Support Release
+        </label>
         <hbox align="baseline">
 #expand   <label id="version">__MOZ_APP_VERSION_DISPLAY__</label>
           <label id="releasenotes" class="text-link" hidden="true">&releaseNotes.link;</label>
         </hbox>
 
         <label id="distribution" class="text-blurb"/>
         <label id="distributionId" class="text-blurb"/>