aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-03-01 21:27:26 +0000
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2010-03-01 21:27:26 +0000
commit95c833b41f084980f18b3ca6c72fac1c7376b9d6 (patch)
tree674752d0cec58d81922fb29a67abb3acab365c4b /src
parent93df658a0189cfeda273f6efd2228578bb7933d3 (diff)
downloadpostgresql-95c833b41f084980f18b3ca6c72fac1c7376b9d6.tar.gz
postgresql-95c833b41f084980f18b3ca6c72fac1c7376b9d6.zip
Fix translation of strings in psql \d output (translation in headers worked,
but not in cells).
Diffstat (limited to 'src')
-rw-r--r--src/bin/psql/print.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c
index aeecb1fd909..d62b46d0103 100644
--- a/src/bin/psql/print.c
+++ b/src/bin/psql/print.c
@@ -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)