If we make an error string have a negative ID then the high bit of the id is set. This allows us to pass in the

string ID around as an nsresult and it will properly be detected as an error code when we do NS_FAILED(rv)
tests on it..nifty huh...
This commit is contained in:
mscott%netscape.com 1999-09-22 08:07:52 +00:00
parent 19e600d0ca
commit 107403ab6c
2 changed files with 26 additions and 38 deletions

View File

@ -18,16 +18,16 @@
# The following are used by the compose back end
#
## @name NS_MSG_UNABLE_TO_OPEN_FILE
12500=Mozilla is unable to open the file \n\%.200s.\n\n\Check the file name and try again.
12500=Mozilla is unable to open the file %.200s. Check the file name and try again.
## @name NS_MSG_UNABLE_TO_OPEN_TMP_FILE
12501=Mozilla is unable to open the temporary file\n\%.200s.\n\n\Check your 'Temporary Directory' setting and try again.
12501=Mozilla is unable to open the temporary file %.200s. Check your 'Temporary Directory' setting and try again.
## @name NS_MSG_UNABLE_TO_SAVE_TEMPLATE
12502=Mozilla is unable to save your message as template.\n\Please verify that your Mail preferences are correct\n\and try again.
12502=Mozilla is unable to save your message as template. Please verify that your Mail preferences are correct and try again.
## @name NS_MSG_UNABLE_TO_SAVE_DRAFT
12503=Mozilla is unable to save your message as draft.\n\Please verify that your Mail preferences are correct\n\and try again.
12503=Mozilla is unable to save your message as draft. Please verify that your Mail preferences are correct and try again.
## @name NS_MSG_LOAD_ATTACHMNTS
12504=Loading attachments...
@ -36,7 +36,7 @@
12505=Loading attachment...
## @name NS_MSG_COULDNT_OPEN_FCC_FILE
12506=Couldn't open Sent Mail file.\n\Please verify that your Mail preferences are correct.
12506=Couldn't open Sent Mail file. Please verify that your Mail preferences are correct.
## @name NS_MSG_CANT_POST_TO_MULTIPLE_NEWS_HOSTS
12507=Can't post to multiple news hosts. Try again.
@ -48,37 +48,31 @@
12509=Assembling message...
## @name NS_MSG_NO_SENDER
12510=No sender was specified.\n\Please fill in your email address in the\n\Mail and Newsgroup preferences.
12510=No sender was specified. Please fill in your email address in the Mail and Newsgroup preferences.
## @name NS_MSG_NO_RECIPIENTS
12511=No recipients were specified.\n\Please enter a recipient in a To: line,\n\or a newsgroup in a Group: line..
12511=No recipients were specified. Please enter a recipient in a To: line, or a newsgroup in a Group: line..
## @name NS_MSG_ERROR_WRITING_FILE
12512=Error writing temporary file.
## @name NS_ERROR_COULD_NOT_LOGIN_TO_SMTP_SERVER
12513=An error occurred sending mail:\nMozilla was unable to connect to the SMTP server.\nThe server may be down or may be incorrectly configured.\n\nPlease verify that your Mail preferences are correct\n and try again.
-12513=An error occurred sending mail: Mozilla was unable to connect to the SMTP server. The server may be down or may be incorrectly configured. Please verify that your Mail preferences are correct and try again.
## @name NS_ERROR_SENDING_FROM_COMMAND
12514=An error occurred while sending mail.\nThe mail server responded:\n %s\nPlease verify that your email address is correct\n in your Mail preferences and try again.
12514=An error occurred while sending mail. The mail server responded: %s Please verify that your email address is correct in your Mail preferences and try again.
## @name NS_ERROR_SENDING_RCPT_COMMAND
12515=An error occurred while sending mail.\nThe mail server responded:\n %s\nPlease check the message recipients and try again.
12515=An error occurred while sending mail. The mail server responded: %s. Please check the message recipients and try again.
## @name NS_ERROR_SENDING_DATA_COMMAND
12516=An (SMTP) error occurred while sending mail.\nServer responded: %s
12516=An (SMTP) error occurred while sending mail.Server responded: %s
## @name NS_ERROR_SENDING_MESSAGE
12517=An error occurred while sending mail.\n\
The mail server responded:\n\
%s.\n\
Please check the message and try again.
12517=An error occurred while sending mail. The mail server responded: %s. Please check the message and try again.
## @name NS_ERROR_SERVER_ERROR
12518=An error occurred sending mail: SMTP server error.\n\
The server responded:\n\
%s\n\
Contact your mail administrator for assistance.
12518=An error occurred sending mail: SMTP server error. The server responded: %s. Contact your mail administrator for assistance.
## @name NS_ERROR_QUEUED_DELIVERY_FAILED
12519=An error occurred delivering unsent messages.

View File

@ -18,16 +18,16 @@
# The following are used by the compose back end
#
## @name NS_MSG_UNABLE_TO_OPEN_FILE
12500=Mozilla is unable to open the file \n\%.200s.\n\n\Check the file name and try again.
12500=Mozilla is unable to open the file %.200s. Check the file name and try again.
## @name NS_MSG_UNABLE_TO_OPEN_TMP_FILE
12501=Mozilla is unable to open the temporary file\n\%.200s.\n\n\Check your 'Temporary Directory' setting and try again.
12501=Mozilla is unable to open the temporary file %.200s. Check your 'Temporary Directory' setting and try again.
## @name NS_MSG_UNABLE_TO_SAVE_TEMPLATE
12502=Mozilla is unable to save your message as template.\n\Please verify that your Mail preferences are correct\n\and try again.
12502=Mozilla is unable to save your message as template. Please verify that your Mail preferences are correct and try again.
## @name NS_MSG_UNABLE_TO_SAVE_DRAFT
12503=Mozilla is unable to save your message as draft.\n\Please verify that your Mail preferences are correct\n\and try again.
12503=Mozilla is unable to save your message as draft. Please verify that your Mail preferences are correct and try again.
## @name NS_MSG_LOAD_ATTACHMNTS
12504=Loading attachments...
@ -36,7 +36,7 @@
12505=Loading attachment...
## @name NS_MSG_COULDNT_OPEN_FCC_FILE
12506=Couldn't open Sent Mail file.\n\Please verify that your Mail preferences are correct.
12506=Couldn't open Sent Mail file. Please verify that your Mail preferences are correct.
## @name NS_MSG_CANT_POST_TO_MULTIPLE_NEWS_HOSTS
12507=Can't post to multiple news hosts. Try again.
@ -48,37 +48,31 @@
12509=Assembling message...
## @name NS_MSG_NO_SENDER
12510=No sender was specified.\n\Please fill in your email address in the\n\Mail and Newsgroup preferences.
12510=No sender was specified. Please fill in your email address in the Mail and Newsgroup preferences.
## @name NS_MSG_NO_RECIPIENTS
12511=No recipients were specified.\n\Please enter a recipient in a To: line,\n\or a newsgroup in a Group: line..
12511=No recipients were specified. Please enter a recipient in a To: line, or a newsgroup in a Group: line..
## @name NS_MSG_ERROR_WRITING_FILE
12512=Error writing temporary file.
## @name NS_ERROR_COULD_NOT_LOGIN_TO_SMTP_SERVER
12513=An error occurred sending mail:\nMozilla was unable to connect to the SMTP server.\nThe server may be down or may be incorrectly configured.\n\nPlease verify that your Mail preferences are correct\n and try again.
-12513=An error occurred sending mail: Mozilla was unable to connect to the SMTP server. The server may be down or may be incorrectly configured. Please verify that your Mail preferences are correct and try again.
## @name NS_ERROR_SENDING_FROM_COMMAND
12514=An error occurred while sending mail.\nThe mail server responded:\n %s\nPlease verify that your email address is correct\n in your Mail preferences and try again.
12514=An error occurred while sending mail. The mail server responded: %s Please verify that your email address is correct in your Mail preferences and try again.
## @name NS_ERROR_SENDING_RCPT_COMMAND
12515=An error occurred while sending mail.\nThe mail server responded:\n %s\nPlease check the message recipients and try again.
12515=An error occurred while sending mail. The mail server responded: %s. Please check the message recipients and try again.
## @name NS_ERROR_SENDING_DATA_COMMAND
12516=An (SMTP) error occurred while sending mail.\nServer responded: %s
12516=An (SMTP) error occurred while sending mail.Server responded: %s
## @name NS_ERROR_SENDING_MESSAGE
12517=An error occurred while sending mail.\n\
The mail server responded:\n\
%s.\n\
Please check the message and try again.
12517=An error occurred while sending mail. The mail server responded: %s. Please check the message and try again.
## @name NS_ERROR_SERVER_ERROR
12518=An error occurred sending mail: SMTP server error.\n\
The server responded:\n\
%s\n\
Contact your mail administrator for assistance.
12518=An error occurred sending mail: SMTP server error. The server responded: %s. Contact your mail administrator for assistance.
## @name NS_ERROR_QUEUED_DELIVERY_FAILED
12519=An error occurred delivering unsent messages.