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:
Ralf Becker 2016-06-20 18:28:46 +02:00
parent c08853a711
commit 8a1fa99886

View File

@ -961,11 +961,11 @@ class Preferences
*
* 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
* @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'];
$country = $GLOBALS['egw_info']['user']['preferences']['common']['country'];