mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-24 00:43:20 +01:00
* API/Translation: fix bug with missing german umlauts as first letter of words; ( as php5.3.3 with squeeze does not support splitting lines with fgetcsv while reading properly if the first letter after the delimiter is a german umlaut (UTF8 representation thereoff))
This commit is contained in:
parent
f94e480b8a
commit
11fb8b40dd
@ -458,8 +458,12 @@ class translation
|
||||
egw_cache::setTree(__CLASS__, $file, filectime($file));
|
||||
|
||||
$line_nr = 0;
|
||||
while(($line = fgetcsv($f, 1024, "\t")))
|
||||
//use fgets and split the line, as php5.3.3 with squeeze does not support splitting lines with fgetcsv while reading properly
|
||||
//if the first letter after the delimiter is a german umlaut (UTF8 representation thereoff)
|
||||
//while(($line = fgetcsv($f, 1024, "\t")))
|
||||
while($line = fgets($f))
|
||||
{
|
||||
$line = explode("\t", $line);
|
||||
++$line_nr;
|
||||
if (count($line) != 4) continue;
|
||||
list($l_id,$l_app,$l_lang,$l_translation) = $line;
|
||||
|
Loading…
Reference in New Issue
Block a user