mirror of https://github.com/aria2/aria2
2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Externalize message to message.h * src/Platform.cc * src/message.hpull/1/head
parent
c1bc357d79
commit
160d5a8614
|
@ -1,3 +1,9 @@
|
|||
2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Externalize message to message.h
|
||||
* src/Platform.cc
|
||||
* src/message.h
|
||||
|
||||
2008-01-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Set default domain and default path to cookie.
|
||||
|
|
|
@ -50,6 +50,7 @@
|
|||
#include "common.h"
|
||||
#include "DlAbortEx.h"
|
||||
#include "Platform.h"
|
||||
#include "message.h"
|
||||
#include <stdlib.h> /* _fmode */
|
||||
#include <fcntl.h> /* _O_BINARY */
|
||||
|
||||
|
@ -58,7 +59,7 @@ Platform::Platform() {
|
|||
WSADATA wsaData;
|
||||
memset((char*)&wsaData, 0, sizeof(wsaData));
|
||||
if (WSAStartup(MAKEWORD(1, 1), &wsaData)) {
|
||||
throw new DlAbortEx(_("Windows socket library initialization failed"));
|
||||
throw new DlAbortEx(MSG_WINSOCK_INIT_FAILD);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -137,6 +137,7 @@
|
|||
#define MSG_SHARE_RATIO_REPORT _("Your share ratio was %.1f, uploaded/downloaded=%sB/%sB")
|
||||
#define MSG_SOMETHING_MISSING_IN_TORRENT _("Missing %s in torrent metainfo.")
|
||||
#define MSG_NULL_TRACKER_RESPONSE _("Tracker returned null data.")
|
||||
#define MSG_WINSOCK_INIT_FAILD _("Windows socket library initialization failed")
|
||||
|
||||
#define EX_TIME_OUT _("Timeout.")
|
||||
#define EX_INVALID_CHUNK_SIZE _("Invalid chunk size.")
|
||||
|
|
Loading…
Reference in New Issue