fix for #63994, fix string used in news error alert. sr=bienvenu.

This commit is contained in:
sspitzer%netscape.com 2000-12-31 02:57:01 +00:00
parent 5dc2fa42a9
commit 571284efc2
2 changed files with 5 additions and 4 deletions

View File

@ -44,7 +44,6 @@ downloadingHeaders=Downloading %S of %S headers
downloadingArticles=Downloading articles %S-%S
bytesReceived=Downloading newsgroups: %S received (%SK read at %SK/sec)
checkingForNewNews=Checking newsgroup %S of %S for new messages
newsError=NEWS ERROR:
# LOCALIZATION NOTE (Error -304): In the following item, don't translate "NNTP"
# Error - server error

View File

@ -5467,12 +5467,14 @@ nsNNTPProtocol::AlertError(PRInt32 errorCode, const char *text)
nsAutoString alertText;
nsXPIDLString str;
rv = GetNewsStringByName("newsError", getter_Copies(str));
rv = GetNewsStringByID(MK_NNTP_ERROR_MESSAGE, getter_Copies(str));
NS_ENSURE_SUCCESS(rv,rv);
alertText.Append(str);
if (text)
alertText.AppendWithConversion(text);
if (text) {
alertText.Append(NS_LITERAL_STRING(" ").get());
alertText.AppendWithConversion(text);
}
rv = dialog->Alert(nsnull, alertText.GetUnicode());
NS_ENSURE_SUCCESS(rv, rv);