tweaks: normalize a translator hint, update one, and add another

This commit is contained in:
Benno Schulenberg 2020-03-11 14:18:06 +01:00
parent b7dc5abca7
commit 8dc83951ee
2 changed files with 5 additions and 4 deletions

View File

@ -518,7 +518,7 @@ void mention_name_and_linecount(void)
(openfile->filebot->data[0] == '\0' ? 1 : 0);
#ifndef NANO_TINY
if (openfile->fmt != NIX_FILE)
/* TRANSLATORS: first %s is file name, second %s is file format. */
/* TRANSLATORS: First %s is file name, second %s is file format. */
statusline(HUSH, P_("%s -- %zu line (%s)", "%s -- %zu lines (%s)", count),
openfile->filename[0] == '\0' ?
_("New Buffer") : tail(openfile->filename), count,
@ -1046,7 +1046,8 @@ bool execute_command(const char *command)
} else
#endif
{
add_undo(COUPLE_BEGIN, "filtering");
/* TRANSLATORS: This one goes with Undid/Redid messages. */
add_undo(COUPLE_BEGIN, N_("filtering"));
if (openfile->mark == NULL) {
openfile->current = openfile->filetop;
openfile->current_x = 0;
@ -1089,7 +1090,6 @@ bool execute_command(const char *command)
read_file(stream, 0, "pipe", TRUE);
if (should_pipe && !ISSET(MULTIBUFFER))
/* TRANSLATORS: The next two go with Undid/Redid messages. */
add_undo(COUPLE_END, N_("filtering"));
/* Wait for the external command (and possibly data sender) to terminate. */

View File

@ -1745,6 +1745,7 @@ void do_justify(bool full_justify)
size_t secondary_len = 0;
/* The length of that later lead. */
/* TRANSLATORS: This one goes with Undid/Redid messages. */
add_undo(COUPLE_BEGIN, N_("justification"));
/* If the mark is on, do as Pico: treat all marked text as one paragraph. */
@ -1952,7 +1953,7 @@ void do_justify(bool full_justify)
openfile->mark_x = bottom_x;
}
add_undo(COUPLE_END, "justification");
add_undo(COUPLE_END, N_("justification"));
#endif
/* We're done justifying. Restore the old cutbuffer. */