Bug 677010 - Show update channel on about: page r=callek ui-r=neil

This commit is contained in:
Ian Neal 2011-08-30 14:18:31 +01:00
Родитель 199477085a
Коммит 3f3f1e5916
3 изменённых файлов: 21 добавлений и 0 удалений

Просмотреть файл

@ -8,6 +8,8 @@
%aboutDTD;
<!ENTITY % globalDTD SYSTEM "chrome://global/locale/global.dtd">
%globalDTD;
<!ENTITY % suiteAboutDTD SYSTEM "chrome://communicator/locale/about.dtd" >
%suiteAboutDTD;
]>
<!-- ***** BEGIN LICENSE BLOCK *****
@ -66,6 +68,7 @@
</div>
<ul id="aboutPageList">
<li>&channel.description.start;<strong id="currentChannel">default</strong>&channel.description.end;</li>
<li>&about.credits.beforeLink;<a href="about:credits">&about.credits.linkTitle;</a>&about.credits.afterLink;</li>
<li>&about.license.beforeTheLink;<a href="about:license">&about.license.linkTitle;</a>&about.license.afterTheLink;</li>
<li>&about.relnotes.beforeTheLink;<a id="releaseNotesURL" href="">&about.relnotes.linkTitle;</a>&about.relnotes.afterTheLink;</li>
@ -105,7 +108,18 @@
listItem.appendChild(document.createTextNode("&about.buildIdentifier;"));
listItem.appendChild(document.createTextNode(ua));
}
// Determine and display current channel.
try {
var updateChannel =
Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefService)
.getDefaultBranch("")
.getCharPref("app.update.channel");
document.getElementById("currentChannel").textContent = updateChannel;
} catch (ex) {}
</script>
</ul>
</body>

Просмотреть файл

@ -0,0 +1,6 @@
<!-- LOCALIZATION NOTE (channel.description.start,channel.description.end):
channel.description.start and channel.description.end create one sentence,
with the current channel label inserted in between.
example: You are currently on the _Stable_ update channel. -->
<!ENTITY channel.description.start "You are currently on the ">
<!ENTITY channel.description.end " update channel.">

Просмотреть файл

@ -42,6 +42,7 @@
locale/@AB_CD@/communicator/utilityOverlay.properties (%chrome/common/utilityOverlay.properties)
locale/@AB_CD@/communicator/viewZoomOverlay.dtd (%chrome/common/viewZoomOverlay.dtd)
locale/@AB_CD@/communicator/viewZoomOverlay.properties (%chrome/common/viewZoomOverlay.properties)
locale/@AB_CD@/communicator/about.dtd (%chrome/common/about.dtd)
locale/@AB_CD@/communicator/aboutSessionRestore.dtd (%chrome/common/aboutSessionRestore.dtd)
locale/@AB_CD@/communicator/aboutSyncTabs.dtd (%chrome/common/aboutSyncTabs.dtd)
locale/@AB_CD@/communicator/bookmarks/bm-props.properties (%chrome/common/bookmarks/bm-props.properties)