]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libfdisk: actually translate the human-readable name of the partition type
authorBenno Schulenberg <bensberg@justemail.net>
Sun, 1 Feb 2015 14:00:11 +0000 (15:00 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 2 Feb 2015 09:57:07 +0000 (10:57 +0100)
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
libfdisk/src/partition.c

index 9a02993c30fdeb2bd9882ca31c5dd359baa08c67..5b27d3a714a0cd3c63548ffbb543b8792e2edaf6 100644 (file)
@@ -735,7 +735,7 @@ int fdisk_partition_to_string(struct fdisk_partition *pa,
                rc = asprintf(&p, "%ju", pa->cpg);
                break;
        case FDISK_FIELD_TYPE:
-               p = pa->type && pa->type->name ? strdup(pa->type->name) : NULL;
+               p = pa->type && pa->type->name ? strdup(_(pa->type->name)) : NULL;
                break;
        case FDISK_FIELD_TYPEID:
                if (pa->type && fdisk_parttype_get_string(pa->type))