]> git.wh0rd.org Git - nano.git/commitdiff
- Changed some translatable debug messages to use %s instead of the function name...
authorChris Allegretta <chrisa@asty.org>
Thu, 23 Jan 2003 04:27:23 +0000 (04:27 +0000)
committerChris Allegretta <chrisa@asty.org>
Thu, 23 Jan 2003 04:27:23 +0000 (04:27 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@1387 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
color.c
files.c
nano.c
rcfile.c
winio.c

index daffe0f68985f1b13a65199a294a18f8c95d3ab3..143a38b602b66b1d50787d015c0bdab18bab9c6f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,10 @@
 CVS Code -
+- General
+       - Changed some translatable debug messages to use %s 
+         instead of the function name, and removed gettext from 
+         two strings that had no actual words in them that
+         should be translated.  Suggested originally by
+         Christian Rose.
 - nano.c:
   main()
        - Call load_file with arg 0 for insert, as we aren't really
diff --git a/color.c b/color.c
index 56f5523646843b712889c3bcefe44b1d26c43569..e11888909bf4506cbddd146a74f8801c84daedf0 100644 (file)
--- a/color.c
+++ b/color.c
@@ -91,8 +91,8 @@ void do_colorinit(void)
            init_pair(tmpcolor->pairnum, tmpcolor->fg, background);
 
 #ifdef DEBUG
-           fprintf(stderr, _("Running init_pair() with fg = %d and bg = %d\n"),
-               tmpcolor->fg, tmpcolor->bg);
+           fprintf(stderr, _("Running %s with fg = %d and bg = %d\n"),
+               "init_pair()", tmpcolor->fg, tmpcolor->bg);
 #endif
        }
     }
diff --git a/files.c b/files.c
index 9b3d09ecb6aa6bd9270da7c6f485576fb76a6ab9..037dc8fa004b8d263161dbb9435a3c4832697b9f 100644 (file)
--- a/files.c
+++ b/files.c
@@ -697,12 +697,12 @@ void free_openfilestruct(openfilestruct *src)
            src = src->next;
            delete_opennode(src->prev);
 #ifdef DEBUG
-           fprintf(stderr, _("delete_opennode(): free'd a node, YAY!\n"));
+           fprintf(stderr, _("%s: free'd a node, YAY!\n"), "delete_opennode()");
 #endif
        }
        delete_opennode(src);
 #ifdef DEBUG
-       fprintf(stderr, _("delete_opennode(): free'd last node.\n"));
+       fprintf(stderr, _("%s: free'd last node.\n"), "delete_opennode()");
 #endif
     }
 }
diff --git a/nano.c b/nano.c
index b0e610058b24ffe794fd2183e43e139cd80f3e4d..37be37a76cc417ed3951e1b7cd48dabe429d64b7 100644 (file)
--- a/nano.c
+++ b/nano.c
@@ -557,12 +557,12 @@ void free_filestruct(filestruct *src)
            src = src->next;
            delete_node(src->prev);
 #ifdef DEBUG
-           fprintf(stderr, _("delete_node(): free'd a node, YAY!\n"));
+           fprintf(stderr, _("%s: free'd a node, YAY!\n"), "delete_node()");
 #endif
        }
        delete_node(src);
 #ifdef DEBUG
-       fprintf(stderr, _("delete_node(): free'd last node.\n"));
+       fprintf(stderr, _("%s: free'd last node.\n"), "delete_node()");
 #endif
     }
 }
index 714f1df0514005a8ca03e98d87875c7b5988b5e7..ac37ac870ef8bbc573a76dcc7ea5625a8d82a516 100644 (file)
--- a/rcfile.c
+++ b/rcfile.c
@@ -448,7 +448,7 @@ void parse_rcfile(FILE *rcstream)
 
        if (*ptr == '#') {
 #ifdef DEBUG
-           fprintf(stderr, _("parse_rcfile: Read a comment\n"));
+           fprintf(stderr, _("%s: Read a comment\n"), "parse_rcfile()");
 #endif
            continue;           /* Skip past commented lines */
        }
@@ -483,8 +483,8 @@ void parse_rcfile(FILE *rcstream)
            for (i = 0; rcopts[i].name != NULL; i++) {
                if (!strcasecmp(option, rcopts[i].name)) {
 #ifdef DEBUG
-                   fprintf(stderr, _("parse_rcfile: Parsing option %s\n"),
-                           rcopts[i].name);
+                   fprintf(stderr, _("%s: Parsing option %s\n"), 
+                           "parse_rcfile()", rcopts[i].name);
 #endif
                    if (set == 1) {
                        if (!strcasecmp(rcopts[i].name, "tabsize")
diff --git a/winio.c b/winio.c
index 04b1e38b46ab338ce03a068f140c1817fef54415..cca2e33e8a1306358b38d9c37dc71638237e14c1 100644 (file)
--- a/winio.c
+++ b/winio.c
@@ -1072,7 +1072,7 @@ void update_cursor(void)
     }
 
 #ifdef DEBUG
-    fprintf(stderr, _("current->data = \"%s\"\n"), current->data);
+    fprintf(stderr, "current->data = \"%s\"\n", current->data);
 #endif
 }
 
@@ -1452,8 +1452,8 @@ int do_cursorpos(int constant)
         linepct = 100 * current->lineno / totlines;
 
 #ifdef DEBUG
-    fprintf(stderr, _("do_cursorpos: linepct = %f, bytepct = %f\n"),
-           linepct, bytepct);
+    fprintf(stderr, "%s: linepct = %f, bytepct = %f\n",
+               "do_cursorpos()", linepct, bytepct);
 #endif
 
     /* if constant is zero, display the position on the statusbar