Skip to content

Commit 95c833b

Browse files
committed
Fix translation of strings in psql \d output (translation in headers worked,
but not in cells).
1 parent 93df658 commit 95c833b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/bin/psql/print.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* Copyright (c) 2000-2010, PostgreSQL Global Development Group
55
*
6-
* $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.123 2010/03/01 20:55:45 heikki Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.124 2010/03/01 21:27:26 heikki Exp $
77
*/
88
#include "postgres_fe.h"
99

@@ -2106,6 +2106,7 @@ printTableAddHeader(printTableContent *const content, const char *header,
21062106
* Otherwise, the cell will not be translated.
21072107
*
21082108
* If mustfree is true, the cell string is freed by printTableCleanup().
2109+
* Note: Automatic freeing of translatable strings is not supported.
21092110
*/
21102111
void
21112112
printTableAddCell(printTableContent *const content, const char *cell,
@@ -2128,7 +2129,7 @@ printTableAddCell(printTableContent *const content, const char *cell,
21282129

21292130
#ifdef ENABLE_NLS
21302131
if (translate)
2131-
*content->header = _(*content->header);
2132+
*content->cell = _(*content->cell);
21322133
#endif
21332134

21342135
if (mustfree)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy