Fix translation domain in pg_basebackup
authorAlvaro Herrera
Mon, 28 Dec 2015 13:50:35 +0000 (10:50 -0300)
committerAlvaro Herrera
Mon, 28 Dec 2015 13:50:35 +0000 (10:50 -0300)
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.

src/bin/pg_basebackup/pg_receivexlog.c

index 34d4612d9fcab77bf1fb52a8f11e6a38c5eeb466..240544f6f9b3ce8a62bf470ac55ddf7ee27986fa 100644 (file)
@@ -377,7 +377,7 @@ main(int argc, char **argv)
    int         option_index;
 
    progname = get_progname(argv[0]);
-   set_pglocale_pgservice(argv[0], PG_TEXTDOMAIN("pg_receivexlog"));
+   set_pglocale_pgservice(argv[0], PG_TEXTDOMAIN("pg_basebackup"));
 
    if (argc > 1)
    {