pg.ddx.io pgsql-bugs@postgresql.org mailing list archive
help / color / mirror / Atom feedmacro concatenation fools gettext
3+ messages / 3 participants
[nested] [flat]
* macro concatenation fools gettext
@ 2017-08-31 00:41 Daniele Varrazzo <daniele.varrazzo@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Daniele Varrazzo @ 2017-08-31 00:41 UTC (permalink / raw)
To: pgsql-bugs
The macro concatenation [1]:
pg_log(PG_DEBUG, "received chunk for file \"%s\", offset "
INT64_FORMAT ", size %d\n",
fools gettext which produces only [2]:
msgid "received chunk for file \"%s\", offset "
the part after the macro is lost and I'm not sure if it will "work" by
returning an half-translated sentence, or not work at all and return
an English sentence, or return only the first part of the sentence, or
explode...
[1] https://github.com/postgres/postgres/blob/21d304df/src/bin/pg_rewind/libpq_fetch.c#L345
[2] https://github.com/postgres/postgres/blob/21d304df/src/bin/pg_rewind/po/fr.po#L334
-- Daniele
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: macro concatenation fools gettext
@ 2017-08-31 09:01 Michael Paquier <michael.paquier@gmail.com>
parent: Daniele Varrazzo <daniele.varrazzo@gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Michael Paquier @ 2017-08-31 09:01 UTC (permalink / raw)
To: Daniele Varrazzo <daniele.varrazzo@gmail.com>; +Cc: pgsql-bugs
On Thu, Aug 31, 2017 at 9:41 AM, Daniele Varrazzo
<daniele.varrazzo@gmail.com> wrote:
> the part after the macro is lost and I'm not sure if it will "work" by
> returning an half-translated sentence, or not work at all and return
> an English sentence, or return only the first part of the sentence, or
> explode...
>
> [1] https://github.com/postgres/postgres/blob/21d304df/src/bin/pg_rewind/libpq_fetch.c#L345
> [2] https://github.com/postgres/postgres/blob/21d304df/src/bin/pg_rewind/po/fr.po#L334
This has been already reported a couple of days ago. I have produced a
patch here:
https://www.postgresql.org/message-id/CAB7nPqSSq2_e4DjyR4sKgOoNGxewueF82np4EPHG8cF1tt4yLw@mail.gmail...
--
Michael
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: macro concatenation fools gettext
@ 2017-08-31 12:28 Tom Lane <tgl@sss.pgh.pa.us>
parent: Michael Paquier <michael.paquier@gmail.com>
0 siblings, 0 replies; 3+ messages in thread
From: Tom Lane @ 2017-08-31 12:28 UTC (permalink / raw)
To: Michael Paquier <michael.paquier@gmail.com>; +Cc: Daniele Varrazzo <daniele.varrazzo@gmail.com>; pgsql-bugs
Michael Paquier <michael.paquier@gmail.com> writes:
> On Thu, Aug 31, 2017 at 9:41 AM, Daniele Varrazzo
> <daniele.varrazzo@gmail.com> wrote:
>> the part after the macro is lost and I'm not sure if it will "work" by
>> returning an half-translated sentence, or not work at all and return
>> an English sentence, or return only the first part of the sentence, or
>> explode...
> This has been already reported a couple of days ago. I have produced a
> patch here:
Yeah, but this is just fixing the one occurrence. It'd be nice if we
could have some guarantee that the same thing hasn't been done elsewhere.
No idea whether gettext itself could be taught to complain.
regards, tom lane
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2017-08-31 12:28 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2017-08-31 00:41 macro concatenation fools gettext Daniele Varrazzo <daniele.varrazzo@gmail.com>
2017-08-31 09:01 ` Michael Paquier <michael.paquier@gmail.com>
2017-08-31 12:28 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox