View | Details | Raw Unified
Collapse All | Expand All

(-) newt-0.52.7.orig/configure.ac (+6 lines)
 Lines 35-40    Link Here 
  AC_DEFINE([USE_GPM], 1, [Define to 1 if GPM support is enabled])
  AC_DEFINE([USE_GPM], 1, [Define to 1 if GPM support is enabled])
fi
fi
AC_ARG_ENABLE([nls], [  --disable-nls           compile without NLS support])
if test "x$enable_nls" != "xno"; then
  AC_DEFINE([ENABLE_NLS], 1, [Define to 1 if NLS support is enabled])
fi
AC_CONFIG_FILES([Makefile])
AC_CONFIG_FILES([Makefile])
AC_OUTPUT
AC_OUTPUT
(-) newt-0.52.7.orig/nls.h (+6 lines)
 Lines 6-13    Link Here 
# include <locale.h>
# include <locale.h>
#ifdef ENABLE_NLS
# include <libintl.h>
# include <libintl.h>
# define _(Text) gettext (Text)
# define _(Text) gettext (Text)
#else
# define _(Text) (Text)
# define dgettext(Package, String) (String)
#endif
# ifdef gettext_noop
# ifdef gettext_noop
#  define N_(String) gettext_noop (String)
#  define N_(String) gettext_noop (String)
# else
# else
(-) newt-0.52.7.orig/whiptail.c (-1 / +3 lines)
 Lines 389-398    Link Here 
	    { "version", 'v', 0, &version, 0, NULL, NULL },
	    { "version", 'v', 0, &version, 0, NULL, NULL },
	    { 0, 0, 0, 0, 0 } 
	    { 0, 0, 0, 0, 0 } 
    };
    };
   
#ifdef ENABLE_NLS
    setlocale (LC_ALL, "");
    setlocale (LC_ALL, "");
    bindtextdomain (PACKAGE, LOCALEDIR);
    bindtextdomain (PACKAGE, LOCALEDIR);
    textdomain (PACKAGE);
    textdomain (PACKAGE);
#endif
    optCon = poptGetContext("whiptail", argc, argv, optionsTable, 0);
    optCon = poptGetContext("whiptail", argc, argv, optionsTable, 0);