]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
partx, lsblk: fix gettext calls
authorKarel Zak <kzak@redhat.com>
Fri, 11 Feb 2011 08:06:27 +0000 (09:06 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 18 Apr 2011 12:22:35 +0000 (14:22 +0200)
Reported-by: Peter Breitenlohner <peb@mppmu.mpg.de>
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/lsblk.c
partx/partx.c

index 44358fd862027c291ebee04f75154a7430686558..b07bfb49a679dd935e50948541a376b5e8ec78ba 100644 (file)
@@ -871,7 +871,7 @@ static void __attribute__((__noreturn__)) help(FILE *out)
        fprintf(out, _("\nAvailable columns:\n"));
 
        for (i = 0; i < __NCOLUMNS; i++)
-               fprintf(out, " %10s  %s\n", infos[i].name, gettext(infos[i].help));
+               fprintf(out, " %10s  %s\n", infos[i].name, _(infos[i].help));
 
        fprintf(out, _("\nFor more information see lsblk(8).\n"));
 
index efb627fc08e4641acd69f981c50c540e5047f075..a65586f12bdfe44d0c1589fe8d0d952f84c264fc 100644 (file)
@@ -615,7 +615,7 @@ static void __attribute__((__noreturn__)) usage(FILE *out)
        fprintf(out, _("\nAvailable columns (for --show):\n"));
 
        for (i = 0; i < __NCOLUMNS; i++)
-               fprintf(out, " %10s  %s\n", infos[i].name, gettext(infos[i].help));
+               fprintf(out, " %10s  %s\n", infos[i].name, _(infos[i].help));
 
        fprintf(out, _("\nFor more information see partx(8).\n"));