fixed sometimes not translatable phrases longer 128 chars, problem was a trim() after truncating the message to 128 chars

This commit is contained in:
Ralf Becker 2009-11-28 16:24:44 +00:00
parent 9e5c2633d4
commit 86c2be2efa

View File

@ -175,7 +175,7 @@ class translation
} }
else 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])) if (isset($this->lang_arr[$new_key]))
{ {
@ -846,4 +846,4 @@ class translation
$msg = 'Bitte %1hier%2 clicken!'; $msg = 'Bitte %1hier%2 clicken!';
$replace = array('<a href="http://index.php?referer=%2Findex.php">','</a>'); $replace = array('<a href="http://index.php?referer=%2Findex.php">','</a>');
echo "<p>".htmlspecialchars(translation::translate($msg,$replace))."</p>\n"; echo "<p>".htmlspecialchars(translation::translate($msg,$replace))."</p>\n";
*/ */