pg_checksums has an untranslatable string.

Started by Horiguchi Kyotaroover 6 years ago1 messages
#1Horiguchi Kyotaro
horikyota.ntt@gmail.com
1 attachment(s)

Hello.

# My email address has changed.

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

Attachments:

pg_checksums_fix_untranslatable_string.patchapplication/octet-stream; name=pg_checksums_fix_untranslatable_string.patchDownload
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);