Hi,

src/stat.c contains a translator comment that has no effect because
it's more than one line away from the beginning of the _() invocation.

How to reproduce: Look in po/coreutils.pot, searching for 'Access: %x'.
No translator comment is there.

This was introduced in commit d3227eeb90c8308abd1e6bf08ee253b7a4e78d1d
on 2012-01-09.

Here's patch that fixes it.


>From 5fa41bfb49118376c39c1baf8786c2300a336004 Mon Sep 17 00:00:00 2001
From: Bruno Haible <br...@clisp.org>
Date: Tue, 25 Jun 2024 12:18:40 +0200
Subject: [PATCH] stat: Reactivate a translator comment (lost on 2012-01-09)

* src/stat.c (default_format): Move translator comment to immediately
precede the _() invocation.
---
 src/stat.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/stat.c b/src/stat.c
index e73abf07a..1513abfaa 100644
--- a/src/stat.c
+++ b/src/stat.c
@@ -1732,9 +1732,10 @@ default_format (bool fs, bool terse, bool device)
             }
 
           temp = format;
-          /* TRANSLATORS: This string uses format specifiers from
-             'stat --help' without --file-system, and NOT from printf.  */
           format = xasprintf ("%s%s", format,
+                              /* TRANSLATORS: This string uses format specifiers
+                                 from 'stat --help' without --file-system, and
+                                 NOT from printf.  */
                               _("Access: %x\n"
                                 "Modify: %y\n"
                                 "Change: %z\n"
-- 
2.34.1

Reply via email to