Bug in function which splits string into lines
Brought to you by:
khader,
r_vigneswaran
The function fn_write_string from functions_organize does not work well if there is word longer than the line, e.g. an URL to wikipedia or whatever.
The file contains one char per line and thus escaped " (\") is written as two lines in po file: "\" and """
As a quick fix, I added
if ($pos=="") {$pos=strrpos($part_string_value, "/");}
if ($pos=="") {$pos=strrpos($part_string_value, "_");}
if ($pos=="") {$pos=strrpos($part_string_value, "~");}
if ($pos=="") {$pos=70;}
after the line
$pos=strrpos($part_string_value, " ");
patch.entrans.1 solves the problem with chinese characters - they have been splitted into three characters by previous patch and the uploaded file was not valid.