]> err.no Git - util-linux/commitdiff
cfdisk: translate partition-type names when they are printed.
authorBenno Schulenberg <bensberg@justemail.net>
Sat, 29 Sep 2007 13:02:28 +0000 (15:02 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 25 Oct 2007 23:02:44 +0000 (01:02 +0200)
Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
fdisk/cfdisk.c

index e3941d89bacd795d94591b2d918f771a235dbf88..538e4d780ce7204b596a9491cdfca433d20c1d96 100644 (file)
@@ -391,7 +391,7 @@ partition_type_text(int i) {
         else
              return _("NTFS");
     } else
-        return partition_type_name(p_info[i].id);
+        return _(partition_type_name(p_info[i].id));
 }
 
 static void
@@ -2067,7 +2067,7 @@ print_p_info_entry(FILE *fp, partition_info *p) {
     else if (p->id == FREE_SPACE)
        sprintf(part_str, "%.15s", _("Free Space"));
     else if (partition_type_name(p->id))
-       sprintf(part_str, "%.15s (%02X)", partition_type_name(p->id), p->id);
+       sprintf(part_str, "%.15s (%02X)", _(partition_type_name(p->id)), p->id);
     else
        sprintf(part_str, "%.15s (%02X)", _("Unknown"), p->id);
     fp_printf(fp, "%-20.20s", part_str);
@@ -2483,7 +2483,7 @@ change_id(int i) {
                move(row, ((j-1)/num_down)*COL_ID_WIDTH + 1);
                printw("%02X %-20.20s",
                       i386_sys_types[j].type,
-                      i386_sys_types[j].name);
+                      _(i386_sys_types[j].name));
            }
            if (row > row_max)
                needmore = 1;