WCHandlerFunc HandlerFunc,
WCPreevalFunc PreEvalFunc,
int ContextRequired){}
+void StrBufAppendTemplateStr(StrBuf *Target,
+ WCTemplputParams *TP,
+ const char *Source,
+ int FormatTypeIndex){}
void RegisterHeaderHandler(const char *Name, long Len, Header_Evaluator F){}
pthread_key_t MyConKey;
+#ifdef ENABLE_NLS
+
#ifdef HAVE_USELOCALE
int localeoffset = 1;
+#else
+int localeoffset = 0;
#endif
+#endif
/*
* Delete an entry from /etc/inittab
*/
*/
void install_init_scripts(void)
{
-#ifdef HAVE_USELOCALE
+#ifdef ENABLE_NLS
int localechoice;
#endif
char question[1024];
return;
-#ifdef HAVE_USELOCALE
+#ifdef ENABLE_NLS
+
localechoice = GetLocalePrefs();
+
#endif
/* Defaults */
sprintf(http_port, "2000");
fprintf(fp, "CTDL_HOSTNAME=%s\n", hostname);
fprintf(fp, "CTDL_PORTNAME=%s\n", portname);
-#ifdef HAVE_USELOCALE
+#ifdef ENABLE_NLS
+
if (localechoice == 0) {
+#ifdef HAVE_USELOCALE
+ fprintf(fp, "unset LANG\n");
+#else
+ fprintf(fp, "export WEBCIT_LANG=c\n");
+#endif
+ }
+ else {
fprintf(fp, "export WEBCIT_LANG=%s\n", AvailLang[localechoice - localeoffset]);
+
}
#else
fprintf(fp, "# your system doesn't support locales\n");
#endif
-
-
-
-
-
fprintf(fp, "\n"
"\n"
"case \"$1\" in\n"