- Disable VSTOP keystroke. Stops people accidentally locking up
nano (suggested by David Benbennick).
- Pluralize messages with ngettext() where needed. (David
- Benbennick)
+ Benbennick) Tweaked to compile on systems lacking ngettext()
+ by DLR (problem found by Ken Tyler).
- Update nano.1 and nano.1.html to show that nano now does an
emergency save on receiving SIGHUP or SIGTERM. (DLR)
- Don't include "nowrap" in the long options if
esac], [AC_MSG_RESULT(no)])
dnl Checks for functions
-AC_CHECK_FUNCS(snprintf vsnprintf)
+AC_CHECK_FUNCS(ngettext snprintf vsnprintf)
+if test "x$ac_cv_func_ngettext" = "xno"
+then
+ AC_DEFINE(NO_NGETTEXT, 1, [Defined if ngettext() is unavailable])
+fi
if test "x$ac_cv_func_snprintf" = "xno" -o "xac_cv_func_vsnprintf" = "xno"
then
AM_PATH_GLIB(1.2.4,,
# include <libintl.h>
# endif
# define _(string) gettext(string)
+# ifdef NO_NGETTEXT
+# define ngettext(singular, plural, number) gettext(number == 1 ? singular : plural)
+# endif
#else
# define _(string) (string)
# define ngettext(singular, plural, number) number == 1 ? singular : plural