* make locale not found messages less alarming
[citadel.git] / webcit / gettext.c
index fcd1f82e256ad30040bc3f1d91cb06a427b1dbb8..d12ff3cf53fdcec27cf2b38c12f7dc14bc5ade71 100644 (file)
@@ -20,6 +20,7 @@ const char *AvailLang[] = {
        "nl_NL",
        "pt_BR",
        "hu_HU",
+       "et_EE",
        ""
 };
 
@@ -293,13 +294,13 @@ void initialize_locales(void) {
                        (((i > 0) && (wc_locales[0] != NULL)) ? wc_locales[0] : Empty_Locale)
                );
                if (wc_locales[nLocalesLoaded] == NULL) {
-                       lprintf(1, "Error configuring locale for "LOCALEDIR"locale/%s: %s\n",
+                       lprintf(1, "locale for "LOCALEDIR"locale/%s: %s; disabled\n",
                                buf,
                                strerror(errno)
                        );
                }
                else {
-                       lprintf(3, "Configured available locale: %s\n", buf);
+                       lprintf(3, "Found locale: %s\n", buf);
                        AvailLangLoaded[nLocalesLoaded] = AvailLang[i];
                        nLocalesLoaded++;
                }
@@ -362,8 +363,8 @@ ServerShutdownModule_GETTEXT
 }
 
 #else  /* ENABLE_NLS */
-const char *AvailLang[NUM_LANGS] = {
-       "C"};
+const char *AvailLang[] = {
+       "C", ""};
 
 /** \brief dummy for non NLS enabled systems */
 void tmplput_offer_languages(StrBuf *Target, WCTemplputParams *TP)