From: Benno Schulenberg Date: Sun, 18 Jan 2015 17:49:35 +0000 (+0100) Subject: cfdisk: actually translate the table headers and the bottom line X-Git-Tag: v2.26-rc2~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6e3c61464008ed18a8f71fb9348ca112e23be9f;p=thirdparty%2Futil-linux.git 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 --- diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index 1330b08201..6478389827 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)); } }