/* some copies... */
int lprintf(int loglevel, const char *format, ...){return 0;}
+void wc_printf(const char *format,...){}
+
void RegisterNS(const char *NSName, long len,
int nMinArgs,
int nMaxArgs,
WCHandlerFunc HandlerFunc,
+ WCPreevalFunc PreEvalFunc,
int ContextRequired){}
+void RegisterHeaderHandler(const char *Name, long Len, Header_Evaluator F){}
pthread_key_t MyConKey;
-#include "wc_gettext.h"
-
#ifdef ENABLE_NLS
#ifdef HAVE_USELOCALE
}
-
+extern const char *AvailLang[];
int GetLocalePrefs(void)
{
+ int nLocales;
StrBuf *Buf;
char buf[SIZ];
char dialog_result[PATH_MAX];
int offs = 0;
+ nLocales = 0;
+ while (!IsEmptyStr(AvailLang[nLocales]))
+ nLocales++;
+
Buf = NewStrBuf();
StrBufAppendBufPlain(Buf, HKEY("Select the locale webcit should use : \n"), 0);
StrBufAppendBufPlain(Buf, HKEY(" 0 Let the user select it at the login prompt (default)\n"), 0);
offs ++;
#endif
- for (i = 0; i < NUM_LANGS; i++) {
+ for (i = 0; i < nLocales; i++) {
StrBufAppendPrintf(Buf, " %ld: %s\n", i + offs, AvailLang[i]);
}