Fix setlocale to be able to find locales on Ubuntu

This commit is contained in:
nathangray 2017-10-27 10:54:39 +02:00
parent 92584a61ad
commit 5750904809

View File

@ -991,7 +991,8 @@ class Preferences
'C',
) as $local)
{
if (($ret = setlocale($category,$local.'@'.$charset)) ||
if (($ret = setlocale($category,$local.'.'.$charset)) ||
($ret = setlocale($category,$local.'@'.$charset)) ||
($ret = setlocale($category,$local)))
{
//error_log(__METHOD__."($category,$charset) lang=$lang, country=$country, country_from_lang=$country_from_lang: returning '$ret'");