From 7c7f4ff8e0a07e36fa8a5e7539fed40f0b9ef3b8 Mon Sep 17 00:00:00 2001
From: Pedro Ribeiro
Date: Fri, 3 Oct 2008 09:31:44 +0200
Subject: [PATCH] pg: several strings without gettext calls
Signed-off-by: Pedro Ribeiro
Signed-off-by: Karel Zak
---
text-utils/pg.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/text-utils/pg.c b/text-utils/pg.c
index 2defd9af..ede5a32b 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 (next page); -1 (previous page); 1 (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;
--
2.39.5