From e9ee078c100017429ddac050bb0d54aa46b36b63 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Sun, 23 Feb 2014 10:12:50 +0000 Subject: [PATCH] End exhorting status-bar messages with a period, to avoid the impression that something is missing. git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4596 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 4 ++++ src/text.c | 12 ++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 8e504320..3de27d30 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2014-02-23 Benno Schulenberg + * src/text.c (do_undo, do_redo, add_undo) - Make warning + sentences in the status bar consistently end in a period. + 2014-02-22 Benno Schulenberg * src/files.c (write_file) - Add a missing malloc. Reported by an anonymous cross compiler, bug #30671. diff --git a/src/text.c b/src/text.c index 9bb7e4e0..c0971b75 100644 --- a/src/text.c +++ b/src/text.c @@ -452,7 +452,7 @@ void do_undo(void) for (; f->next != NULL && f->lineno != u->lineno; f = f->next) ; if (f->lineno != u->lineno) { - statusbar(_("Internal error: can't match line %d. Please save your work"), u->lineno); + statusbar(_("Internal error: can't match line %d. Please save your work."), u->lineno); return; } #ifdef DEBUG @@ -554,7 +554,7 @@ void do_undo(void) break; default: - undidmsg = _("Internal error: unknown type. Please save your work"); + undidmsg = _("Internal error: unknown type. Please save your work."); break; } @@ -579,7 +579,7 @@ void do_redo(void) return; } if (u->next != openfile->current_undo) { - statusbar(_("Internal error: Redo setup failed. Please save your work")); + statusbar(_("Internal error: cannot set up redo. Please save your work.")); return; } @@ -590,7 +590,7 @@ void do_redo(void) for (; f->next != NULL && f->lineno != u->lineno; f = f->next) ; if (f->lineno != u->lineno) { - statusbar(_("Internal error: can't match line %d. Please save your work"), u->lineno); + statusbar(_("Internal error: can't match line %d. Please save your work."), u->lineno); return; } #ifdef DEBUG @@ -668,7 +668,7 @@ void do_redo(void) openfile->placewewant = xplustabs(); break; default: - undidmsg = _("Internal error: unknown type. Please save your work"); + undidmsg = _("Internal error: unknown type. Please save your work."); break; } @@ -943,7 +943,7 @@ void add_undo(undo_type current_action) break; case UNCUT: if (!last_cutu) - statusbar(_("Internal error: can't setup uncut. Please save your work.")); + statusbar(_("Internal error: cannot set up uncut. Please save your work.")); else if (last_cutu->type == CUT) { u->cutbuffer = last_cutu->cutbuffer; u->cutbottom = last_cutu->cutbottom;