Обсуждение: pg_checksums has an untranslatable string.

Поиск
Список
Период
Сортировка

pg_checksums has an untranslatable string.

От
Kyotaro Horiguchi
Дата:
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);


Re: pg_checksums has an untranslatable string.

От
Michael Paquier
Дата:
On Thu, Jun 06, 2019 at 08:06:12PM +0900, Kyotaro Horiguchi wrote:
> It seems to be the only instance in the file.

Confirmed and committed.  Thanks for the report.
--
Michael

Вложения

Re: pg_checksums has an untranslatable string.

От
Horiguchi Kyotaro
Дата:
Hello

> Confirmed and committed.  Thanks for the report.

Thanks for committing.
-- 
Kyotaro Horiguchi
NTT Open Source Software Center