Update translate.class.php
Resolve bug #9105 When load() function loads translation file from an external modules, adds a \r simbol at the end of each line.
This commit is contained in:
parent
957295ee2d
commit
c555a2c588
@ -282,7 +282,7 @@ class Translate
|
|||||||
* and split the rest until a line feed.
|
* and split the rest until a line feed.
|
||||||
* This is more efficient than fgets + explode + trim by a factor of ~2.
|
* This is more efficient than fgets + explode + trim by a factor of ~2.
|
||||||
*/
|
*/
|
||||||
while ($line = fscanf($fp, "%[^= ]%*[ =]%[^\n]"))
|
while ($line = fscanf($fp, "%[^= ]%*[ =]%[^\n\r]"))
|
||||||
{
|
{
|
||||||
if (isset($line[1]))
|
if (isset($line[1]))
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user