From a8a7f16ec43cf1e06e04214185266ecdd314309e Mon Sep 17 00:00:00 2001 From: "jminta%gmail.com" Date: Tue, 13 Feb 2007 03:00:49 +0000 Subject: [PATCH] Bug 369030 mainWindow title has no info about views. Patch by Markus Adrario , r=lilmatt,jminta --- calendar/base/content/calendar-decorated-base.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/calendar/base/content/calendar-decorated-base.xml b/calendar/base/content/calendar-decorated-base.xml index 873a74fa0c56..3164a45a1a45 100644 --- a/calendar/base/content/calendar-decorated-base.xml +++ b/calendar/base/content/calendar-decorated-base.xml @@ -96,6 +96,11 @@ document.getAnonymousElementByAttribute(this, "anonid", "title-"+i) .setAttribute("label", aNameArray[i+2]); } + var sbs = Components.classes["@mozilla.org/intl/stringbundle;1"] + .getService(Components.interfaces.nsIStringBundleService); + var brand = sbs.createBundle("chrome://branding/locale/brand.properties"); + + document.title = aNameArray[2] + " - " + brand.GetStringFromName("brandShortName"); ]]>