summaryrefslogtreecommitdiffstats
path: root/disk-utils/cfdisk.c
diff options
context:
space:
mode:
authorBenno Schulenberg2014-07-21 13:37:11 +0200
committerKarel Zak2014-07-21 15:36:33 +0200
commit86407f2cae326030a021f1d57c61a7b74b5e0812 (patch)
treeed3cacf2d95965995244a09c96af246243fb0c1b /disk-utils/cfdisk.c
parentdocs: bring eight more man pages closer to standard formatting (diff)
downloadkernel-qcow2-util-linux-86407f2cae326030a021f1d57c61a7b74b5e0812.tar.gz
kernel-qcow2-util-linux-86407f2cae326030a021f1d57c61a7b74b5e0812.tar.xz
kernel-qcow2-util-linux-86407f2cae326030a021f1d57c61a7b74b5e0812.zip
cfdisk: actually translate the partition types in the menu
[kzak@redhat.com: - translate also GPT types] Signed-off-by: Benno Schulenberg <bensberg@justemail.net> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils/cfdisk.c')
-rw-r--r--disk-utils/cfdisk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c
index 715e07ddb..109489a1e 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;