From 8a1fa998861aa7a6f25dbfa59f0cf34090fe7b08 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 20 Jun 2016 18:28:46 +0200 Subject: [PATCH] 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 --- api/src/Preferences.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/src/Preferences.php b/api/src/Preferences.php index ecc6fe2e06..56e921acb4 100644 --- a/api/src/Preferences.php +++ b/api/src/Preferences.php @@ -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'];