Benno's latest fixes for help menu translations.

git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4247 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
master
Chris Allegretta 2008-03-20 05:56:46 +00:00
parent 8a59f254ea
commit b04248c548
3 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2008-03-19 Benno Schulenberg <bensberg@justemail.net>
* help.c, nano.c: Fix toggle help not being translated, fix allocation
issue.
2008-03-19 Chris Allegretta <chrisa@asty.org>
* gloabl.c: Fix bracket matching sequence to be M-] not M-[, as reported
Nick Warne <nick@ukfsn.org>.

View File

@ -414,7 +414,7 @@ void help_init(void)
for (s = sclist; s != NULL; s = s->next)
if (s->scfunc == (void *) do_toggle)
allocsize += strlen(flagtostr(s->toggle)) + endis_len + 9;
allocsize += strlen(_(flagtostr(s->toggle))) + endis_len + 9;
}
#endif

View File

@ -1250,7 +1250,7 @@ void do_toggle(int flag)
)
enabled = !enabled;
desc = flagtostr(flag);
desc = _(flagtostr(flag));
statusbar("%s %s", desc, enabled ? _("enabled") :
_("disabled"));
}