checking in patch for yokoyama@netscape.com. fixes bug 93107 - Save Attachment dialogs title located in msgbase.dll. r=ssu, sr=mscott, a=asa

This commit is contained in:
ssu%netscape.com 2002-03-06 22:17:22 +00:00
Родитель db1aea0cfd
Коммит 2f86c90542
2 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

@ -48,6 +48,8 @@ EMLFiles=Mail Files (*.eml)
# in the line below. Also, the complete file name should 8.3
defaultSaveMessageAsFileName=message.eml
SaveMailAs=Save Message As
SaveAttachment=Save Attachment
SaveAllAttachments=Save All Attachments
LoadingMessageToPrint=Loading message to print...
MessageLoaded=Message loaded...
PrintingMessage=Printing message...

Просмотреть файл

@ -451,8 +451,7 @@ nsMessenger::PromptIfFileExists(nsFileSpec &fileSpec)
nsCOMPtr<nsIFilePicker> filePicker =
do_CreateInstance("@mozilla.org/filepicker;1", &rv);
if (NS_FAILED(rv)) return rv;
// XXX i18n fix me
filePicker->Init(nsnull, NS_LITERAL_STRING("Save Attachment").get(), nsIFilePicker::modeSave);
filePicker->Init(nsnull, GetString(NS_LITERAL_STRING("SaveAttachment").get()), nsIFilePicker::modeSave);
filePicker->SetDefaultString(path.get());
filePicker->AppendFilters(nsIFilePicker::filterAll);
@ -746,7 +745,7 @@ nsMessenger::SaveAttachment(const char * contentType, const char * url,
filePicker->Init(
nsnull,
GetString(NS_LITERAL_STRING("Save Attachment").get()),
GetString(NS_LITERAL_STRING("SaveAttachment").get()),
nsIFilePicker::modeSave
);
filePicker->SetDefaultString(defaultDisplayString.get());
@ -803,7 +802,7 @@ nsMessenger::SaveAllAttachments(PRUint32 count,
if (NS_FAILED(rv)) goto done;
filePicker->Init(
nsnull,
GetString(NS_LITERAL_STRING("Save All Attachments").get()),
GetString(NS_LITERAL_STRING("SaveAllAttachments").get()),
nsIFilePicker::modeGetFolder
);