From e258cc3e95049c6de8babb9a7fe99425d5aba169 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Tue, 29 Mar 2016 14:16:55 +0000 Subject: [PATCH] Improving the wording of an error message: the confinement of an operating directory is not the same as restricted mode. (In restricted mode, the file browser is not available at all.) git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5772 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 1 + src/browser.c | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 59858872..d1aeea9b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,7 @@ window also when --constantshow is in effect, after a ^J Justify or an invalid escape sequence, and when entering a verbatim keystroke. Leave the cursor off during Unicode input, for extra feedback. + * src/browser.c (do_browser): Improve the wording of a message. 2016-03-28 Benno Schulenberg * src/winio.c (statusbar): Don't bother putting back the cursor in diff --git a/src/browser.c b/src/browser.c index 34b56377..d7d660e7 100644 --- a/src/browser.c +++ b/src/browser.c @@ -240,7 +240,9 @@ char *do_browser(char *path, DIR *dir) #ifndef DISABLE_OPERATINGDIR if (check_operating_dir(new_path, FALSE)) { - statusbar(_("Can't go outside of %s in restricted mode"), + /* TRANSLATORS: This refers to the option --operatingdir, + * not to --restricted. */ + statusbar(_("Can't go outside of %s in confined mode"), operating_dir); free(new_path); continue; @@ -287,7 +289,7 @@ char *do_browser(char *path, DIR *dir) * directory if it's ".." or if it's a symlink to a * directory outside the operating directory. */ if (check_operating_dir(filelist[selected], FALSE)) { - statusbar(_("Can't go outside of %s in restricted mode"), + statusbar(_("Can't go outside of %s in confined mode"), operating_dir); beep(); continue;