From b7e466900330bbe60f89e4a8ae4842d7368c2e1f Mon Sep 17 00:00:00 2001 From: Fritz Elfert Date: Tue, 16 Jul 2002 19:40:29 +0000 Subject: - Added some translations in ncpd. --- ncpd/main.cc | 10 +++++----- ncpd/ncp.cc | 6 +++--- 2 files changed, 8 insertions(+), 8 deletions(-) (limited to 'ncpd') diff --git a/ncpd/main.cc b/ncpd/main.cc index a78f47d..72fc644 100644 --- a/ncpd/main.cc +++ b/ncpd/main.cc @@ -76,7 +76,7 @@ ostream lerr(&elog); static RETSIGTYPE term_handler(int) { - linf << "Got SIGTERM" << endl; + linf << _("Got SIGTERM") << endl; signal(SIGTERM, term_handler); active = false; }; @@ -84,7 +84,7 @@ term_handler(int) static RETSIGTYPE int_handler(int) { - linf << "Got SIGINT" << endl; + linf << _("Got SIGINT") << endl; signal(SIGINT, int_handler); active = false; }; @@ -355,8 +355,8 @@ main(int argc, char **argv) dlog.setOn(true); elog.setOn(true); ilog.setOn(true); - linf << "daemon started. Listening at " << host << ":" - << sockNum << " using device " << serialDevice + linf << _("daemon started. Listening at ") << host << ":" + << sockNum << _(" using device ") << serialDevice << endl; setsid(); chdir("/"); @@ -388,7 +388,7 @@ main(int argc, char **argv) } while (active) checkForNewSocketConnection(); - linf << "terminating" << endl; + linf << _("terminating") << endl; void *ret; pthread_join(thr_a, &ret); pthread_join(thr_b, &ret); diff --git a/ncpd/ncp.cc b/ncpd/ncp.cc index 3abdf87..3507804 100644 --- a/ncpd/ncp.cc +++ b/ncpd/ncp.cc @@ -229,9 +229,9 @@ decodeControlMessage(bufferStore & buff) controlChannel(localChan, NCON_MSG_CONNECT_RESPONSE, b); if (verbose & NCP_DEBUG_LOG) lout << "ncp: Link UP" << endl; - linf << "Connected with a S" - << ((protocolVersion == PV_SERIES_5) ? 5 : 3) << " at " - << getSpeed() << "baud" << endl; + linf << _("Connected with a S") + << ((protocolVersion == PV_SERIES_5) ? 5 : 3) << _(" at ") + << getSpeed() << _("baud") << endl; // Create linkchan if it does not yet exist if (!lChan) { if (verbose & NCP_DEBUG_LOG) -- cgit v1.2.3