mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-08 06:59:46 +01:00
fixed common::setLocal() to fallback to en_US, not en_EN (which does not exist) and then de_DE (giving german)
This commit is contained in:
parent
6cdc417ee8
commit
e1122bb88f
@ -53,13 +53,16 @@ class common
|
|||||||
$lang.'_'.$country,
|
$lang.'_'.$country,
|
||||||
$lang.'_'.$country_from_lang,
|
$lang.'_'.$country_from_lang,
|
||||||
$lang,
|
$lang,
|
||||||
'en_EN',
|
'en_US',
|
||||||
'de_DE', // this works with utf-8, en_EN@utf-8 does NOT!
|
|
||||||
'C',
|
'C',
|
||||||
) as $local)
|
) as $local)
|
||||||
{
|
{
|
||||||
if (($ret = setlocale($category,$local.'@'.$charset))) return $ret;
|
if (($ret = setlocale($category,$local.'@'.$charset)) ||
|
||||||
if (($ret = setlocale($category,$local))) return $ret;
|
($ret = setlocale($category,$local)))
|
||||||
|
{
|
||||||
|
//error_log(__METHOD__."($category,$charset) lang=$lang, country=$country, country_from_lang=$country_from_lang: returning '$ret'");
|
||||||
|
return $ret;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
error_log(__METHOD__."($category,$charset) lang=$lang, country=$country, country_from_lang=$country_from_lang: Could not set local!");
|
error_log(__METHOD__."($category,$charset) lang=$lang, country=$country, country_from_lang=$country_from_lang: Could not set local!");
|
||||||
return false; // should not happen, as the 'C' local should at least be available everywhere
|
return false; // should not happen, as the 'C' local should at least be available everywhere
|
||||||
|
Loading…
Reference in New Issue
Block a user