summaryrefslogtreecommitdiffstats
path: root/text-utils/pg.c
diff options
context:
space:
mode:
authorKarel Zak2008-12-12 15:13:44 +0100
committerKarel Zak2008-12-12 15:13:44 +0100
commit126836e85286463a77753d198563e59643d1c3fb (patch)
tree51579efd02d5931c9465f575880657e685834fda /text-utils/pg.c
parentrefresh gitignore (diff)
downloadkernel-qcow2-util-linux-126836e85286463a77753d198563e59643d1c3fb.tar.gz
kernel-qcow2-util-linux-126836e85286463a77753d198563e59643d1c3fb.tar.xz
kernel-qcow2-util-linux-126836e85286463a77753d198563e59643d1c3fb.zip
pg: add gettext call for the help string
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'text-utils/pg.c')
-rw-r--r--text-utils/pg.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/text-utils/pg.c b/text-utils/pg.c
index ede5a32ba..30c67009e 100644
--- a/text-utils/pg.c
+++ b/text-utils/pg.c
@@ -220,7 +220,8 @@ smalloc(size_t s)
{
char *m = (char *)malloc(s);
if (m == NULL) {
- write(2, _("Out of memory\n"), 14);
+ char *p = _("Out of memory\n");
+ write(2, p, strlen(p));
quit(++exitstatus);
}
return m;
@@ -1502,12 +1503,15 @@ found_bw:
}
goto newcmd;
case 'h':
+ {
/*
* Help!
*/
+ char *help = _(helpscreen);
write(1, copyright + 4, strlen(copyright + 4));
- write(1, helpscreen, strlen(helpscreen));
+ write(1, help, strlen(help));
goto newcmd;
+ }
case 'n':
/*
* Next file.