From: Benno Schulenberg Date: Mon, 21 Jul 2014 11:37:11 +0000 (+0200) Subject: cfdisk: actually translate the partition types in the menu X-Git-Tag: v2.25~19 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=86407f2cae326030a021f1d57c61a7b74b5e0812;p=thirdparty%2Futil-linux.git cfdisk: actually translate the partition types in the menu [kzak@redhat.com: - translate also GPT types] Signed-off-by: Benno Schulenberg Signed-off-by: Karel Zak --- diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index 715e07ddb6..109489a1e8 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -1507,9 +1507,9 @@ static struct fdisk_parttype *ui_get_parttype(struct cfdisk *cf, continue; cm[i].userdata = x; if (!has_typestr) - xasprintf(&name, "%2x %s", x->type, x->name); + xasprintf(&name, "%2x %s", x->type, _(x->name)); else { - name = (char *) x->name; + name = (char *) _(x->name); cm[i].desc = x->typestr; } cm[i].name = name;