From a2c261b85e3275326bedb401d06e70002f2844e2 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Tue, 25 Jun 2013 20:47:08 +0200 Subject: [PATCH] GETTEXT: represent C as en_US to the user - no one speaks C that fluently after all ;-) --- webcit/gettext.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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++; } -- 2.30.2