]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cfdisk: actually translate the partition types in the menu
authorBenno Schulenberg <bensberg@justemail.net>
Mon, 21 Jul 2014 11:37:11 +0000 (13:37 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 21 Jul 2014 13:36:33 +0000 (15:36 +0200)
[kzak@redhat.com: - translate also GPT types]

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
Signed-off-by: Karel Zak <kzak@redhat.com>
disk-utils/cfdisk.c

index 715e07ddb6aedb738a57f95dd0137b09884996d3..109489a1e8d8d33590d5473b3f9a2d3b10a432c9 100644 (file)
@@ -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;