Removed the 'room=' parameter from the wiki view. This functionality is provided...
[citadel.git] / webcit / gettext.c
index 3639602e613aae2bc2ad1e95c3193bdca3fd77b4..5e5d0909bb2e1bc55d37e4b71e656adbd8b7c2a4 100644 (file)
@@ -39,6 +39,7 @@ const char *AvailLang[] = {
        "kk_KK",
        "ro_RO",
        "sl_SL",
+       "tr_TR",
        ""
 };
 
@@ -50,7 +51,7 @@ locale_t *wc_locales; /* here we keep the parsed stuff */
 #endif
 
 /* Keep information about one locale */
-typedef struct _lang_pref{
+typedef struct _lang_pref {
        char lang[16];          /* the language locale string */
        char region[16];        /* the region locale string */
        long priority;          /* which priority does it have */
@@ -366,9 +367,9 @@ void initialize_locales(void) {
 
 #ifdef ENABLE_NLS
        setlocale(LC_ALL, "");
-       syslog(9, "Message catalog directory: %s", bindtextdomain("webcit", LOCALEDIR"/locale"));
        syslog(9, "Text domain: %s", textdomain("webcit"));
-       syslog(9, "Text domain Charset: %s", bind_textdomain_codeset("webcit","UTF8"));
+       syslog(9, "Text domain Charset: %s", bind_textdomain_codeset("webcit", "UTF8"));
+       syslog(9, "Message catalog directory: %s", bindtextdomain(textdomain(NULL), LOCALEDIR"/locale"));
 #endif
 }
 
@@ -396,6 +397,13 @@ const char *AvailLang[] = {
 };
 
 /* dummy for non NLS enabled systems */
+void 
+ServerShutdownModule_GETTEXT
+(void)
+{
+}
+
+
 void tmplput_offer_languages(StrBuf *Target, WCTemplputParams *TP)
 {
        wc_printf("English (US)");