]> err.no Git - util-linux/commitdiff
pg: several strings without gettext calls
authorPedro Ribeiro <p.m42.ribeiro@gmail.com>
Fri, 3 Oct 2008 07:31:44 +0000 (09:31 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 3 Oct 2008 07:31:44 +0000 (09:31 +0200)
Signed-off-by: Pedro Ribeiro <p.m42.ribeiro@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
text-utils/pg.c

index 2defd9af864b439d1f89934d10e9209da18780d9..ede5a32ba6dfdb0449fad98a0da590a59b3661aa 100644 (file)
@@ -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;