diff options
author | Pedro Ribeiro | 2008-10-03 09:31:44 +0200 |
---|---|---|
committer | Karel Zak | 2008-10-03 09:31:44 +0200 |
commit | 7c7f4ff8e0a07e36fa8a5e7539fed40f0b9ef3b8 (patch) | |
tree | 1d36661860278f53a3744ceced04fa9af07c5712 /text-utils | |
parent | readprofile: several strings without gettext calls (diff) | |
download | kernel-qcow2-util-linux-7c7f4ff8e0a07e36fa8a5e7539fed40f0b9ef3b8.tar.gz kernel-qcow2-util-linux-7c7f4ff8e0a07e36fa8a5e7539fed40f0b9ef3b8.tar.xz kernel-qcow2-util-linux-7c7f4ff8e0a07e36fa8a5e7539fed40f0b9ef3b8.zip |
pg: several strings without gettext calls
Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'text-utils')
-rw-r--r-- | text-utils/pg.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/text-utils/pg.c b/text-utils/pg.c index 2defd9af8..ede5a32ba 100644 --- a/text-utils/pg.c +++ b/text-utils/pg.c @@ -142,7 +142,7 @@ wchar_t wbuf[READBUF]; /* used in several widechar routines */ const char *copyright = "@(#)pg 1.44 2/8/02. Copyright (c) 2000-2001 Gunnar Ritter. "; -const char *helpscreen = "All rights reserved.\n\ +const char *helpscreen = N_("All rights reserved.\n\ -------------------------------------------------------\n\ h this screen\n\ q or Q quit program\n\ @@ -164,7 +164,7 @@ Many commands accept preceding numbers, for example:\n\ +1<newline> (next page); -1<newline> (previous page); 1<newline> (first page).\n\ \n\ See pg(1) for more information.\n\ --------------------------------------------------------\n"; +-------------------------------------------------------\n"); #ifndef HAVE_FSEEKO static int fseeko(FILE *f, off_t off, int whence) { @@ -220,7 +220,7 @@ smalloc(size_t s) { char *m = (char *)malloc(s); if (m == NULL) { - write(2, "Out of memory\n", 14); + write(2, _("Out of memory\n"), 14); quit(++exitstatus); } return m; @@ -1239,7 +1239,7 @@ newcmd: rerror = regcomp(&re, p, REG_NOSUB | REG_NEWLINE); if (rerror != 0) { - mesg("RE error: "); + mesg(_("RE error: ")); regerror(rerror, &re, b, READBUF); mesg(b); @@ -1247,7 +1247,7 @@ newcmd: } remembered = 1; } else if (remembered == 0) { - mesg("No remembered search string"); + mesg(_("No remembered search string")); goto newcmd; } line -= pagelen; |