(init_panelize): support --disable-nls.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2013-02-01 10:19:33 +04:00
parent c52003ec43
commit 556192bd4a

View File

@ -159,7 +159,9 @@ init_panelize (void)
blen = i - 1; /* gaps between buttons */
while (i-- != 0)
{
#ifdef ENABLE_NLS
panelize_but[i].text = _(panelize_but[i].text);
#endif
blen += str_term_width1 (panelize_but[i].text) + 3 + 1;
if (panelize_but[i].flags == DEFPUSH_BUTTON)
blen += 2;