diff --git a/phpgwapi/inc/class.translation_sql.inc.php b/phpgwapi/inc/class.translation_sql.inc.php index 937d4b3b33..c5e8010fc5 100644 --- a/phpgwapi/inc/class.translation_sql.inc.php +++ b/phpgwapi/inc/class.translation_sql.inc.php @@ -415,9 +415,13 @@ { $line = eregi_replace("\t+", "\t", $line); $_f_buffer = split("\t", $line); - if( count($_f_buffer) > 4 ) + + # Bad Line + if( count($_f_buffer) != 4 ) { - $this->line_rejected[] = Array("appfile" => $appfile, "line" => $line); + $line_display = eregi_replace("\t", "\\t", $line); + $line_display = eregi_replace("\n", "\\n", $line_display); + $this->line_rejected[] = Array("appfile" => $appfile, "line" => $line_display); } // explode with "\t" and removing "\n" with str_replace, needed to work with mbstring.overload=7