message.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. /* <!-- copyright */
  2. /*
  3. * aria2 - a simple utility for downloading files faster
  4. *
  5. * Copyright (C) 2006 Tatsuhiro Tsujikawa
  6. *
  7. * This program is free software; you can redistribute it and/or modify
  8. * it under the terms of the GNU General Public License as published by
  9. * the Free Software Foundation; either version 2 of the License, or
  10. * (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  20. */
  21. /* copyright --> */
  22. #ifndef _D_MESSAGE_H_
  23. #define _D_MESSAGE_H_
  24. #define MSG_DOWNLOAD_COMPLETED "CUID#%d - The download for one segment completed successfully."
  25. #define MSG_NO_SEGMENT_AVAILABLE "CUID#%d - No segment available."
  26. #define MSG_CONNECTING_TO_SERVER "CUID#%d - Connecting to %s:%d"
  27. #define MSG_SEGMENT_CHANGED "CUID#%d - The segment changed. We send the request again with new Range header."
  28. #define MSG_REDIRECT "CUID#%d - Redirecting to %s"
  29. #define MSG_SENDING_REQUEST "CUID#%d - Requesting:\n%s"
  30. #define MSG_RECEIVE_RESPONSE "CUID#%d - Response received:\n%s"
  31. #define MSG_DOWNLOAD_ABORTED "CUID#%d - Download aborted."
  32. #define MSG_RESTARTING_DOWNLOAD "CUID#%d - Restarting the download."
  33. #define MSG_MAX_TRY "CUID#%d - %d times attempted, but no success. Download aborted."
  34. #define MSG_UNREGISTER_CUID "CUID#%d - Unregistering cuid from segmentManager."
  35. #define MSG_SEGMENT_FILE_EXISTS "The segment file %s exists."
  36. #define MSG_SEGMENT_FILE_DOES_NOT_EXIST "The segment file %s does not exist."
  37. #define MSG_SAVING_SEGMENT_FILE "Saving the segment file %s"
  38. #define MSG_SAVED_SEGMENT_FILE "The segment file was saved successfully."
  39. #define MSG_LOADING_SEGMENT_FILE "Loading the segment file %s."
  40. #define MSG_LOADED_SEGMENT_FILE "The segment file was loaded successfully."
  41. #define EX_TIME_OUT "Timeout."
  42. #define EX_INVALID_CHUNK_SIZE "Invalid chunk size."
  43. #define EX_TOO_LARGE_CHUNK "Too large chunk. size = %d"
  44. #define EX_INVALID_HEADER "Invalid header."
  45. #define EX_INVALID_RESPONSE "Invalid response."
  46. #define EX_NO_HEADER "No header found."
  47. #define EX_NO_STATUS_HEADER "No status header."
  48. #define EX_PROXY_CONNECTION_FAILED "Proxy connection failed."
  49. #define EX_CONNECTION_FAILED "Connection failed."
  50. #define EX_FILENAME_MISMATCH "The requested filename and the previously registered one are not same. %s != %s"
  51. #define EX_BAD_STATUS "The response status is not successful. status = %d"
  52. #define EX_TOO_LARGE_FILE "Too large file size. size = %lld"
  53. #define EX_TRANSFER_ENCODING_NOT_SUPPORTED "Transfer encoding %s is not supported."
  54. #define EX_SSL_INIT_FAILURE "SSL initialization failed."
  55. #define EX_SIZE_MISMATCH "Size mismatch %lld != %lld"
  56. #endif // _D_MESSAGE_H_