Benno's latest fixes for help menu translations.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4247 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
8a59f254ea
commit
b04248c548
|
@ -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>
|
2008-03-19 Chris Allegretta <chrisa@asty.org>
|
||||||
* gloabl.c: Fix bracket matching sequence to be M-] not M-[, as reported
|
* gloabl.c: Fix bracket matching sequence to be M-] not M-[, as reported
|
||||||
Nick Warne <nick@ukfsn.org>.
|
Nick Warne <nick@ukfsn.org>.
|
||||||
|
|
|
@ -414,7 +414,7 @@ void help_init(void)
|
||||||
|
|
||||||
for (s = sclist; s != NULL; s = s->next)
|
for (s = sclist; s != NULL; s = s->next)
|
||||||
if (s->scfunc == (void *) do_toggle)
|
if (s->scfunc == (void *) do_toggle)
|
||||||
allocsize += strlen(flagtostr(s->toggle)) + endis_len + 9;
|
allocsize += strlen(_(flagtostr(s->toggle))) + endis_len + 9;
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1250,7 +1250,7 @@ void do_toggle(int flag)
|
||||||
)
|
)
|
||||||
enabled = !enabled;
|
enabled = !enabled;
|
||||||
|
|
||||||
desc = flagtostr(flag);
|
desc = _(flagtostr(flag));
|
||||||
statusbar("%s %s", desc, enabled ? _("enabled") :
|
statusbar("%s %s", desc, enabled ? _("enabled") :
|
||||||
_("disabled"));
|
_("disabled"));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue