]> code.citadel.org Git - citadel.git/blobdiff - webcit/auth.c
* Re-enabled browser language detection. This will be debugged and finalized.
[citadel.git] / webcit / auth.c
index 6ba3d95e4b0b5fc7f0a6ddfd83ec44328a8f3423..7b1733b3b0f5900fbb4f227437296949bf3c7a97 100644 (file)
@@ -20,6 +20,24 @@ void initialize_axdefs(void) {
 }
 
 
+/*
+ * Offer available languages in the login box
+ */
+void offer_languages(void) {
+
+#ifdef ENABLE_NLS
+
+wprintf("FIXME");
+
+#else /* ENABLE_NLS */
+
+wprintf("US English");
+
+#endif /* ENABLE_NLS */
+
+}
+
+
 /*
  * Display the login screen
  */
@@ -54,12 +72,14 @@ void display_login(char *mesg)
 
        svprintf("USERNAME_BOX", WCS_STRING, "%s", _("User name:"));
        svprintf("PASSWORD_BOX", WCS_STRING, "%s", _("Password:"));
+       svprintf("LANGUAGE_BOX", WCS_STRING, "%s", _("Language:"));
        svprintf("LOGIN_BUTTON", WCS_STRING, "%s", _("Login"));
        svprintf("NEWUSER_BUTTON", WCS_STRING, "%s", _("New User"));
        svprintf("EXIT_BUTTON", WCS_STRING, "%s", _("Exit"));
        svprintf("hello", WCS_SERVCMD, "MESG hello");
        svprintf("BOXTITLE", WCS_STRING, _("%s - powered by Citadel"),
                serv_info.serv_humannode);
+       svcallback("DO_LANGUAGE_BOX", offer_languages);
 
        do_template("login");