commit 8dc83951ee869f7b0264979b769244f004877cfd
parent b7dc5abca7471269f3c94a5700eb4c8709b5d553
Author: Benno Schulenberg <bensberg@telfort.nl>
Date: Wed, 11 Mar 2020 14:18:06 +0100
tweaks: normalize a translator hint, update one, and add another
Diffstat:
2 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/files.c b/src/files.c
@@ -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. */
diff --git a/src/text.c b/src/text.c
@@ -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. */