]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
Fix gettext macro calls
authorTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 6 Jan 2026 19:53:12 +0000 (20:53 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Tue, 6 Jan 2026 19:56:04 +0000 (20:56 +0100)
Four occurrences exist in tree in which only () was used, not _(),
which effectively means that these messages were never translated.

Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
disk-utils/fsck.c
libfdisk/src/bsd.c
login-utils/vipw.c

index 02ddaedae947f9e0d42e09799fd377f1c201d158..f85e85cde7298244c3896b5e5d77a3f13fcbd548 100644 (file)
@@ -207,7 +207,7 @@ static int is_mounted(struct libmnt_fs *fs)
        if (!mtab) {
                mtab = mnt_new_table();
                if (!mtab)
-                       err(FSCK_EX_ERROR, ("failed to initialize libmount table"));
+                       err(FSCK_EX_ERROR, _("failed to initialize libmount table"));
                mnt_table_set_cache(mtab, mntcache);
                mnt_table_parse_mtab(mtab, NULL);
        }
@@ -485,7 +485,7 @@ static void load_fs_info(void)
 
        fstab = mnt_new_table();
        if (!fstab)
-               err(FSCK_EX_ERROR, ("failed to initialize libmount table"));
+               err(FSCK_EX_ERROR, _("failed to initialize libmount table"));
 
        mnt_table_set_parser_errcb(fstab, parser_errcb);
        mnt_table_set_cache(fstab, mntcache);
index cb45e3f1ae1c98159e770cbfe7f0ef1ee5c1c7ec..4e31a2f7c799dfa7841893dcaeb079ca19021b32 100644 (file)
@@ -859,7 +859,7 @@ static int bsd_readlabel(struct fdisk_context *cxt)
        }
 
        if (d->d_npartitions > BSD_MAXPARTITIONS)
-               fdisk_warnx(cxt, ("Too many partitions (%d, maximum is %d)."),
+               fdisk_warnx(cxt, _("Too many partitions (%d, maximum is %d)."),
                                d->d_npartitions, BSD_MAXPARTITIONS);
 
        /* let's follow in-PT geometry */
index 0c4565b0d01f05f4c2f9dc9239486523750bf768..5d8644c8234d221460172d80c24be20cb4ad6cb6 100644 (file)
@@ -172,7 +172,7 @@ static void pw_write(void)
        if (rename(tmp_file, orig_file) == -1) {
                int errsv = errno;
                errx(EXIT_FAILURE,
-                    ("cannot write %s: %s (your changes are still in %s)"),
+                    _("cannot write %s: %s (your changes are still in %s)"),
                     orig_file, strerror(errsv), tmp_file);
        }
        unlink(tmp_file);