projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
088052c
)
GETTEXT: represent C as en_US to the user - no one speaks C that fluently after all ;-)
author
Wilfried Goesgens
<dothebart@citadel.org>
Tue, 25 Jun 2013 18:47:08 +0000
(20:47 +0200)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Tue, 25 Jun 2013 18:47:08 +0000
(20:47 +0200)
webcit/gettext.c
patch
|
blob
|
history
diff --git
a/webcit/gettext.c
b/webcit/gettext.c
index ba4b5f37feb3f74912242b16fc503ca93ce9f7e0..acb0331ce74ae6bbe19eb5fc9a8b38f306a4ad5d 100644
(file)
--- a/
webcit/gettext.c
+++ b/
webcit/gettext.c
@@
-17,7
+17,7
@@
#ifdef ENABLE_NLS
/* actual supported locales */
const char *AvailLang[] = {
#ifdef ENABLE_NLS
/* actual supported locales */
const char *AvailLang[] = {
- "
C
",
+ "
en_US
",
"ar_AE",
"bg_BG",
"cs_CZ",
"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) {
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]);
}
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_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++;
}
AvailLangLoaded[nLocalesLoaded] = AvailLang[i];
nLocalesLoaded++;
}