fix for #103037. preflight the message "save as file" dialog with

message.eml, and not "mail".  also move this string to a string bundle
r/sr=bienvenu.
This commit is contained in:
sspitzer%netscape.com 2001-10-06 01:04:32 +00:00
parent f7d3abb9bb
commit 7c15ae749f
2 changed files with 4 additions and 2 deletions

View File

@ -48,6 +48,9 @@ HTMLFiles=HTML Files (*.htm, *.html, *.shtml)
TextFiles=Text Files (*.txt)
# LOCALIZATION NOTES(TextFiles): Do not translate "*.eml" in the line below
EMLFiles=Mail Files (*.eml)
# LOCALIZATION NOTES(defaultSaveMessageAsFileName): Do not translate ".eml"
# in the line below. Also, the complete file name should 8.3
defaultSaveMessageAsFileName=message.eml
SaveMailAs=Save Message As
LoadingMessageToPrint=Loading message to print...
MessageLoaded=Message loaded...

View File

@ -800,7 +800,6 @@ nsMessenger::SaveAs(const char* url, PRBool asFile, nsIMsgIdentity* identity, ns
{
nsresult rv = NS_ERROR_FAILURE;
nsIMsgMessageService* messageService = nsnull;
nsAutoString defaultFile(NS_ConvertASCIItoUCS2("mail"));
nsCOMPtr<nsIUrlListener> urlListener;
nsSaveMsgListener *aListener = nsnull;
nsCOMPtr<nsIURI> aURL;
@ -830,7 +829,7 @@ nsMessenger::SaveAs(const char* url, PRBool asFile, nsIMsgIdentity* identity, ns
filePicker->Init(nsnull, GetString(NS_ConvertASCIItoUCS2("SaveMailAs").get()), nsIFilePicker::modeSave);
filePicker->SetDefaultString(defaultFile.get());
filePicker->SetDefaultString(GetString(NS_LITERAL_STRING("defaultSaveMessageAsFileName").get()));
filePicker->AppendFilter(GetString(NS_ConvertASCIItoUCS2("EMLFiles").get()),
NS_ConvertASCIItoUCS2("*.eml").get());
filePicker->AppendFilters(nsIFilePicker::filterHTML | nsIFilePicker::filterText | nsIFilePicker::filterAll);