Bug 88630 - Themes and locales do not change when using turbo. r=vishy/sr=blake

This commit is contained in:
ccarlen%netscape.com 2006-04-08 00:57:24 +00:00
Родитель 978f696dcf
Коммит 68d5e0c6b1
1 изменённых файлов: 3 добавлений и 4 удалений

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

@ -80,11 +80,10 @@
if (newContentPack && (newContentPack != oldContentPack))
{
try {
var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService();
if ( chromeRegistry ) {
chromeRegistry = chromeRegistry.QueryInterface( Components.interfaces.nsIChromeRegistry );
}
var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService(Components.interfaces.nsIChromeRegistry);
chromeRegistry.selectLocale(newContentPack, true);
var observerService = Components.classes["@mozilla.org/observer-service;1"].getService(Components.interfaces.nsIObserverService);
observerService.Notify(null, "locale-selected", null);
var contentBundle = document.getElementById("bundle_contentPack");
var brandBundle = document.getElementById("bundle_brand");
var alertText = contentBundle.getString("contentAlert");