From owner-freebsd-hackers Tue Jan 17 18:56:44 1995 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id SAA06722 for hackers-outgoing; Tue, 17 Jan 1995 18:56:44 -0800 Received: from sovcom.kiae.su (sovcom.kiae.su [144.206.136.1]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id SAA06714 for ; Tue, 17 Jan 1995 18:56:42 -0800 Received: by sovcom.kiae.su id AA21672 (5.65.kiae-2 ); Wed, 18 Jan 1995 05:51:18 +0300 Received: by sovcom.KIAE.su (UUMAIL/2.0); Wed, 18 Jan 95 05:51:17 +0300 Received: (from ache@localhost) by astral.msk.su (8.6.8/8.6.6) id FAA02909; Wed, 18 Jan 1995 05:49:55 +0300 To: FreeBSD-hackers , John Beukema References: In-Reply-To: ; from John Beukema at Wed, 18 Jan 1995 10:04:37 +0800 (HKT) Message-Id: Organization: Olahm Ha-Yetzirah Date: Wed, 18 Jan 1995 05:49:54 +0300 X-Mailer: Mail/@ [v2.31 FreeBSD] From: "Andrew A. Chernov, Black Mage" X-Class: Fast Subject: Re: String tables Lines: 30 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Length: 1091 Sender: hackers-owner@FreeBSD.org Precedence: bulk In message John Beukema writes: >I meant >#define BUS_ERR_COREDMP 11 >err_mess(BUS_ERR_COREDMP); >In errmsg_eng.h >syst_err_msg[BUS_ERR_COREDMP] = "Bus error Core dumped"; >This is good coding practice and not much more work than scattering >messages throughout the code. It could be adapted to use Unicode or other >languages with relatively effort. The master version would of course be >in English, the lingua franca. >jbeukema I like even more PGP way to doing that, f.e.: err_mess(MSG("Bus error Core dumped")); MSG() function searches via hash table corresponding translation of this message, or put original variant, if nothing appropriative found. It is more easy to maintain things this way than lot of defines. -- Andrew A. Chernov : And I rest so composedly, /Now, in my bed, ache@astral.msk.su : That any beholder /Might fancy me dead - FidoNet: 2:5020/230.3 : Might start at beholding me, /Thinking me dead. RELCOM Team,FreeBSD Team : E.A.Poe From "For Annie" 1849