Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYqE2-0000z2-W5 for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Jun 2019 11:06:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hYqE1-0002nQ-Mc for pgsql-hackers@arkaria.postgresql.org; Thu, 06 Jun 2019 11:06:29 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYqE1-0002hz-7C for pgsql-hackers@lists.postgresql.org; Thu, 06 Jun 2019 11:06:29 +0000 Received: from mail-pf1-x42b.google.com ([2607:f8b0:4864:20::42b]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hYqDy-0000YX-SA for pgsql-hackers@lists.postgresql.org; Thu, 06 Jun 2019 11:06:28 +0000 Received: by mail-pf1-x42b.google.com with SMTP id u22so1301325pfm.3 for ; Thu, 06 Jun 2019 04:06:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:message-id:to:subject:from:user-agent:mime-version :content-transfer-encoding; bh=8Ecfn9E/S4F9xVKe7JACnI+4zLCBzai/OteAUqmFsdM=; b=UgkIKu/4PQ2bK995+bEDe+Dpu/HRh44S8w0RmthjNLTP+xwuBbuASy7uhHadTYUp9q QQECXSQCUsoLAZo19R1GVXG81ZzNm5ifchn510EuOczN0FGNw+OM1OwuHyiZ8YDca+fy JOvaUerXjVcUcBY61MjSUGl3dywsA9OqT/o7mPC4ijp0SLsZj/LB1Yb70ivtsDJ7tUJq m0rnnnQFkvwjSPH/3erT+iU6KWKKfdkhQaKTxw3TElvLkh38Cej48sOiJvF8+rUHCbui MMiv1tDYlGd+A1vOfF0hetVtOBFMPUnbdIhFBqY15c/BB9bvSc5icHJQU1V7GcKytGJl 3Syw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:message-id:to:subject:from:user-agent :mime-version:content-transfer-encoding; bh=8Ecfn9E/S4F9xVKe7JACnI+4zLCBzai/OteAUqmFsdM=; b=ocZxXXAAwk3Lrz25OIQVDj6+Y+AD/840chnz4aWlohQlyAS6xhspZqgP7KdEe4exi8 Gu6LokuM3yD+w9YqMqiOVgnKzS0Ty5hOACzcmSmjakU9gI5LBu/0mlA+k5Km+zgXaHfu wv3E/8XltGHkzcXJWVWRcxe8EQz5L5KSn1cItN5aksHZJUQWbp0m9ZelXVAqh5eG7mMW YJt2PsFYk/2Vqki8shThDVLiyCxYsw5otKxamTvmyv96CDGm6t0iKxrYSUKgSaxF5EFc zIjLI4uEAKnK+80oBTq7z9xyB/LmMIL9d4QXQBYvfI++NAe3HW0nQxrRq3JVNAu9v6sC myoA== X-Gm-Message-State: APjAAAUbQpX8q/mzkP8XACKy07aI6rP2AH9f19zg/Jc343lzG09o0sgE /uK0c01mUnbcjCYp1094JldXOUiY X-Google-Smtp-Source: APXvYqyq7rXFtvMFnn0dY3C+AQtunnXlgJrzNKVQepEovLckioNLTH2agQuYxLs76OPhY0tBctDHiA== X-Received: by 2002:a17:90a:b903:: with SMTP id p3mr7564695pjr.79.1559819185512; Thu, 06 Jun 2019 04:06:25 -0700 (PDT) Received: from localhost (v000002.dynamic.ppp.asahi-net.or.jp. [124.155.0.2]) by smtp.gmail.com with ESMTPSA id j23sm1850129pff.90.2019.06.06.04.06.23 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 06 Jun 2019 04:06:24 -0700 (PDT) Date: Thu, 06 Jun 2019 20:06:12 +0900 (Tokyo Standard Time) Message-Id: <20190606.200612.110313249.horikyota.ntt@gmail.com> To: pgsql-hackers@lists.postgresql.org Subject: pg_checksums has an untranslatable string. From: Kyotaro Horiguchi User-Agent: Mew version 6.5 on Emacs 22.2 / Mule 5.0 =?iso-2022-jp?B?KBskQjpnGyhCKQ==?= / Meadow-3.01-dev (TSUBO-SUMIRE) Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="--Next_Part(Thu_Jun_06_20_06_13_2019_026)--" Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk ----Next_Part(Thu_Jun_06_20_06_13_2019_026)-- Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 ----Next_Part(Thu_Jun_06_20_06_13_2019_026)-- Content-Type: Text/X-Patch; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="pg_checksums_fix_untranslatable_string.patch" 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); ----Next_Part(Thu_Jun_06_20_06_13_2019_026)----