Re: Proceeding with gettext
| От | Peter Eisentraut |
|---|---|
| Тема | Re: Proceeding with gettext |
| Дата | |
| Msg-id | Pine.LNX.4.30.0105301642220.757-100000@peter.localdomain обсуждение исходный текст |
| Ответ на | Re: Proceeding with gettext (Bruce Momjian <pgman@candle.pha.pa.us>) |
| Ответы |
Re: Proceeding with gettext
|
| Список | 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@gmx.net http://funkturm.homeip.net/~peter
В списке pgsql-hackers по дате отправления: