pg_checksums has an untranslatable string. - Mailing list pgsql-hackers

From Kyotaro Horiguchi
Subject pg_checksums has an untranslatable string.
Date
Msg-id 20190606.200612.110313249.horikyota.ntt@gmail.com
Whole thread Raw
Responses Re: pg_checksums has an untranslatable string.
List pgsql-hackers
Hello.

# My email address has changed. Apologize in advance for possible
# duplicate of this mail because this is the seconf try after
# mail server seems to have failed the first try...

I found a string that ought to be translatable but actually not,
in pg_checksums.c.

>  fprintf(stderr, "%*s/%s MB (%d%%) computed",

It seems to be the only instance in the file.

regards.
-- 
Kyotaro Horiguchi
NTT Open Source Software Center
diff --git a/src/bin/pg_checksums/pg_checksums.c b/src/bin/pg_checksums/pg_checksums.c
index 1d75aa0282..7c7a75cdcd 100644
--- a/src/bin/pg_checksums/pg_checksums.c
+++ b/src/bin/pg_checksums/pg_checksums.c
@@ -146,7 +146,7 @@ progress_report(bool force)
     snprintf(current_size_str, sizeof(current_size_str), INT64_FORMAT,
              current_size / (1024 * 1024));
 
-    fprintf(stderr, "%*s/%s MB (%d%%) computed",
+    fprintf(stderr, _("%*s/%s MB (%d%%) computed"),
             (int) strlen(current_size_str), current_size_str, total_size_str,
             percent);


pgsql-hackers by date:

Previous
From: Pavlo Golub
Date:
Subject: Re: "WIP: Data at rest encryption" patch and, PostgreSQL 11-beta3
Next
From: Peter Eisentraut
Date:
Subject: Re: "long" type is not appropriate for counting tuples