зеркало из https://github.com/mozilla/pjs.git
Bug 235058 Content/language switching from UI is broken
r=neil sr=bz
This commit is contained in:
Родитель
096044b2be
Коммит
36d4ee6fa7
|
@ -64,7 +64,7 @@
|
||||||
var shouldRemoveFaslFile = false;
|
var shouldRemoveFaslFile = false;
|
||||||
//Switch the Content pack if necessary
|
//Switch the Content pack if necessary
|
||||||
var oldContentPack = parent.hPrefWindow.getPref( "localizedstring", "general.useragent.contentlocale");
|
var oldContentPack = parent.hPrefWindow.getPref( "localizedstring", "general.useragent.contentlocale");
|
||||||
var newContentPack = parent.hPrefWindow.wsm.dataManager.getItemData( "chrome://communicator/content/pref/pref-content.xul", "contentPackList" ).prefvalue;
|
var newContentPack = parent.hPrefWindow.wsm.dataManager.getItemData( "chrome://content-packs/content/pref-contentpacks.xul", "contentPackList" ).prefvalue;
|
||||||
if (newContentPack && (newContentPack != oldContentPack))
|
if (newContentPack && (newContentPack != oldContentPack))
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
@ -77,7 +77,7 @@
|
||||||
|
|
||||||
//Switch the Language pack if necessary
|
//Switch the Language pack if necessary
|
||||||
var oldLanguagePack = parent.hPrefWindow.getPref( "localizedstring", "general.useragent.locale");
|
var oldLanguagePack = parent.hPrefWindow.getPref( "localizedstring", "general.useragent.locale");
|
||||||
var newLanguagePack = parent.hPrefWindow.wsm.dataManager.getItemData( "chrome://communicator/content/pref/pref-content.xul", "languagePackList" ).prefvalue;
|
var newLanguagePack = parent.hPrefWindow.wsm.dataManager.getItemData( "chrome://content-packs/content/pref-contentpacks.xul", "languagePackList" ).prefvalue;
|
||||||
if (newLanguagePack && (newLanguagePack != oldLanguagePack))
|
if (newLanguagePack && (newLanguagePack != oldLanguagePack))
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче