diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-30 14:06:27 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2001-11-30 14:06:27 +0000 |
commit | ecf09ea77a2a657ccd2116557d9963fb54f1657c (patch) | |
tree | b6591de1f256ae670ceef11bb23017fba5ce3503 /rc.c | |
parent | run make indent (diff) | |
download | w3m-ecf09ea77a2a657ccd2116557d9963fb54f1657c.tar.gz w3m-ecf09ea77a2a657ccd2116557d9963fb54f1657c.zip |
modify AcceptLang
Diffstat (limited to 'rc.c')
-rw-r--r-- | rc.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: rc.c,v 1.20 2001/11/30 11:11:44 ukai Exp $ */ +/* $Id: rc.c,v 1.21 2001/11/30 14:06:27 ukai Exp $ */ /* * Initialization file etc. */ @@ -1091,6 +1091,14 @@ sync_with_option(void) #endif initMailcap(); initMimeTypes(); + + if (AcceptLang == NULL || *AcceptLang == '\0') { +#if LANG == JA + AcceptLang = "ja; q=1.0, en; q=0.5"; +#else /* LANG != JA (must be EN) */ + AcceptLang = "en; q=1.0"; +#endif + } if (AcceptEncoding == NULL || *AcceptEncoding == '\0') AcceptEncoding = acceptableEncoding(); if (AcceptMedia == NULL || *AcceptMedia == '\0') |