mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-13 17:00:45 +01:00
remove CR from start and end of lang string line read from file, as it breaks stuff e.g. in eMail module
This commit is contained in:
parent
36bc7871c1
commit
c3d2170518
@ -463,7 +463,7 @@ class translation
|
|||||||
//while(($line = fgetcsv($f, 1024, "\t")))
|
//while(($line = fgetcsv($f, 1024, "\t")))
|
||||||
while($line = fgets($f))
|
while($line = fgets($f))
|
||||||
{
|
{
|
||||||
$line = explode("\t", $line);
|
$line = explode("\t", trim($line));
|
||||||
++$line_nr;
|
++$line_nr;
|
||||||
if (count($line) != 4) continue;
|
if (count($line) != 4) continue;
|
||||||
list($l_id,$l_app,$l_lang,$l_translation) = $line;
|
list($l_id,$l_app,$l_lang,$l_translation) = $line;
|
||||||
|
Loading…
Reference in New Issue
Block a user