38695. r=alecf. i18n network error strings

git-svn-id: svn://10.0.0.236/trunk@70474 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
valeski%netscape.com
2000-05-18 21:52:23 +00:00
parent 71a83abcfd
commit 47c824959d
4 changed files with 51 additions and 48 deletions

View File

@@ -41,6 +41,7 @@
#include "nsPoint.h"
#include "nsGfxCIID.h"
#include "nsIPrompt.h"
#include "nsTextFormatter.h"
// Local Includes
#include "nsDocShell.h"
@@ -1040,12 +1041,14 @@ NS_IMETHODIMP nsDocShell::LoadURI(const PRUnichar* aURI)
// extract the scheme
nsAutoString scheme;
uriString.Left(scheme, colon);
nsCAutoString cScheme;
cScheme.AssignWithConversion(scheme);
nsAutoString dnsMsg(scheme);
dnsMsg.AppendWithConversion(' ');
dnsMsg.Append(messageStr);
PRUnichar *msg = nsTextFormatter::smprintf(messageStr, cScheme.GetBuffer());
if (!msg) return NS_ERROR_OUT_OF_MEMORY;
prompter->Alert(nsnull, dnsMsg.GetUnicode());
prompter->Alert(nsnull, msg);
nsTextFormatter::smprintf_free(msg);
} // end unknown protocol
if(!uri)