]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
cfdisk: actually translate the table headers and the bottom line
authorBenno Schulenberg <bensberg@justemail.net>
Sun, 18 Jan 2015 17:49:35 +0000 (18:49 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 26 Jan 2015 10:53:51 +0000 (11:53 +0100)
The printout of the table headers and the bottomline descriptions
were lacking calls to gettext().

Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
disk-utils/cfdisk.c

index 1330b08201fa85b0e15379980566af7f383f9da4..647838982789381c96d63724a005fb8ee1883088 100644 (file)
@@ -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));
        }
 }