Revert "Remove ENABLE_NLS definition. Either we HAVE_USELOCALE or we don't translate...
[citadel.git] / webcit / fmt_date.c
index 7979ecf585efec511d573c8c63ee795739b035fe..15e5673ca25756813f6529f6fff6d6aa4e21bb5e 100644 (file)
@@ -40,6 +40,7 @@ typedef unsigned char byte;
 size_t wc_strftime(char *s, size_t max, const char *format, const struct tm *tm)
 {
 
+#ifdef ENABLE_NLS
 #ifdef HAVE_USELOCALE
        if (wc_locales[WC->selected_language] == NULL) {
                return strftime(s, max, format, tm);
@@ -50,6 +51,9 @@ size_t wc_strftime(char *s, size_t max, const char *format, const struct tm *tm)
 #else
        return strftime(s, max, format, tm);
 #endif
+#else
+       return strftime(s, max, format, tm);
+#endif
 }