From: Wilfried Goesgens Date: Mon, 18 Mar 2013 22:30:37 +0000 (+0100) Subject: GETTEXT: rather choose the language on the array of locales successfully loaded than... X-Git-Tag: v8.20~78 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=a6e90dc4d19b9d7b7f9b55d281cf237bc5f40f66 GETTEXT: rather choose the language on the array of locales successfully loaded than those we originaly shipped. --- diff --git a/webcit/gettext.c b/webcit/gettext.c index da7890239..54d4ba3ae 100644 --- a/webcit/gettext.c +++ b/webcit/gettext.c @@ -441,7 +441,7 @@ void TmplGettext(StrBuf *Target, WCTemplputParams *TP) const char *get_selected_language(void) { #ifdef ENABLE_NLS #ifdef HAVE_USELOCALE - return AvailLang[WC->selected_language]; + return AvailLangLoaded[WC->selected_language]; #else return "en"; #endif