mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-14 01:48:35 +01:00
only set LC_MESSAGES by default, as LC_ALL would also change PHPs numberformatting to use eg. comman as decimal seperator, fixes not working preference how many infolog lines to show
This commit is contained in:
parent
c08853a711
commit
8a1fa99886
@ -961,11 +961,11 @@ class Preferences
|
|||||||
*
|
*
|
||||||
* This method uses the language and nationalty set in the users common prefs.
|
* This method uses the language and nationalty set in the users common prefs.
|
||||||
*
|
*
|
||||||
* @param $category =LC_ALL category to set, see setlocal function
|
* @param $category =LC_MESSAGES category to set, see setlocal function
|
||||||
* @param $charset =null default system charset
|
* @param $charset =null default system charset
|
||||||
* @return string the local (or best estimate) set
|
* @return string the local (or best estimate) set
|
||||||
*/
|
*/
|
||||||
static function setlocale($category=LC_ALL,$charset=null)
|
static function setlocale($category=LC_MESSAGES,$charset=null)
|
||||||
{
|
{
|
||||||
$lang = $GLOBALS['egw_info']['user']['preferences']['common']['lang'];
|
$lang = $GLOBALS['egw_info']['user']['preferences']['common']['lang'];
|
||||||
$country = $GLOBALS['egw_info']['user']['preferences']['common']['country'];
|
$country = $GLOBALS['egw_info']['user']['preferences']['common']['country'];
|
||||||
|
Loading…
Reference in New Issue
Block a user