Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit95c833b

Browse files
committed
Fix translation of strings in psql \d output (translation in headers worked,
but not in cells).
1 parent93df658 commit95c833b

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/0120:55:45 heikki Exp $
6+
* $PostgreSQL: pgsql/src/bin/psql/print.c,v 1.124 2010/03/0121: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*constcontent,constchar*cell,
@@ -2128,7 +2129,7 @@ printTableAddCell(printTableContent *const content, const char *cell,
21282129

21292130
#ifdefENABLE_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)

[8]ページ先頭

©2009-2025 Movatter.jp