From: Tobias Stoeckmann Date: Tue, 6 Jan 2026 19:53:12 +0000 (+0100) Subject: Fix gettext macro calls X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c634871f8fb6a1e5bf7669c20f697f47649bbb86;p=thirdparty%2Futil-linux.git Fix gettext macro calls 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 --- diff --git a/disk-utils/fsck.c b/disk-utils/fsck.c index 02ddaedae..f85e85cde 100644 --- a/disk-utils/fsck.c +++ b/disk-utils/fsck.c @@ -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); diff --git a/libfdisk/src/bsd.c b/libfdisk/src/bsd.c index cb45e3f1a..4e31a2f7c 100644 --- a/libfdisk/src/bsd.c +++ b/libfdisk/src/bsd.c @@ -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 */ diff --git a/login-utils/vipw.c b/login-utils/vipw.c index 0c4565b0d..5d8644c82 100644 --- a/login-utils/vipw.c +++ b/login-utils/vipw.c @@ -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);