зеркало из https://github.com/mozilla/gecko-dev.git
Bug 188557 Application name should not be hard-coded in "Illegal plug-in operation" dialog p=bugmail@q1n.org r+sr=jst
This commit is contained in:
Родитель
1b6bc3e3c1
Коммит
201cc4b7a3
|
@ -247,6 +247,7 @@ PRLogModuleInfo* nsPluginLogging::gNPPLog = nsnull;
|
|||
PRLogModuleInfo* nsPluginLogging::gPluginLog = nsnull;
|
||||
#endif
|
||||
|
||||
#define BRAND_PROPERTIES_URL "chrome://global/brand.properties"
|
||||
#define PLUGIN_PROPERTIES_URL "chrome://global/locale/downloadProgress.properties"
|
||||
#define PLUGIN_REGIONAL_URL "chrome://global-region/locale/region.properties"
|
||||
|
||||
|
@ -6141,6 +6142,15 @@ nsPluginHostImpl::HandleBadPlugin(PRLibrary* aLibrary, nsIPluginInstance *aInsta
|
|||
return rv;
|
||||
|
||||
nsCOMPtr<nsIStringBundle> bundle;
|
||||
rv = strings->CreateBundle(BRAND_PROPERTIES_URL, getter_AddRefs(bundle));
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
||||
nsXPIDLString brandName;
|
||||
if (NS_FAILED(rv = bundle->GetStringFromName(NS_LITERAL_STRING("brandShortName").get(),
|
||||
getter_Copies(brandName))))
|
||||
return rv;
|
||||
|
||||
rv = strings->CreateBundle(PLUGIN_PROPERTIES_URL, getter_AddRefs(bundle));
|
||||
if (NS_FAILED(rv))
|
||||
return rv;
|
||||
|
@ -6150,8 +6160,9 @@ nsPluginHostImpl::HandleBadPlugin(PRLibrary* aLibrary, nsIPluginInstance *aInsta
|
|||
getter_Copies(title))))
|
||||
return rv;
|
||||
|
||||
if (NS_FAILED(rv = bundle->GetStringFromName(NS_LITERAL_STRING("BadPluginMessage").get(),
|
||||
getter_Copies(message))))
|
||||
const PRUnichar *formatStrings[] = { brandName.get() };
|
||||
if (NS_FAILED(rv = bundle->FormatStringFromName(NS_LITERAL_STRING("BadPluginMessage").get(),
|
||||
formatStrings, 1, getter_Copies(message))))
|
||||
return rv;
|
||||
|
||||
if (NS_FAILED(rv = bundle->GetStringFromName(NS_LITERAL_STRING("BadPluginCheckboxMessage").get(),
|
||||
|
|
|
@ -5,13 +5,14 @@ FilePickerTitle=Save File
|
|||
# LOCALIZATION NOTE (BadPluginTitle):
|
||||
#
|
||||
# This dialog is displayed when plugin throws unhandled exception
|
||||
BadPluginTitle=Illegal Operation in Plugin
|
||||
BadPluginTitle=Illegal Operation in Plug-in
|
||||
# LOCALIZATION NOTE (BadPluginMessage):
|
||||
#
|
||||
# This is the message for the BadPlugin dialog.
|
||||
# %S will be replaced by brandShortName.
|
||||
#
|
||||
# Localizable URLs
|
||||
BadPluginMessage=The plugin performed an illegal operation. You are strongly advised to restart Navigator.
|
||||
BadPluginMessage=The plug-in performed an illegal operation. You are strongly advised to restart %S.
|
||||
# LOCALIZATION NOTE (BadPluginCheckboxMessage):
|
||||
#
|
||||
# This message tells the user that if they check this checkbox, they
|
||||
|
|
|
@ -5,13 +5,14 @@ FilePickerTitle=Save File
|
|||
# LOCALIZATION NOTE (BadPluginTitle):
|
||||
#
|
||||
# This dialog is displayed when plugin throws unhandled exception
|
||||
BadPluginTitle=Illegal Operation in Plugin
|
||||
BadPluginTitle=Illegal Operation in Plug-in
|
||||
# LOCALIZATION NOTE (BadPluginMessage):
|
||||
#
|
||||
# This is the message for the BadPlugin dialog.
|
||||
# %S will be replaced by brandShortName.
|
||||
#
|
||||
# Localizable URLs
|
||||
BadPluginMessage=The plugin performed an illegal operation. You are strongly advised to restart Navigator.
|
||||
BadPluginMessage=The plug-in performed an illegal operation. You are strongly advised to restart %S.
|
||||
# LOCALIZATION NOTE (BadPluginCheckboxMessage):
|
||||
#
|
||||
# This message tells the user that if they check this checkbox, they
|
||||
|
|
Загрузка…
Ссылка в новой задаче