diff options
author | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2010-03-01 21:27:32 +0000 |
---|---|---|
committer | Heikki Linnakangas <heikki.linnakangas@iki.fi> | 2010-03-01 21:27:32 +0000 |
commit | d46f100d06e85bf496c5b51e6acd3d80d0440956 (patch) | |
tree | b062b3e53e38de3d84dfbedcf78084c573021e1b /src | |
parent | 62f5ade804bcb03f5da680c7c601dcc423ce9a63 (diff) | |
download | postgresql-d46f100d06e85bf496c5b51e6acd3d80d0440956.tar.gz postgresql-d46f100d06e85bf496c5b51e6acd3d80d0440956.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.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/bin/psql/print.c b/src/bin/psql/print.c index 7daf8069a93..4a091ab45f8 100644 --- a/src/bin/psql/print.c +++ b/src/bin/psql/print.c @@ -3,7 +3,7 @@ * * Copyright (c) 2000-2009, PostgreSQL Global Development Group * - * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.116.2.2 2010/03/01 20:55:53 heikki Exp $ + * $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.116.2.3 2010/03/01 21:27:32 heikki Exp $ */ #include "postgres_fe.h" @@ -1947,6 +1947,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, @@ -1969,7 +1970,7 @@ printTableAddCell(printTableContent *const content, const char *cell, #ifdef ENABLE_NLS if (translate) - *content->header = _(*content->header); + *content->cell = _(*content->cell); #endif if (mustfree) |