]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Drop error message on setlocale() failure; this is harmless, since we actually have...
authorBrion Vibber <brion@pobox.com>
Wed, 25 Nov 2009 19:20:41 +0000 (11:20 -0800)
committerBrion Vibber <brion@pobox.com>
Wed, 25 Nov 2009 19:23:11 +0000 (11:23 -0800)
lib/util.php

index 5bf4f6091bcf823182f050f57935a818de2ae179..6946f60feefc32c78bc5a92c3fe6ef792cddd7c7 100644 (file)
@@ -58,18 +58,17 @@ function common_init_language()
     // (say, ga_ES for Galego/Galician) it seems to take it.
     common_init_locale("en_US");
 
+    // Note that this setlocale() call may "fail" but this is harmless;
+    // gettext will still select the right language.
     $language = common_language();
     $locale_set = common_init_locale($language);
+    
     setlocale(LC_CTYPE, 'C');
     // So we do not have to make people install the gettext locales
     $path = common_config('site','locale_path');
     bindtextdomain("statusnet", $path);
     bind_textdomain_codeset("statusnet", "UTF-8");
     textdomain("statusnet");
-
-    if(!$locale_set) {
-        common_log(LOG_INFO, 'Language requested:' . $language . ' - locale could not be set. Perhaps that system locale is not installed.', __FILE__);
-    }
 }
 
 function common_timezone()