From: CiaranG Date: Tue, 7 Oct 2008 14:52:32 +0000 (-0400) Subject: Only log locale sets that fail X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=33b04107231823b48ee27ca28b73266c706e105f;p=quix0rs-gnu-social.git Only log locale sets that fail darcs-hash:20081007145232-f6e2c-15812a2576e1ec270e26dcd61bbec5d07b2b7f05.gz --- diff --git a/lib/util.php b/lib/util.php index 23abb14263..5c5c7179ce 100644 --- a/lib/util.php +++ b/lib/util.php @@ -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');