per Benno Schulenberg's patch with a few tweaks by me, add minor wording

fixes to various messages


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3635 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
David Lawrence Ramsey 2006-06-08 02:37:45 +00:00
parent 9e553b21f3
commit 69e1ce56df
5 changed files with 25 additions and 20 deletions

View File

@ -143,6 +143,8 @@ CVS code -
could break anything using extended regular expressions, and could break anything using extended regular expressions, and
glibc 2.2.3 is old. Changes to configure.ac, faq.html, glibc 2.2.3 is old. Changes to configure.ac, faq.html,
nano.h, proto.h, and UPGRADE; removal of safe_regexec(). (DLR) nano.h, proto.h, and UPGRADE; removal of safe_regexec(). (DLR)
- Minor wording fixes to various messages. (Benno Schulenberg,
minor tweaks by DLR)
- browser.c: - browser.c:
do_browser() do_browser()
- Reference NANO_GOTODIR_(ALT|F)?KEY instead of - Reference NANO_GOTODIR_(ALT|F)?KEY instead of

View File

@ -2376,7 +2376,7 @@ void load_history(void)
rcfile_error(N_("Error reading %s: %s"), nanohist, rcfile_error(N_("Error reading %s: %s"), nanohist,
strerror(errno)); strerror(errno));
fprintf(stderr, fprintf(stderr,
_("\nPress Enter to continue starting nano\n")); _("\nPress Enter to continue starting nano.\n"));
while (getchar() != '\n') while (getchar() != '\n')
; ;
} }

View File

@ -352,7 +352,7 @@ void shortcut_init(bool unjustify)
const char *nano_back_msg = N_("Move back one character"); const char *nano_back_msg = N_("Move back one character");
#ifndef NANO_TINY #ifndef NANO_TINY
const char *nano_nextword_msg = N_("Move forward one word"); const char *nano_nextword_msg = N_("Move forward one word");
const char *nano_prevword_msg = N_("Move backward one word"); const char *nano_prevword_msg = N_("Move back one word");
#endif #endif
const char *nano_prevline_msg = N_("Move to the previous line"); const char *nano_prevline_msg = N_("Move to the previous line");
const char *nano_nextline_msg = N_("Move to the next line"); const char *nano_nextline_msg = N_("Move to the next line");
@ -408,12 +408,13 @@ void shortcut_init(bool unjustify)
N_("Refresh (redraw) the current screen"); N_("Refresh (redraw) the current screen");
#ifndef NANO_TINY #ifndef NANO_TINY
const char *nano_case_msg = const char *nano_case_msg =
N_("Make the current search/replace case (in)sensitive"); N_("Toggle the case sensitivity of the search");
const char *nano_reverse_msg = const char *nano_reverse_msg =
N_("Make the current search/replace go backwards"); N_("Reverse the direction of the search");
#endif #endif
#ifdef HAVE_REGEX_H #ifdef HAVE_REGEX_H
const char *nano_regexp_msg = N_("Use regular expressions"); const char *nano_regexp_msg =
N_("Toggle the use of regular expressions");
#endif #endif
#ifndef NANO_TINY #ifndef NANO_TINY
const char *nano_prev_history_msg = const char *nano_prev_history_msg =
@ -425,18 +426,19 @@ void shortcut_init(bool unjustify)
const char *nano_tofiles_msg = N_("Go to file browser"); const char *nano_tofiles_msg = N_("Go to file browser");
#endif #endif
#ifndef NANO_TINY #ifndef NANO_TINY
const char *nano_dos_msg = N_("Write file out in DOS format"); const char *nano_dos_msg = N_("Toggle the use of DOS format");
const char *nano_mac_msg = N_("Write file out in Mac format"); const char *nano_mac_msg = N_("Toggle the use of Mac format");
#endif #endif
const char *nano_append_msg = N_("Append to the current file"); const char *nano_append_msg = N_("Toggle appending");
const char *nano_prepend_msg = N_("Prepend to the current file"); const char *nano_prepend_msg = N_("Toggle prepending");
#ifndef NANO_TINY #ifndef NANO_TINY
const char *nano_backup_msg = const char *nano_backup_msg =
N_("Back up original file when saving"); N_("Toggle backing up of the original file");
const char *nano_execute_msg = N_("Execute external command"); const char *nano_execute_msg = N_("Execute external command");
#endif #endif
#if !defined(NANO_TINY) && defined(ENABLE_MULTIBUFFER) #if !defined(NANO_TINY) && defined(ENABLE_MULTIBUFFER)
const char *nano_multibuffer_msg = N_("Insert into new buffer"); const char *nano_multibuffer_msg =
N_("Toggle the use of a new buffer");
#endif #endif
#ifndef DISABLE_BROWSER #ifndef DISABLE_BROWSER
const char *nano_exitbrowser_msg = N_("Exit from the file browser"); const char *nano_exitbrowser_msg = N_("Exit from the file browser");
@ -1355,7 +1357,7 @@ void toggle_init(void)
/* If we're using restricted mode, the suspend toggle is disabled. /* If we're using restricted mode, the suspend toggle is disabled.
* It's useless since suspending is disabled. */ * It's useless since suspending is disabled. */
if (!ISSET(RESTRICTED)) if (!ISSET(RESTRICTED))
toggle_init_one(TOGGLE_SUSPEND_KEY, N_("Suspend"), FALSE, toggle_init_one(TOGGLE_SUSPEND_KEY, N_("Suspension"), FALSE,
SUSPEND); SUSPEND);
} }
#endif /* !NANO_TINY */ #endif /* !NANO_TINY */

View File

@ -788,7 +788,7 @@ void usage(void)
print_opt("-l", "--nofollow", print_opt("-l", "--nofollow",
N_("Don't follow symbolic links, overwrite")); N_("Don't follow symbolic links, overwrite"));
#ifndef DISABLE_MOUSE #ifndef DISABLE_MOUSE
print_opt("-m", "--mouse", N_("Enable mouse")); print_opt("-m", "--mouse", N_("Enable the use of the mouse"));
#endif #endif
#ifndef DISABLE_OPERATINGDIR #ifndef DISABLE_OPERATINGDIR
print_opt(_("-o <dir>"), _("--operatingdir=<dir>"), print_opt(_("-o <dir>"), _("--operatingdir=<dir>"),
@ -810,8 +810,8 @@ void usage(void)
#ifndef DISABLE_WRAPPING #ifndef DISABLE_WRAPPING
print_opt("-w", "--nowrap", N_("Don't wrap long lines")); print_opt("-w", "--nowrap", N_("Don't wrap long lines"));
#endif #endif
print_opt("-x", "--nohelp", N_("Don't show help window")); print_opt("-x", "--nohelp", N_("Don't show the two help lines"));
print_opt("-z", "--suspend", N_("Enable suspend")); print_opt("-z", "--suspend", N_("Enable suspension"));
/* This is a special case. */ /* This is a special case. */
print_opt("-a, -b, -e,", "", NULL); print_opt("-a, -b, -e,", "", NULL);
@ -996,7 +996,7 @@ RETSIGTYPE do_suspend(int signal)
/* Temporarily leave curses mode. */ /* Temporarily leave curses mode. */
endwin(); endwin();
printf(_("\n\n\n\n\n\nUse \"fg\" to return to nano\n")); printf(_("\n\n\n\n\n\nUse \"fg\" to return to nano.\n"));
fflush(stdout); fflush(stdout);
/* Restore the old terminal settings. */ /* Restore the old terminal settings. */
@ -1373,10 +1373,10 @@ int do_input(bool *meta_key, bool *func_key, bool *s_or_t, bool
switch (input) { switch (input) {
/* Handle the "universal" edit window shortcuts. */ /* Handle the "universal" edit window shortcuts. */
case NANO_XON_KEY: case NANO_XON_KEY:
statusbar(_("XON ignored, mumble mumble.")); statusbar(_("XON ignored, mumble mumble"));
break; break;
case NANO_XOFF_KEY: case NANO_XOFF_KEY:
statusbar(_("XOFF ignored, mumble mumble.")); statusbar(_("XOFF ignored, mumble mumble"));
break; break;
#ifndef NANO_TINY #ifndef NANO_TINY
case NANO_SUSPEND_KEY: case NANO_SUSPEND_KEY:

View File

@ -109,7 +109,7 @@ static colortype *endcolor = NULL;
#endif #endif
/* We have an error in some part of the rcfile. Put it on stderr and /* We have an error in some part of the rcfile. Put it on stderr and
* make the user hit Enter to continue starting up nano. */ * make the user hit Enter to continue starting nano. */
void rcfile_error(const char *msg, ...) void rcfile_error(const char *msg, ...)
{ {
va_list ap; va_list ap;
@ -844,7 +844,8 @@ void parse_rcfile(FILE *rcstream
if (errors) { if (errors) {
errors = FALSE; errors = FALSE;
fprintf(stderr, _("\nPress Enter to continue starting nano\n")); fprintf(stderr,
_("\nPress Enter to continue starting nano.\n"));
while (getchar() != '\n') while (getchar() != '\n')
; ;
} }