mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +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
213fc4291c
commit
36bc7871c1
@ -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