This is an automated email from the git hooks/post-receive script.

guillem pushed a commit to branch main
in repository dpkg.

View the commit online:
https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=24dd962775aec830940c0e9d612f79985715ad88

commit 24dd962775aec830940c0e9d612f79985715ad88
Author: Guillem Jover <guil...@debian.org>
AuthorDate: Sun Aug 31 16:02:52 2025 +0200

    Change TRANSLATORS comments style to get better extraction by gettext
    
    Do not pack the comment start and end markers, so that gettext can
    properly extract the comments and does not prefix them with asterisks.
    
    Changelog: internal
---
 dselect/pkgdisplay.cc | 6 ++++--
 lib/dpkg/progress.c   | 6 ++++--
 src/main/unpack.c     | 6 ++++--
 3 files changed, 12 insertions(+), 6 deletions(-)

diff --git a/dselect/pkgdisplay.cc b/dselect/pkgdisplay.cc
index 5cc4663a6..dbac8b0a2 100644
--- a/dselect/pkgdisplay.cc
+++ b/dselect/pkgdisplay.cc
@@ -41,10 +41,12 @@ const char
                            N_("purge"),
                            nullptr },
 
-  /* TRANSLATORS: The space is a trick to work around gettext which uses
+  /*
+   * TRANSLATORS: The space is a trick to work around gettext which uses
    * the empty string to store information about the translation. DO NOT
    * CHANGE THAT IN A TRANSLATION! The code really relies on that being
-   * a single space. */
+   * a single space.
+   */
   *const eflagstrings[]=   { N_(" "),
                             N_("REINSTALL"),
                             nullptr },
diff --git a/lib/dpkg/progress.c b/lib/dpkg/progress.c
index 9b6032f7d..499b8fc87 100644
--- a/lib/dpkg/progress.c
+++ b/lib/dpkg/progress.c
@@ -63,8 +63,10 @@ progress_step(struct progress *progress)
        progress->last_percent = cur_percent;
 
        fputs(progress->text, stdout);
-       /* TRANSLATORS: This is part of the progress output, it is a decimal
-        * percentage. */
+       /*
+        * TRANSLATORS: This is part of the progress output, it is a decimal
+        * percentage.
+        */
        printf(_("%d%%"), cur_percent);
        putchar('\r');
 }
diff --git a/src/main/unpack.c b/src/main/unpack.c
index 687fbe41e..107d5661e 100644
--- a/src/main/unpack.c
+++ b/src/main/unpack.c
@@ -73,9 +73,11 @@ summarize_filename(const char *filename)
 
   if (pfilename && pfilename != filename) {
     pfilenamebuf = nfmalloc(strlen(pfilename) + 5);
-    /* TRANSLATORS: This string represents a summarized pathname, were prefix
+    /*
+     * TRANSLATORS: This string represents a summarized pathname, were prefix
      * directories get abbreviated with ".../", if the total length exceeds
-     * a limit. The three dots would usually be represented by «…/». */
+     * a limit. The three dots would usually be represented by «…/».
+     */
     sprintf(pfilenamebuf, _(".../%s"), pfilename);
     pfilename = pfilenamebuf;
   } else {

-- 
Dpkg.Org's dpkg

Reply via email to