r=dougt. 10465. the User Agent language portion now comes from a pref because the iLocaleService is the OS setting and we want app level l10n settings in teh UA string
This commit is contained in:
Родитель
5200c4e762
Коммит
c51213cee0
|
@ -1056,19 +1056,6 @@ nsWebShell::Init(nsNativeWidget aNativeParent,
|
|||
widgetInit.mWindowType = eWindowType_child;
|
||||
}
|
||||
|
||||
// Set the language portion of the user agent. :)
|
||||
NS_WITH_SERVICE(nsILocaleService, localeServ, kLocaleServiceCID, &rv);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
PRUnichar *UALang;
|
||||
rv = localeServ->GetLocaleComponentForUserAgent(&UALang);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
NS_WITH_SERVICE(nsIIOService, ioServ, kIOServiceCID, &rv);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = ioServ->SetLanguage(UALang);
|
||||
nsAllocator::Free(UALang);
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
|
@ -1056,19 +1056,6 @@ nsWebShell::Init(nsNativeWidget aNativeParent,
|
|||
widgetInit.mWindowType = eWindowType_child;
|
||||
}
|
||||
|
||||
// Set the language portion of the user agent. :)
|
||||
NS_WITH_SERVICE(nsILocaleService, localeServ, kLocaleServiceCID, &rv);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
PRUnichar *UALang;
|
||||
rv = localeServ->GetLocaleComponentForUserAgent(&UALang);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
NS_WITH_SERVICE(nsIIOService, ioServ, kIOServiceCID, &rv);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = ioServ->SetLanguage(UALang);
|
||||
nsAllocator::Free(UALang);
|
||||
return rv;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче