From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | translatable string fixes |
Date: | 2017-05-21 18:52:38 |
Message-ID: | 20170521185238.f5zfvwohipuwwh4v@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-translators |
I noticed this entry while updating the translation for 9.6:
#: catalog/index.c:3456 commands/vacuumlazy.c:1345 commands/vacuumlazy.c:1421
#: commands/vacuumlazy.c:1610 commands/vacuumlazy.c:1820
#, c-format
msgid "%s."
msgstr "%s."
All of these correspond to errdetail printing pg_rusage_show() output.
I think these are all bogus and should be changed to
errdetail_internal() instead. Surely if we want pg_rusage_show() output
to be translated, we should apply _() to the snprintf() call inside that
function.
At the same time, trying to append a period in the callers seems
pointless; if we really feel a strong need for that period I suggest we
add a flag to pg_rusage_show() to indicate whether to add it or not,
though my inclination is not to bother.
I also attach style fixes for other issues I found.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
Attachment | Content-Type | Size |
---|---|---|
0001-Make-messages-identical.patch | text/plain | 917 bytes |
0002-Make-strings-identical.patch | text/plain | 1.2 KB |
0003-correctly-do-not-quote-type-name.patch | text/plain | 935 bytes |
0004-Fix-translation-for-pg_rusage_show.patch | text/plain | 3.1 KB |
0005-Make-new-message-identical-to-existing-ones.patch | text/plain | 2.4 KB |
0006-Make-messages-consistent-with-others.patch | text/plain | 1.5 KB |
From | Date | Subject | |
---|---|---|---|
Next Message | Rosser Schwarz | 2017-05-21 19:04:22 | Patch: add --if-exists to pg_recvlogical |
Previous Message | Thomas Munro | 2017-05-21 18:39:35 | Re: WIP: [[Parallel] Shared] Hash |
From | Date | Subject | |
---|---|---|---|
Next Message | Daniel Gustafsson | 2017-05-21 21:46:53 | Typo in pt_BR translation |
Previous Message | Euler Taveira | 2017-05-11 18:33:01 | Re: PostgreSQL NLS for Hebrew |