X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fgettext.c;h=e1ced5b5f8ea544251a7b3f4c737e8faf20d8dcc;hb=bdd6ecc8b6d1239ac25d14d410d0a510716783b4;hp=5ae10394584427297d9797e9d397d1f76379b6cc;hpb=74a74db32e08b03135eb07792aee9adcd9aa90e3;p=citadel.git diff --git a/webcit/gettext.c b/webcit/gettext.c index 5ae103945..e1ced5b5f 100644 --- a/webcit/gettext.c +++ b/webcit/gettext.c @@ -51,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 */ @@ -367,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 }