зеркало из https://github.com/mozilla/pjs.git
Bug 88630 - Themes and locales do not change when using turbo. r=vishy/sr=blake
This commit is contained in:
Родитель
978f696dcf
Коммит
68d5e0c6b1
|
@ -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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче