mirror of
https://github.com/SDL-Hercules-390/hyperion.git
synced 2026-08-03 14:59:36 +02:00
NLS support
git-svn-id: file:///home/jj/hercules.svn/trunk@887 956126f8-22a0-4046-8f4a-272fa8102e63
This commit is contained in:
+14
-14
@@ -60,9 +60,9 @@ int html_include(WEBBLK *webblk, char *filename)
|
||||
|
||||
if (!inclfile)
|
||||
{
|
||||
logmsg("HHS021E html_include: Cannot open %s: %s\n",
|
||||
logmsg(_("HHS021E html_include: Cannot open %s: %s\n"),
|
||||
fullname,strerror(errno));
|
||||
fprintf(webblk->hsock,"ERROR: Cannot open %s: %s\n",
|
||||
fprintf(webblk->hsock,_("ERROR: Cannot open %s: %s\n"),
|
||||
filename,strerror(errno));
|
||||
return FALSE;
|
||||
}
|
||||
@@ -258,7 +258,7 @@ static void http_dump_cgi_variables(WEBBLK *webblk)
|
||||
{
|
||||
CGIVAR *cv;
|
||||
for(cv = webblk->cgivar; cv; cv = cv->next)
|
||||
logmsg("HHS020D cgi_var_dump: pointer(%p) name(%s) value(%s) type(%d)\n",
|
||||
logmsg(_("HHS020D cgi_var_dump: pointer(%p) name(%s) value(%s) type(%d)\n"),
|
||||
cv, cv->name, cv->value, cv->type);
|
||||
}
|
||||
#endif
|
||||
@@ -554,8 +554,8 @@ int optval; /* Argument for setsockopt */
|
||||
TID httptid; /* Negotiation thread id */
|
||||
|
||||
/* Display thread started message on control panel */
|
||||
logmsg ("HHS019I HTTP listener thread started: "
|
||||
"tid="TIDPAT", pid=%d\n",
|
||||
logmsg (_("HHS019I HTTP listener thread started: "
|
||||
"tid="TIDPAT", pid=%d\n"),
|
||||
thread_id(), getpid());
|
||||
|
||||
/* Obtain a socket */
|
||||
@@ -563,7 +563,7 @@ TID httptid; /* Negotiation thread id */
|
||||
|
||||
if (lsock < 0)
|
||||
{
|
||||
logmsg("HHS018E socket: %s\n", strerror(errno));
|
||||
logmsg(_("HHS018E socket: %s\n"), strerror(errno));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -586,14 +586,14 @@ TID httptid; /* Negotiation thread id */
|
||||
|
||||
if (rc == 0 || errno != EADDRINUSE) break;
|
||||
|
||||
logmsg ("HHS017I Waiting for port %u to become free\n",
|
||||
logmsg (_("HHS017I Waiting for port %u to become free\n"),
|
||||
sysblk.httpport);
|
||||
sleep(10);
|
||||
} /* end while */
|
||||
|
||||
if (rc != 0)
|
||||
{
|
||||
logmsg("HHS016E bind: %s\n", strerror(errno));
|
||||
logmsg(_("HHS016E bind: %s\n"), strerror(errno));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -602,11 +602,11 @@ TID httptid; /* Negotiation thread id */
|
||||
|
||||
if (rc < 0)
|
||||
{
|
||||
logmsg("HHS015E listen: %s\n", strerror(errno));
|
||||
logmsg(_("HHS015E listen: %s\n"), strerror(errno));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
logmsg("HHS014I Waiting for HTTP requests on port %u\n",
|
||||
logmsg(_("HHS014I Waiting for HTTP requests on port %u\n"),
|
||||
sysblk.httpport);
|
||||
|
||||
/* Handle connection requests and attention interrupts */
|
||||
@@ -631,7 +631,7 @@ TID httptid; /* Negotiation thread id */
|
||||
if (rc < 0 )
|
||||
{
|
||||
if (errno == EINTR) continue;
|
||||
logmsg("HHS013E select: %s\n", strerror(errno));
|
||||
logmsg(_("HHS013E select: %s\n"), strerror(errno));
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -643,13 +643,13 @@ TID httptid; /* Negotiation thread id */
|
||||
|
||||
if (csock < 0)
|
||||
{
|
||||
logmsg("HHS012E accept: %s\n", strerror(errno));
|
||||
logmsg(_("HHS012E accept: %s\n"), strerror(errno));
|
||||
continue;
|
||||
}
|
||||
|
||||
if(!(hsock = fdopen(csock,"r+")))
|
||||
{
|
||||
logmsg("HHS011E fdopen: %s\n",strerror(errno));
|
||||
logmsg(_("HHS011E fdopen: %s\n"),strerror(errno));
|
||||
close(csock);
|
||||
continue;
|
||||
}
|
||||
@@ -658,7 +658,7 @@ TID httptid; /* Negotiation thread id */
|
||||
if ( create_thread (&httptid, &sysblk.detattr,
|
||||
http_request, hsock) )
|
||||
{
|
||||
logmsg("HHS010E http_request create_thread: %s\n",
|
||||
logmsg(_("HHS010E http_request create_thread: %s\n"),
|
||||
strerror(errno));
|
||||
fclose (hsock);
|
||||
close (csock);
|
||||
|
||||
Reference in New Issue
Block a user