tweaks: add a translator hint, and adjust two others

master
Benno Schulenberg 2017-11-07 19:34:14 +01:00
parent 7b133aa6f9
commit 7e6bb91593
3 changed files with 5 additions and 4 deletions

View File

@ -988,6 +988,7 @@ void shortcut_init(void)
N_("Run Macro"), WITHORSANS(runmacro_gist), BLANKAFTER, VIEW); N_("Run Macro"), WITHORSANS(runmacro_gist), BLANKAFTER, VIEW);
add_to_funcs(do_search_backward, MMAIN, add_to_funcs(do_search_backward, MMAIN,
/* TRANSLATORS: This starts a backward search. */
N_("Where Was"), WITHORSANS(wherewas_gist), BLANKAFTER, VIEW); N_("Where Was"), WITHORSANS(wherewas_gist), BLANKAFTER, VIEW);
add_to_funcs(do_savefile, MMAIN, add_to_funcs(do_savefile, MMAIN,
@ -1406,7 +1407,7 @@ const char *flagtostr(int flag)
{ {
switch (flag) { switch (flag) {
case NO_HELP: case NO_HELP:
/* TRANSLATORS: The next seventeen strings are toggle descriptions; /* TRANSLATORS: The next eighteen strings are toggle descriptions;
* they are best kept shorter than 40 characters, but may be longer. */ * they are best kept shorter than 40 characters, but may be longer. */
return N_("Help mode"); return N_("Help mode");
case CONSTANT_SHOW: case CONSTANT_SHOW:
@ -1444,7 +1445,7 @@ const char *flagtostr(int flag)
case LINE_NUMBERS: case LINE_NUMBERS:
return N_("Line numbering"); return N_("Line numbering");
default: default:
return "?????"; return "Bad toggle -- please report a bug";
} }
} }
#endif /* !NANO_TINY */ #endif /* !NANO_TINY */

View File

@ -673,7 +673,7 @@ int do_yesno_prompt(bool all, const char *msg)
char *message = display_string(msg, 0, COLS, FALSE); char *message = display_string(msg, 0, COLS, FALSE);
/* TRANSLATORS: For the next three strings, if possible, specify /* TRANSLATORS: For the next three strings, if possible, specify
* the single-byte shortcuts for both your language and English. * the single-byte letters for both your language and English.
* For example, in French: "OoYy", for both "Oui" and "Yes". */ * For example, in French: "OoYy", for both "Oui" and "Yes". */
const char *yesstr = _("Yy"); const char *yesstr = _("Yy");
const char *nostr = _("Nn"); const char *nostr = _("Nn");

View File

@ -736,7 +736,7 @@ void do_undo(void)
openfile->current_x = u->begin; openfile->current_x = u->begin;
switch (u->type) { switch (u->type) {
case ADD: case ADD:
/* TRANSLATORS: Eight of the next nine strings describe actions /* TRANSLATORS: The next twelve strings describe actions
* that are undone or redone. It are all nouns, not verbs. */ * that are undone or redone. It are all nouns, not verbs. */
undidmsg = _("text add"); undidmsg = _("text add");
data = charalloc(strlen(f->data) - strlen(u->strdata) + 1); data = charalloc(strlen(f->data) - strlen(u->strdata) + 1);