-/** \todo translate */
-/** short months */
-char *ascmonths[] = {
- "Jan", "Feb", "Mar", "Apr", "May", "Jun",
- "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
-};
-
-/** Short weekdays */
-char *ascdays[] = {
- "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
-};
-
-/**
- * \brief Format a date/time stamp for output
- * \param buf the output buffer
- * \param thetime time to convert to string
- * \param brief do we want compact view?????
+/*
+ * Wrapper around strftime() or strftime_l()
+ * depending upon how our build is configured.
+ *
+ * s String target buffer
+ * max Maximum size of string target buffer
+ * format strftime() format
+ * tm Input date/time
+ */
+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);
+ }
+ else {
+ return strftime_l(s, max, format, tm, wc_locales[WC->selected_language]);
+ }
+#else
+ return strftime(s, max, format, tm);
+#endif
+#else
+ return strftime(s, max, format, tm);
+#endif
+}
+
+
+
+/*
+ * Format a date/time stamp for output