tweaks: add a few translator hints

master
Benno Schulenberg 2016-12-07 20:56:28 +01:00
parent 7531b71fa1
commit 173bbe11ef
2 changed files with 6 additions and 6 deletions

View File

@ -2221,6 +2221,7 @@ int do_writeout(bool exiting)
* it allows reading from or writing to files not specified on * it allows reading from or writing to files not specified on
* the command line. */ * the command line. */
if (openfile->mark_set && !exiting && !ISSET(RESTRICTED)) if (openfile->mark_set && !exiting && !ISSET(RESTRICTED))
/* TRANSLATORS: The next six strings are prompts. */
msg = (method == PREPEND) ? _("Prepend Selection to File") : msg = (method == PREPEND) ? _("Prepend Selection to File") :
(method == APPEND) ? _("Append Selection to File") : (method == APPEND) ? _("Append Selection to File") :
_("Write Selection to File"); _("Write Selection to File");
@ -2359,13 +2360,11 @@ int do_writeout(bool exiting)
free(full_answer); free(full_answer);
if (do_warning) { if (do_warning) {
/* If we're using restricted mode, we aren't allowed /* When in restricted mode, we aren't allowed to overwrite
* to overwrite an existing file with the current * an existing file with the current buffer, nor to change
* file. We also aren't allowed to change the name * the name of the current file if it already has one. */
* of the current file if it has one, because that
* would allow reading from or writing to files not
* specified on the command line. */
if (ISSET(RESTRICTED)) { if (ISSET(RESTRICTED)) {
/* TRANSLATORS: Restricted mode forbids overwriting. */
warn_and_shortly_pause(_("File exists -- " warn_and_shortly_pause(_("File exists -- "
"cannot overwrite")); "cannot overwrite"));
continue; continue;

View File

@ -3850,6 +3850,7 @@ void complete_a_word(void)
statusline(ALERT, _("No further matches")); statusline(ALERT, _("No further matches"));
refresh_needed = TRUE; refresh_needed = TRUE;
} else } else
/* TRANSLATORS: Shown when there are zero possible completions. */
statusline(ALERT, _("No matches")); statusline(ALERT, _("No matches"));
free(shard); free(shard);