Re: Proceeding with gettext

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: Proceeding with gettext
Date: 2001-05-30 15:19:01
Message-ID: Pine.LNX.4.30.0105301642220.757-100000@peter.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

--
Peter Eisentraut peter_e(at)gmx(dot)net http://funkturm.homeip.net/~peter

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2001-05-30 15:21:57 Re: Proceeding with gettext
Previous Message Bruce Momjian 2001-05-30 14:55:54 Re: Unused pg_class columns