]> code.citadel.org Git - citadel.git/blobdiff - webcit/webserver.c
* Mercilessly ripped out all of the gratuitously complex GNU libintl
[citadel.git] / webcit / webserver.c
index cd16142806246d025230c65baeff117213a3e5c1..04ac7c3a3872604583c42fcb6a54e6710c767fb5 100644 (file)
@@ -382,8 +382,10 @@ int main(int argc, char **argv)
        char tracefile[PATH_MAX];
        char ip_addr[256];
        char *webcitdir = WEBCITDIR;
+#ifdef ENABLE_NLS
        char *locale = NULL;
        char *mo = NULL;
+#endif /* ENABLE_NLS */
 
        /* Parse command line */
 #ifdef HAVE_OPENSSL
@@ -461,6 +463,9 @@ int main(int argc, char **argv)
 
        /* initialize the International Bright Young Thing */
 #ifdef ENABLE_NLS
+
+       initialize_locales();
+
        locale = setlocale(LC_ALL, "");
 
        mo = malloc(strlen(webcitdir) + 20);