mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-07 03:45:42 +00:00
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:
parent
f7d3abb9bb
commit
7c15ae749f
@ -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...
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user