Util-Linux package development
 help / color / mirror / Atom feed
* [PATCH] cfdisk: actually translate the table headers and the bottom line
@ 2015-01-18 17:49 Benno Schulenberg
  2015-01-26 10:56 ` Karel Zak
  0 siblings, 1 reply; 2+ messages in thread
From: Benno Schulenberg @ 2015-01-18 17:49 UTC (permalink / raw)
  To: util-linux

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 |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c
index 1d4e2d5..9c2424d 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));
 	}
 }
 
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] cfdisk: actually translate the table headers and the bottom line
  2015-01-18 17:49 [PATCH] cfdisk: actually translate the table headers and the bottom line Benno Schulenberg
@ 2015-01-26 10:56 ` Karel Zak
  0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2015-01-26 10:56 UTC (permalink / raw)
  To: Benno Schulenberg; +Cc: util-linux

On Sun, Jan 18, 2015 at 06:49:35PM +0100, Benno Schulenberg wrote:
>  disk-utils/cfdisk.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)

 Applied, thanks.

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-01-26 10:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-01-18 17:49 [PATCH] cfdisk: actually translate the table headers and the bottom line Benno Schulenberg
2015-01-26 10:56 ` Karel Zak

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox