From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | PostgreSQL Development <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Proceeding with gettext |
Date: | 2001-05-30 15:21:57 |
Message-ID: | 200105301521.f4UFLwA27403@candle.pha.pa.us |
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.
Sounds great!
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2001-05-30 15:37:02 | Re: Unused pg_class columns |
Previous Message | Peter Eisentraut | 2001-05-30 15:19:01 | Re: Proceeding with gettext |