From f2e52e1478c2adc11f16da5b3b359fc841495b3b Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 28 Nov 2009 16:20:21 +0000 Subject: [PATCH] fixed sometimes not translatable phrases longer 128 chars, problem was a trim() after truncating the message to 128 chars --- phpgwapi/inc/class.translation.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.translation.inc.php b/phpgwapi/inc/class.translation.inc.php index d4176e4e95..501229496f 100644 --- a/phpgwapi/inc/class.translation.inc.php +++ b/phpgwapi/inc/class.translation.inc.php @@ -210,7 +210,7 @@ class translation } else { - $new_key = strtolower(trim(substr($key,0,self::MAX_MESSAGE_ID_LENGTH))); + $new_key = strtolower(substr($key,0,self::MAX_MESSAGE_ID_LENGTH)); if (isset(self::$lang_arr[$new_key])) {