po/Makefile \
$(srcdir)/TAGS
-setup: setup.o
- $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) $(SETUP_LIBS) setup.o -o setup
+setup: setup.o gettext.o
+ $(CC) $(LDFLAGS) $(LIBOBJS) $(LIBS) $(SETUP_LIBS) \
+ gettext.o setup.o -o setup
webcit: webserver.o context_loop.o ical_dezonify.o \
cookie_conversion.o locate_host.o floors.o summary.o \
[AC_CHECK_LIB(citadel, libcitadel_version_string,
[
LIBS="-lcitadel $LIBS"
+ SETUP_LIBS="-lcitadel $SETUP_LIBS"
],
[
AC_MSG_ERROR(libcitadel was not found or is not usable. Please install libcitadel.)
#include "webserver.h"
#ifdef ENABLE_NLS
-
-#define NUM_LANGS 10 /* how many different locales do we know? */
-#define SEARCH_LANG 20 /* how many langs should we parse? */
-
/* actual supported locales */
const char *AvailLang[NUM_LANGS] = {
"C",
}
#else /* ENABLE_NLS */
+const char *AvailLang[NUM_LANGS] = {
+ "C"};
+
/** \brief dummy for non NLS enabled systems */
void tmplput_offer_languages(StrBuf *Target, WCTemplputParams *TP)
{
int using_web_installer = 0;
char suggested_url[SIZ];
+/* some copies... */
+int lprintf(int loglevel, const char *format, ...){return 0;}
+void RegisterNS(const char *NSName, long len,
+ int nMinArgs,
+ int nMaxArgs,
+ WCHandlerFunc HandlerFunc,
+ int ContextRequired){}
+pthread_key_t MyConKey;
+
+#include "wc_gettext.h"
+
+
/*
* Delete an entry from /etc/inittab
*/
}
- fp = fopen(initfile, "w");
+/// fp = fopen(initfile, "w");
+ fp = stderr;/// TODO: weg
fprintf(fp, "#!/bin/sh\n"
"\n"
#ifdef ENABLE_NLS
void initialize_locales(void);
void ShutdownLocale(void);
+
+#define NUM_LANGS 10 /* how many different locales do we know? */
+#define SEARCH_LANG 20 /* how many langs should we parse? */
+
+/* actual supported locales */
+extern const char *AvailLang[NUM_LANGS];
+#else
+#define NUM_LANGS 1 /* how many different locales do we know? */
#endif
void TmplGettext(StrBuf *Target, WCTemplputParams *TP);
void offer_languages(StrBuf *Target, int nArgs, WCTemplateToken *Token, void *Context, int ContextType);