message.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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. #include "common.h"
  25. #define MSG_DOWNLOAD_COMPLETED _("CUID#%d - The download for one segment completed successfully.")
  26. #define MSG_NO_SEGMENT_AVAILABLE _("CUID#%d - No segment available.")
  27. #define MSG_CONNECTING_TO_SERVER _("CUID#%d - Connecting to %s:%d")
  28. #define MSG_SEGMENT_CHANGED _("CUID#%d - The segment changed. We send the request again with new Range header.")
  29. #define MSG_REDIRECT _("CUID#%d - Redirecting to %s")
  30. #define MSG_SENDING_REQUEST _("CUID#%d - Requesting:\n%s")
  31. #define MSG_RECEIVE_RESPONSE _("CUID#%d - Response received:\n%s")
  32. #define MSG_DOWNLOAD_ABORTED _("CUID#%d - Download aborted.")
  33. #define MSG_RESTARTING_DOWNLOAD _("CUID#%d - Restarting the download.")
  34. #define MSG_MAX_TRY _("CUID#%d - %d times attempted, but no success. Download aborted.")
  35. #define MSG_UNREGISTER_CUID _("CUID#%d - Unregistering cuid from segmentManager.")
  36. #define MSG_SEGMENT_FILE_EXISTS _("The segment file %s exists.")
  37. #define MSG_SEGMENT_FILE_DOES_NOT_EXIST _("The segment file %s does not exist.")
  38. #define MSG_SAVING_SEGMENT_FILE _("Saving the segment file %s")
  39. #define MSG_SAVED_SEGMENT_FILE _("The segment file was saved successfully.")
  40. #define MSG_LOADING_SEGMENT_FILE _("Loading the segment file %s.")
  41. #define MSG_LOADED_SEGMENT_FILE _("The segment file was loaded successfully.")
  42. #define EX_TIME_OUT _("Timeout.")
  43. #define EX_INVALID_CHUNK_SIZE _("Invalid chunk size.")
  44. #define EX_TOO_LARGE_CHUNK _("Too large chunk. size = %d")
  45. #define EX_INVALID_HEADER _("Invalid header.")
  46. #define EX_INVALID_RESPONSE _("Invalid response.")
  47. #define EX_NO_HEADER _("No header found.")
  48. #define EX_NO_STATUS_HEADER _("No status header.")
  49. #define EX_PROXY_CONNECTION_FAILED _("Proxy connection failed.")
  50. #define EX_CONNECTION_FAILED _("Connection failed.")
  51. #define EX_FILENAME_MISMATCH _("The requested filename and the previously registered one are not same. %s != %s")
  52. #define EX_BAD_STATUS _("The response status is not successful. status = %d")
  53. #define EX_TOO_LARGE_FILE _("Too large file size. size = %lld")
  54. #define EX_TRANSFER_ENCODING_NOT_SUPPORTED _("Transfer encoding %s is not supported.")
  55. #define EX_SSL_INIT_FAILURE _("SSL initialization failed.")
  56. #define EX_SIZE_MISMATCH _("Size mismatch %lld != %lld")
  57. #endif // _D_MESSAGE_H_