From e9a48cde61710cbb050ca988e3ff71a262b30a1c Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sat, 29 Sep 2007 15:02:28 +0200 Subject: [PATCH] cfdisk: translate partition-type names when they are printed. Signed-off-by: Benno Schulenberg --- fdisk/cfdisk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fdisk/cfdisk.c b/fdisk/cfdisk.c index e3941d89..538e4d78 100644 --- a/fdisk/cfdisk.c +++ b/fdisk/cfdisk.c @@ -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; -- 2.39.5