feedback: remove some superfluous words from Undid/Redid messages

Also, change some words to nouns, to fit the scheme.
master
Benno Schulenberg 2019-02-24 16:05:22 +01:00
parent 7c30d1fa69
commit 1053a3c440
1 changed files with 11 additions and 11 deletions

View File

@ -537,7 +537,7 @@ void do_undo(void)
case ADD: case ADD:
/* TRANSLATORS: The next thirteen strings describe actions /* TRANSLATORS: The next thirteen strings describe actions
* that are undone or redone. They are all nouns, not verbs. */ * that are undone or redone. They are all nouns, not verbs. */
undidmsg = _("text add"); undidmsg = _("addition");
if ((u->xflags & WAS_FINAL_LINE) && ISSET(FINAL_NEWLINE)) if ((u->xflags & WAS_FINAL_LINE) && ISSET(FINAL_NEWLINE))
remove_magicline(); remove_magicline();
data = charalloc(strlen(f->data) - strlen(u->strdata) + 1); data = charalloc(strlen(f->data) - strlen(u->strdata) + 1);
@ -564,7 +564,7 @@ void do_undo(void)
break; break;
case BACK: case BACK:
case DEL: case DEL:
undidmsg = _("text delete"); undidmsg = _("deletion");
data = charalloc(strlen(f->data) + strlen(u->strdata) + 1); data = charalloc(strlen(f->data) + strlen(u->strdata) + 1);
strncpy(data, f->data, u->begin); strncpy(data, f->data, u->begin);
strcpy(&data[u->begin], u->strdata); strcpy(&data[u->begin], u->strdata);
@ -593,7 +593,7 @@ void do_undo(void)
goto_line_posx(u->lineno, u->begin); goto_line_posx(u->lineno, u->begin);
break; break;
case REPLACE: case REPLACE:
undidmsg = _("text replace"); undidmsg = _("replacement");
goto_line_posx(u->lineno, u->begin); goto_line_posx(u->lineno, u->begin);
data = u->strdata; data = u->strdata;
u->strdata = f->data; u->strdata = f->data;
@ -607,7 +607,7 @@ void do_undo(void)
do_undo(); do_undo();
u = openfile->current_undo; u = openfile->current_undo;
case SPLIT_BEGIN: case SPLIT_BEGIN:
undidmsg = _("text add"); undidmsg = _("addition");
break; break;
#endif #endif
case ZAP: case ZAP:
@ -616,15 +616,15 @@ void do_undo(void)
break; break;
case CUT_TO_EOF: case CUT_TO_EOF:
case CUT: case CUT:
undidmsg = _("text cut"); undidmsg = _("cut");
undo_cut(u); undo_cut(u);
break; break;
case PASTE: case PASTE:
undidmsg = _("text uncut"); undidmsg = _("paste");
undo_paste(u); undo_paste(u);
break; break;
case INSERT: case INSERT:
undidmsg = _("text insert"); undidmsg = _("insertion");
oldcutbuffer = cutbuffer; oldcutbuffer = cutbuffer;
oldcutbottom = cutbottom; oldcutbottom = cutbottom;
cutbuffer = NULL; cutbuffer = NULL;
@ -673,7 +673,7 @@ void do_undo(void)
} }
if (undidmsg && !pletion_line) if (undidmsg && !pletion_line)
statusline(HUSH, _("Undid action (%s)"), undidmsg); statusline(HUSH, _("Undid %s"), undidmsg);
openfile->current_undo = openfile->current_undo->next; openfile->current_undo = openfile->current_undo->next;
openfile->last_action = OTHER; openfile->last_action = OTHER;
@ -844,7 +844,7 @@ void do_redo(void)
} }
if (redidmsg) if (redidmsg)
statusline(HUSH, _("Redid action (%s)"), redidmsg); statusline(HUSH, _("Redid %s"), redidmsg);
openfile->current_undo = u; openfile->current_undo = u;
openfile->last_action = OTHER; openfile->last_action = OTHER;
@ -2046,7 +2046,7 @@ void do_justify(bool full_justify)
#ifndef NANO_TINY #ifndef NANO_TINY
add_undo(COUPLE_BEGIN); add_undo(COUPLE_BEGIN);
openfile->undotop->strdata = mallocstrcpy(NULL, _("justify")); openfile->undotop->strdata = mallocstrcpy(NULL, _("justification"));
/* Store the original cursor position, in case we unjustify. */ /* Store the original cursor position, in case we unjustify. */
openfile->undotop->lineno = was_lineno; openfile->undotop->lineno = was_lineno;
@ -2086,7 +2086,7 @@ void do_justify(bool full_justify)
update_undo(PASTE); update_undo(PASTE);
add_undo(COUPLE_END); add_undo(COUPLE_END);
openfile->undotop->strdata = mallocstrcpy(NULL, _("justify")); openfile->undotop->strdata = mallocstrcpy(NULL, _("justification"));
#endif #endif
/* We're done justifying. Restore the old cutbuffer. */ /* We're done justifying. Restore the old cutbuffer. */