1
1

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
Этот коммит содержится в:
Benno Schulenberg 2014-02-23 10:12:50 +00:00
родитель 4abf9449b4
Коммит e9ee078c10
2 изменённых файлов: 10 добавлений и 6 удалений

Просмотреть файл

@ -1,3 +1,7 @@
2014-02-23 Benno Schulenberg <bensberg@justemail.net>
* 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 <bensberg@justemail.net>
* src/files.c (write_file) - Add a missing malloc.
Reported by an anonymous cross compiler, bug #30671.

Просмотреть файл

@ -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;