Bug 369030 mainWindow title has no info about views. Patch by Markus Adrario <MarkusAdrario@web.de>, r=lilmatt,jminta

This commit is contained in:
jminta%gmail.com 2007-02-13 03:00:49 +00:00
Родитель 66a24ba0c2
Коммит a8a7f16ec4
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -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");
]]></body>
</method>
<method name="moveView">