Skip to content

Commit f98bc20

Browse files
committed
Fix translation domain in pg_basebackup
For some reason, we've been overlooking the fact that pg_receivexlog and pg_recvlogical are using wrong translation domains all along, so their output hasn't ever been translated. The right domain is pg_basebackup, not their own executable names. Noticed by Ioseph Kim, who's been working on the Korean translation. Backpatch pg_receivexlog to 9.2 and pg_recvlogical to 9.4.
1 parent 0a29cf6 commit f98bc20

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/bin/pg_basebackup/pg_receivexlog.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,7 @@ main(int argc, char **argv)
373373
int option_index;
374374

375375
progname = get_progname(argv[0]);
376-
set_pglocale_pgservice(argv[0], PG_TEXTDOMAIN("pg_receivexlog"));
376+
set_pglocale_pgservice(argv[0], PG_TEXTDOMAIN("pg_basebackup"));
377377

378378
if (argc > 1)
379379
{

src/bin/pg_basebackup/pg_recvlogical.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -642,7 +642,7 @@ main(int argc, char **argv)
642642
lo;
643643

644644
progname = get_progname(argv[0]);
645-
set_pglocale_pgservice(argv[0], PG_TEXTDOMAIN("pg_recvlogical"));
645+
set_pglocale_pgservice(argv[0], PG_TEXTDOMAIN("pg_basebackup"));
646646

647647
if (argc > 1)
648648
{

0 commit comments

Comments
 (0)