Re: Proceeding with gettext - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Proceeding with gettext
Date
Msg-id 200105301521.f4UFLwA27403@candle.pha.pa.us
Whole thread Raw
In response to Proceeding with gettext  (Peter Eisentraut <peter_e@gmx.net>)
List pgsql-hackers
> Bruce Momjian writes:
> 
> > Peter, can you give a little sample of how an elog() call would look in
> > the new system?  Thanks.
> 
> No change.
> 
> elog() would call gettext() internally, so the code change there is
> localized to elog.c.  For other function calls that contain translatable
> message strings it looks like (example from psql):
> 
>     fprintf(stderr, gettext("Invalid command \\%s. Try \\? for help.\n"), my_line);
> 
> So obviously it would pay off if the communication of a program was
> encapsulated in a limited number of functions.

Sounds great!

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Unused pg_class columns
Next
From: Bruce Momjian
Date:
Subject: Re: Support for %TYPE in CREATE FUNCTION