summaryrefslogtreecommitdiffstats
path: root/disk-utils/cfdisk.c
diff options
context:
space:
mode:
authorBenno Schulenberg2015-01-18 18:49:35 +0100
committerKarel Zak2015-01-26 11:53:51 +0100
commitb6e3c61464008ed18a8f71fb9348ca112e23be9f (patch)
tree8b81da57ef78235fd1158d3afe209a809f88581a /disk-utils/cfdisk.c
parentcfdisk: shorten the help screen to make it fit within 25 lines (diff)
downloadkernel-qcow2-util-linux-b6e3c61464008ed18a8f71fb9348ca112e23be9f.tar.gz
kernel-qcow2-util-linux-b6e3c61464008ed18a8f71fb9348ca112e23be9f.tar.xz
kernel-qcow2-util-linux-b6e3c61464008ed18a8f71fb9348ca112e23be9f.zip
cfdisk: actually translate the table headers and the bottom line
The printout of the table headers and the bottomline descriptions were lacking calls to gettext(). Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
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 1330b0820..647838982 100644
--- a/disk-utils/cfdisk.c
+++ b/disk-utils/cfdisk.c
@@ -334,7 +334,7 @@ static char *table_to_string(struct cfdisk *cf, struct fdisk_table *tb)
fl |= SCOLS_FL_TREE;
if (!scols_table_new_column(table,
- fdisk_field_get_name(field),
+ _(fdisk_field_get_name(field)),
fdisk_field_get_width(field), fl))
goto done;
}
@@ -1009,7 +1009,7 @@ static void ui_draw_menuitem(struct cfdisk *cf,
if (cf->menu->idx == idx) {
standend();
if (d->desc)
- ui_hint(d->desc);
+ ui_hint(_(d->desc));
}
}