From 86c2be2efa9f3b9d1fe3d98b029d219be0e95872 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Sat, 28 Nov 2009 16:24:44 +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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.translation.inc.php b/phpgwapi/inc/class.translation.inc.php index 8e4e16596c..5a795597de 100644 --- a/phpgwapi/inc/class.translation.inc.php +++ b/phpgwapi/inc/class.translation.inc.php @@ -175,7 +175,7 @@ class translation } else { - $new_key = strtolower(trim(substr($key,0,MAX_MESSAGE_ID_LENGTH))); + $new_key = strtolower(substr($key,0,MAX_MESSAGE_ID_LENGTH)); if (isset($this->lang_arr[$new_key])) { @@ -846,4 +846,4 @@ class translation $msg = 'Bitte %1hier%2 clicken!'; $replace = array('',''); echo "

".htmlspecialchars(translation::translate($msg,$replace))."

\n"; -*/ \ No newline at end of file +*/