Menu

#13 Bug in function which splits string into lines

open
Entrans (11)
5
2012-01-21
2012-01-21
No

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, " ");

Discussion

  • Robert Marik

    Robert Marik - 2012-01-30
     
  • Robert Marik

    Robert Marik - 2012-01-30

    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.

     

Log in to post a comment.

MongoDB Logo MongoDB