From 173bbe11ef1ef9bebf15a06c1f32a7d97f748d79 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Wed, 7 Dec 2016 20:56:28 +0100 Subject: [PATCH] tweaks: add a few translator hints --- src/files.c | 11 +++++------ src/text.c | 1 + 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/files.c b/src/files.c index 21550428..9f10cff2 100644 --- a/src/files.c +++ b/src/files.c @@ -2221,6 +2221,7 @@ int do_writeout(bool exiting) * it allows reading from or writing to files not specified on * the command line. */ if (openfile->mark_set && !exiting && !ISSET(RESTRICTED)) + /* TRANSLATORS: The next six strings are prompts. */ msg = (method == PREPEND) ? _("Prepend Selection to File") : (method == APPEND) ? _("Append Selection to File") : _("Write Selection to File"); @@ -2359,13 +2360,11 @@ int do_writeout(bool exiting) free(full_answer); if (do_warning) { - /* If we're using restricted mode, we aren't allowed - * to overwrite an existing file with the current - * file. We also aren't allowed to change the name - * of the current file if it has one, because that - * would allow reading from or writing to files not - * specified on the command line. */ + /* When in restricted mode, we aren't allowed to overwrite + * an existing file with the current buffer, nor to change + * the name of the current file if it already has one. */ if (ISSET(RESTRICTED)) { + /* TRANSLATORS: Restricted mode forbids overwriting. */ warn_and_shortly_pause(_("File exists -- " "cannot overwrite")); continue; diff --git a/src/text.c b/src/text.c index 31fab3a4..e7a03fbd 100644 --- a/src/text.c +++ b/src/text.c @@ -3850,6 +3850,7 @@ void complete_a_word(void) statusline(ALERT, _("No further matches")); refresh_needed = TRUE; } else + /* TRANSLATORS: Shown when there are zero possible completions. */ statusline(ALERT, _("No matches")); free(shard);