51
51
"CUID#%s - %d times attempted, but no success. Download aborted."
52
52
#define MSG_SEND_PEER_MESSAGE "CUID#%s - To: %s:%d %s"
53
53
#define MSG_RECEIVE_PEER_MESSAGE "CUID#%s - From: %s:%d %s"
54
#define MSG_GOT_NEW_PIECE "CUID#%s - we got new piece. index=%d"
55
#define MSG_GOT_WRONG_PIECE "CUID#%s - we got wrong piece. index=%d"
54
#define MSG_GOT_NEW_PIECE "CUID#%s - we got new piece. index=%lu"
55
#define MSG_GOT_WRONG_PIECE "CUID#%s - we got wrong piece. index=%lu"
56
56
#define MSG_DOWNLOAD_NOT_COMPLETE "CUID#%s - Download not complete: %s"
57
57
#define MSG_DOWNLOAD_ALREADY_COMPLETED _("GID#%s - Download has already completed: %s")
58
58
#define MSG_RESOLVING_HOSTNAME "CUID#%s - Resolving hostname %s"
63
63
#define MSG_DNS_CACHE_HIT "CUID#%s - DNS cache hit: %s -> %s"
64
64
#define MSG_CONNECTING_TO_PEER "CUID#%s - Connecting to the peer %s"
65
65
#define MSG_PIECE_RECEIVED \
66
"CUID#%s - Piece received. index=%d, begin=%d, length=%d, offset=%llu," \
66
"CUID#%s - Piece received. index=%lu, begin=%u, length=%u, offset=%lld," \
68
68
#define MSG_PIECE_BITFIELD "CUID#%s - Piece bitfield %s"
69
69
#define MSG_REJECT_PIECE_CHOKED \
70
70
"CUID#%s - Reject piece message in queue because the peer has been choked." \
71
" index=%d, begin=%d, length=%d"
71
" index=%lu, begin=%u, length=%u"
72
72
#define MSG_REJECT_PIECE_CANCEL \
73
73
"CUID#%s - Reject piece message in queue because cancel message received." \
74
" index=%d, begin=%d, length=%d"
74
" index=%lu, begin=%u, length=%u"
75
75
#define MSG_FILE_VALIDATION_FAILURE \
76
76
"CUID#%s - Exception caught while validating file integrity."
77
77
#define MSG_PEER_INTERESTED "CUID#%s - Interested in the peer"
78
78
#define MSG_PEER_NOT_INTERESTED "CUID#%s - Not interested in the peer"
79
#define MSG_DELETING_REQUEST_SLOT "CUID#%s - Deleting request slot index=%d, blockIndex=%d"
80
#define MSG_DELETING_REQUEST_SLOT_CHOKED "CUID#%s - Deleting request slot index=%d, blockIndex=%d because localhost got choked."
81
#define MSG_DELETING_REQUEST_SLOT_TIMEOUT "CUID#%s - Deleting request slot blockIndex=%d because of time out"
82
#define MSG_DELETING_REQUEST_SLOT_ACQUIRED "CUID#%s - Deleting request slot blockIndex=%d because the block has been acquired."
79
#define MSG_DELETING_REQUEST_SLOT "CUID#%s - Deleting request slot index=%lu," \
80
" begin=%u, blockIndex=%lu"
81
#define MSG_DELETING_REQUEST_SLOT_CHOKED "CUID#%s - Deleting request slot" \
82
" index=%lu, begin=%u, blockIndex=%lu because localhost got choked."
83
#define MSG_DELETING_REQUEST_SLOT_TIMEOUT "CUID#%s - Deleting request slot" \
84
" index=%lu, begin=%u, blockIndex=%lu because of time out"
85
#define MSG_DELETING_REQUEST_SLOT_ACQUIRED "CUID#%s - Deleting request slot" \
86
" index=%lu, begin=%u, blockIndex=%lu because the block has been acquired."
83
87
#define MSG_FAST_EXTENSION_ENABLED "CUID#%s - Fast extension enabled."
84
88
#define MSG_EXTENDED_MESSAGING_ENABLED "CUID#%s - Extended Messaging enabled."
85
89
#define MSG_FILE_ALLOCATION_FAILURE \
119
123
#define MSG_DELETING_USED_PIECE _("Deleting used piece index=%d, fillRate(%%)=%d<=%d")
120
124
#define MSG_SELECTIVE_DOWNLOAD_COMPLETED _("Download of selected files was complete.")
121
125
#define MSG_DOWNLOAD_COMPLETED _("The download was complete.")
122
#define MSG_REMOVED_HAVE_ENTRY _("Removed %d have entries.")
126
#define MSG_REMOVED_HAVE_ENTRY _("Removed %lu have entries.")
123
127
#define MSG_VALIDATING_FILE _("Validating file %s")
124
#define MSG_ALLOCATION_COMPLETED _("%d seconds to allocate %s byte(s)")
128
#define MSG_ALLOCATION_COMPLETED _("%ld seconds to allocate %s byte(s)")
125
129
#define MSG_FILE_ALLOCATION_DISPATCH \
126
130
"Dispatching FileAllocationCommand for CUID#%s."
127
131
#define MSG_METALINK_QUEUEING _("Metalink: Queueing %s for download.")
141
145
#define MSG_RESOURCE_NOT_FOUND _("Resource not found")
142
146
#define MSG_FILE_RENAMED _("File already exists. Renamed to %s.")
143
147
#define MSG_CANNOT_PARSE_METALINK _("Cannot parse metalink XML file. XML may be malformed.")
144
#define MSG_TOO_SMALL_PAYLOAD_SIZE _("Too small payload size for %s, size=%d.")
148
#define MSG_TOO_SMALL_PAYLOAD_SIZE _("Too small payload size for %s, size=%lu.")
145
149
#define MSG_REMOVED_DEFUNCT_CONTROL_FILE _("Removed the defunct control file %s because the download file %s doesn't exist.")
146
150
#define MSG_SHARE_RATIO_REPORT _("Your share ratio was %.1f, uploaded/downloaded=%sB/%sB")
147
151
#define MSG_MISSING_BT_INFO _("Missing %s in torrent metainfo.")
148
152
#define MSG_NULL_TRACKER_RESPONSE _("Tracker returned null data.")
149
153
#define MSG_WINSOCK_INIT_FAILD _("Windows socket library initialization failed")
150
#define MSG_TIME_HAS_PASSED _("%d second(s) has passed. Stopping application.")
154
#define MSG_TIME_HAS_PASSED _("%ld second(s) has passed. Stopping application.")
151
155
#define MSG_SIGNATURE_SAVED _("Saved signature as %s. Please note that aria2" \
152
156
" doesn't verify signatures.")
153
157
#define MSG_SIGNATURE_NOT_SAVED _("Saving signature as %s failed. Maybe file" \
168
172
#define MSG_LOADING_TRUSTED_CA_CERT_FAILED \
169
173
_("Failed to load trusted CA certificates from %s. Cause: %s")
170
174
#define MSG_CERT_VERIFICATION_FAILED \
171
_("Certificate verification failed. Cause: %s")
175
_("Certificate verification failed. Cause: %s See --ca-certificate and" \
176
" --check-certificate option.")
172
177
#define MSG_NO_CERT_FOUND _("No certificate found.")
173
178
#define MSG_HOSTNAME_NOT_MATCH _("Hostname not match.")
174
179
#define MSG_NO_FILES_TO_DOWNLOAD _("No files to download.")
246
251
#define EX_SOCKET_PEEK _("Failed to peek data, cause: %s")
247
252
#define EX_SOCKET_UNKNOWN_ERROR _("Unknown socket error %d (0x%x)")
248
253
#define EX_FILE_ALREADY_EXISTS _("File %s exists, but %s does not exist.")
249
#define EX_INVALID_PAYLOAD_SIZE _("Invalid payload size for %s, size=%d. It should be %d.")
254
#define EX_INVALID_PAYLOAD_SIZE \
255
_("Invalid payload size for %s, size=%lu. It should be %lu.")
250
256
#define EX_INVALID_BT_MESSAGE_ID _("Invalid ID=%d for %s. It should be %d.")
251
#define EX_INVALID_CHUNK_CHECKSUM _("Chunk checksum validation failed. checksumIndex=%d, offset=%s, expectedHash=%s, actualHash=%s")
257
#define EX_INVALID_CHUNK_CHECKSUM _("Chunk checksum validation failed. checksumIndex=%lu, offset=%s, expectedHash=%s, actualHash=%s")
252
258
#define EX_DOWNLOAD_ABORTED _("Download aborted.")
253
259
#define EX_DUPLICATE_FILE_DOWNLOAD _("File %s is being downloaded by other command.")
254
260
#define EX_INSUFFICIENT_CHECKSUM _("Insufficient checksums.")
255
261
#define EX_TRACKER_FAILURE _("Tracker returned failure reason: %s")
256
262
#define EX_FLOODING_DETECTED _("Flooding detected.")
257
#define EX_DROP_INACTIVE_CONNECTION _("Drop connection because no request/piece messages were exchanged in a certain period(%d seconds).")
263
#define EX_DROP_INACTIVE_CONNECTION \
264
_("Drop connection because no request/piece messages were exchanged in a" \
265
" certain period(%ld seconds).")
258
266
#define EX_INFOHASH_MISMATCH_IN_SEGFILE _("The infoHash in torrent file doesn't match to one in .aria2 file.")
259
267
#define EX_NO_SUCH_FILE_ENTRY _("No such file entry %s")
260
268
#define EX_TOO_SLOW_DOWNLOAD_SPEED _("Too slow Downloading speed: %d <= %d(B/s), host:%s")