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
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
}
}
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
}
}
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
}
}
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 */
}
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")
}
#ifdef DEBUG
- fprintf(stderr, _("current->data = \"%s\"\n"), current->data);
+ fprintf(stderr, "current->data = \"%s\"\n", current->data);
#endif
}
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