Prepare a text as a comment — wraps the lines and prepends # and a special character to each line
Parameters
$text
stringrequired- the comment text
$char
stringoptional- character to denote a special PO comment, like :, default is a space
Default:
' '
Source
public static function comment_block( $text, $char = ' ' ) {
$text = wordwrap( $text, PO_MAX_LINE_LEN - 3 );
return PO::prepend_each_line( $text, "#$char " );
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.