mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-12 18:34:36 +08:00
Fix translation of strings in psql \d output (translation in headers worked,
but not in cells).
This commit is contained in:
parent
93df658a01
commit
95c833b41f
@ -3,7 +3,7 @@
|
||||
*
|
||||
* Copyright (c) 2000-2010, PostgreSQL Global Development Group
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.123 2010/03/01 20:55:45 heikki Exp $
|
||||
* $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.124 2010/03/01 21:27:26 heikki Exp $
|
||||
*/
|
||||
#include "postgres_fe.h"
|
||||
|
||||
@ -2106,6 +2106,7 @@ printTableAddHeader(printTableContent *const content, const char *header,
|
||||
* Otherwise, the cell will not be translated.
|
||||
*
|
||||
* If mustfree is true, the cell string is freed by printTableCleanup().
|
||||
* Note: Automatic freeing of translatable strings is not supported.
|
||||
*/
|
||||
void
|
||||
printTableAddCell(printTableContent *const content, const char *cell,
|
||||
@ -2128,7 +2129,7 @@ printTableAddCell(printTableContent *const content, const char *cell,
|
||||
|
||||
#ifdef ENABLE_NLS
|
||||
if (translate)
|
||||
*content->header = _(*content->header);
|
||||
*content->cell = _(*content->cell);
|
||||
#endif
|
||||
|
||||
if (mustfree)
|
||||
|
Loading…
Reference in New Issue
Block a user