Make WordPress Core

Ticket #3577: gettext-semicolon.diff

File gettext-semicolon.diff, 521 bytes (added by nbachiyski, 20 years ago)
  • wp-includes/gettext.php

     
    302302    $string = str_replace('nplurals',"\$total",$string);
    303303    $string = str_replace("n",$n,$string);
    304304    $string = str_replace('plural',"\$plural",$string);
    305    
     305
     306    # poEdit doesn't put any semicolons, which
     307    # results in parse error in eval
     308    $string .= ';';
     309       
    306310    $total = 0;
    307311    $plural = 0;
    308312