From b04248c54874f58f48dc76eb3ee01b225db837f2 Mon Sep 17 00:00:00 2001 From: Chris Allegretta Date: Thu, 20 Mar 2008 05:56:46 +0000 Subject: [PATCH] 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 --- ChangeLog | 4 ++++ src/help.c | 2 +- src/nano.c | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) 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")); } -- 2.39.5