]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
swapon: improve a translator hint, and remove a pointless one
authorBenno Schulenberg <bensberg@telfort.nl>
Tue, 25 Mar 2025 10:43:01 +0000 (11:43 +0100)
committerKarel Zak <kzak@redhat.com>
Thu, 27 Mar 2025 09:50:46 +0000 (10:50 +0100)
The reference to "each entry below" made no sense, as that second
translator hint is not before a gettextized message and therefore
did not make it into the POT file.  Gettextizing that message is
not useful as 1) there is nothing to translate, and 2) allowing
the translators to fiddle with the tabs is too complicated, and
3) the --summary output is deprecated anyway.

Signed-off-by: Benno Schulenberg <bensberg@telfort.nl>
sys-utils/swapon.c

index 15efa481a2e5372d5d6f31917e79169e48c2b405..83ec702d546f3c91de65c94d528780da701952bb 100644 (file)
@@ -260,7 +260,8 @@ static int display_summary(void)
        if (!itr)
                err(EXIT_FAILURE, _("failed to initialize libmount iterator"));
 
-       /* TRANSLATORS: The tabs make each field a multiple of 8 characters. Keep aligned with each entry below. */
+       /* TRANSLATORS: The tabs make each field a multiple of 8 characters.
+        * Please keep the translation aligned with the original. */
        printf(_("Filename\t\t\t\tType\t\tSize\t\tUsed\t\tPriority\n"));
 
        while (mnt_table_next_fs(st, itr, &fs) == 0) {
@@ -271,7 +272,6 @@ static int display_summary(void)
                off_t size = mnt_fs_get_size(fs);
                off_t used = mnt_fs_get_usedsize(fs);
 
-               /* TRANSLATORS: Keep each field a multiple of 8 characters and aligned with the header above. */
                printf("%s%*s%s%s\t%jd%s\t%jd%s\t%d\n",
                        src,
                        srclen < 40 ? 40 - srclen : 1, " ",