]> granicus.if.org Git - sudo/commitdiff
Emulate ngettext for the non-nls case
authorTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 18 May 2011 17:44:07 +0000 (13:44 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Wed, 18 May 2011 17:44:07 +0000 (13:44 -0400)
config.h.in
configure.in

index e00d722f958d0332769e37ed024c756fb54b79ec..43abab0e19702566a5c9433b12a6e2dd14f006b8 100644 (file)
 # define N_(String) String
 # define textdomain(Domain)
 # define bindtextdomain(Package, Directory)
+# define ngettext(String, String_Plural, N) \
+    ((N) == 1 ? (String) : (String_Plural))
 #endif /* HAVE_LIBINTL_H */
 
 /* New ANSI-style OS defs for HP-UX and ConvexOS. */
index 3475f32001197b44ca6f55c9cb7337dbfe71d86c..8ed4818508770cbe3e6153a59138709d9f36c313 100644 (file)
@@ -3150,6 +3150,8 @@ AH_BOTTOM([/*
 # define N_(String) String
 # define textdomain(Domain)
 # define bindtextdomain(Package, Directory)
+# define ngettext(String, String_Plural, N) \
+    ((N) == 1 ? (String) : (String_Plural))
 #endif /* HAVE_LIBINTL_H */
 
 /* New ANSI-style OS defs for HP-UX and ConvexOS. */