74 |
static char buf[256]; |
static char buf[256]; |
75 |
|
|
76 |
switch( errid ) { |
switch( errid ) { |
77 |
|
case -1: w32_fmt_msg (buf, 255); return buf; |
78 |
case WPTERR_GENERAL: return _("General error occured"); |
case WPTERR_GENERAL: return _("General error occured"); |
79 |
case WPTERR_FILE_OPEN: return _("Could not open file"); |
case WPTERR_FILE_OPEN: return _("Could not open file"); |
80 |
case WPTERR_FILE_CREAT: return _("Could not create file"); |
case WPTERR_FILE_CREAT: return _("Could not create file"); |
93 |
case WPTERR_CLIP: return _("General Clipboard error"); |
case WPTERR_CLIP: return _("General Clipboard error"); |
94 |
case WPTERR_REGISTRY: sprintf (buf, "%s", _("Registry error: ")); |
case WPTERR_REGISTRY: sprintf (buf, "%s", _("Registry error: ")); |
95 |
w32_fmt_msg (buf + strlen (buf), 128); |
w32_fmt_msg (buf + strlen (buf), 128); |
96 |
break; |
return buf; |
97 |
case WPTERR_WINSOCK_INIT: return _("Could not startup Winsock 2 interface"); |
case WPTERR_WINSOCK_INIT: return _("Could not startup Winsock 2 interface"); |
98 |
case WPTERR_WINSOCK_RESOLVE: return _("Could not resolve hostname"); |
case WPTERR_WINSOCK_RESOLVE: return _("Could not resolve hostname"); |
99 |
case WPTERR_WINSOCK_SOCKET: return _("Could not create new socket"); |
case WPTERR_WINSOCK_SOCKET: return _("Could not create new socket"); |
104 |
case WPTERR_KEYSERVER_NOTFOUND: return _("Keyserver returned: no matching keys in database"); |
case WPTERR_KEYSERVER_NOTFOUND: return _("Keyserver returned: no matching keys in database"); |
105 |
case WPTERR_HOTKEY: sprintf (buf, "%s", _("Could not register hotkey: ")); |
case WPTERR_HOTKEY: sprintf (buf, "%s", _("Could not register hotkey: ")); |
106 |
w32_fmt_msg (buf + strlen (buf), 128); |
w32_fmt_msg (buf + strlen (buf), 128); |
107 |
break; |
return buf; |
108 |
case WPTERR_DIR_OPEN: return _("Could not open directory"); |
case WPTERR_DIR_OPEN: return _("Could not open directory"); |
109 |
case WPTERR_DIR_CREAT: return _("Could not create directory"); |
case WPTERR_DIR_CREAT: return _("Could not create directory"); |
110 |
case WPTERR_CURR_WND: return _("Could not extract data from the current window"); |
case WPTERR_CURR_WND: return _("Could not extract data from the current window"); |