diff --git a/ChangeLog b/ChangeLog index f70103f1..ba008585 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2008-03-19 Benno Schulenberg + * help.c, nano.c: Fix toggle help not being translated, fix allocation + issue. + 2008-03-19 Chris Allegretta * gloabl.c: Fix bracket matching sequence to be M-] not M-[, as reported Nick Warne . diff --git a/src/help.c b/src/help.c index fc9bc00c..adcaab0c 100644 --- a/src/help.c +++ b/src/help.c @@ -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 diff --git a/src/nano.c b/src/nano.c index 566c5342..18fb82e2 100644 --- a/src/nano.c +++ b/src/nano.c @@ -1250,7 +1250,7 @@ void do_toggle(int flag) ) enabled = !enabled; - desc = flagtostr(flag); + desc = _(flagtostr(flag)); statusbar("%s %s", desc, enabled ? _("enabled") : _("disabled")); }