From: Wilfried Goesgens Date: Tue, 25 Jun 2013 18:47:08 +0000 (+0200) Subject: GETTEXT: represent C as en_US to the user - no one speaks C that fluently after all ;-) X-Git-Tag: v8.20~14 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=a2c261b85e3275326bedb401d06e70002f2844e2 GETTEXT: represent C as en_US to the user - no one speaks C that fluently after all ;-) --- diff --git a/webcit/gettext.c b/webcit/gettext.c index ba4b5f37f..acb0331ce 100644 --- a/webcit/gettext.c +++ b/webcit/gettext.c @@ -17,7 +17,7 @@ #ifdef ENABLE_NLS /* actual supported locales */ const char *AvailLang[] = { - "C", + "en_US", "ar_AE", "bg_BG", "cs_CZ", @@ -317,7 +317,8 @@ void initialize_locales(void) { if ((language != NULL) && (strcmp(AvailLang[i], language) != 0)) continue; if (i == 0) { - sprintf(buf, "%s", AvailLang[i]); /* locale 0 (C) is ascii, not utf-8 */ + sprintf(buf, "C"); /* locale 0 (C) is ascii, not utf-8 */ + } else { sprintf(buf, "%s.UTF8", AvailLang[i]); @@ -332,7 +333,7 @@ void initialize_locales(void) { syslog(LOG_NOTICE, "locale for %s disabled: %s", buf, strerror(errno)); } else { - syslog(LOG_INFO, "Found locale: %s", buf); + syslog(LOG_INFO, "Found locale: %s - %s", buf, AvailLang[i]); AvailLangLoaded[nLocalesLoaded] = AvailLang[i]; nLocalesLoaded++; }