Only log locale sets that fail

darcs-hash:20081007145232-f6e2c-15812a2576e1ec270e26dcd61bbec5d07b2b7f05.gz
This commit is contained in:
CiaranG 2008-10-07 10:52:32 -04:00
parent 2cc3136dca
commit 33b0410723
1 changed files with 3 additions and 1 deletions

View File

@ -146,7 +146,9 @@ function common_init_language() {
bind_textdomain_codeset("laconica", "UTF-8");
textdomain("laconica");
setlocale(LC_CTYPE, 'C');
common_log(LOG_INFO,'Language requested:'.$language.' Locale set:'.$locale_set,__FILE__);
if(!$local_set) {
common_log(LOG_INFO,'Language requested:'.$language.' - locale could not be set:',__FILE__);
}
}
define('PAGE_TYPE_PREFS', 'text/html,application/xhtml+xml,application/xml;q=0.3,text/xml;q=0.2');