errcontext function

Started by Guillaume Lelargeover 18 years ago3 messageshackers
Jump to latest
#1Guillaume Lelarge
guillaume@lelarge.info

Hi,

I wonder why all messages going through errcontext function are not
translatable. I found this when working on PL/pgsql but it seems other
functions (like COPY, see backend/commands/copy.c) call errcontext and
none propose translatable messages.

Can I send a patch so we can translate them ?

Regards.

--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Guillaume Lelarge (#1)
Re: errcontext function

Guillaume Lelarge <guillaume@lelarge.info> writes:

I wonder why all messages going through errcontext function are not
translatable.

I don't think it's errcontext's fault. The PLs in general don't have
any translation coverage. This seems a bit difficult to fix: I don't
think we'd wish to put their messages into the main backend's message
domain, but AFAICT gettext can only support one active domain at
a time.

regards, tom lane

#3Guillaume Lelarge
guillaume@lelarge.info
In reply to: Tom Lane (#2)
Re: errcontext function

Tom Lane a �crit :

Guillaume Lelarge <guillaume@lelarge.info> writes:

I wonder why all messages going through errcontext function are not
translatable.

I don't think it's errcontext's fault. The PLs in general don't have
any translation coverage. This seems a bit difficult to fix: I don't
think we'd wish to put their messages into the main backend's message
domain, but AFAICT gettext can only support one active domain at
a time.

OK, I understand quite well. Thanks for your answer.

Regards.

--
Guillaume.
http://www.postgresqlfr.org
http://dalibo.com