]> code.citadel.org Git - citadel.git/blobdiff - webcit/webcit.h
* More work to get the gettext stuff working, although I really don't
[citadel.git] / webcit / webcit.h
index c28db030f87ed9cf7a6664abc418a19b4c4cb918..e507adc41a07176c0bb6bd3b7357a67266351c69 100644 (file)
 #include <iconv.h>
 #endif
 
+#include "gettext.h"
 
-#ifdef ENABLE_NLS
-#ifdef HAVE_LIBINTL_H
-#include <libintl.h>
-#endif
-#define _(string) gettext(string)
-#define P_(singular, plural, number) ngettext(singular, plural, number)
+#if ENABLE_NLS
+#include <locale.h>
+#define _(string)      gettext(string)
 #else
-#define _(string) (string)
-#define P_(singular, plural, number) (number == 1 ? singular : plural)
+#define _(string)      (string)
 #endif
-#define gettext_noop(string) (string)
-#define N_(string) gettext_noop(string)
-        /* Mark a string that will be sent to gettext() later. */
-
 
 /*
  * Uncomment to dump an HTTP trace to stderr