PO::comment_block()
最后更新于:2021-11-25 21:06:27
PO::comment_block( string$text, string$char=’ ‘)Prepare a text as a comment — wraps the lines and prepends # and a special character to each line
参数
- $text
-
(string) (Required) the comment text
- $char
-
(string) (Optional) character to denote a special PO comment, like :, default is a space
Default value: ‘ ‘
源文件
文件: gc-includes/pomo/po.php
public static function comment_block( $text, $char = ' ' ) {
$text = wordwrap( $text, PO_MAX_LINE_LEN - 3 );
return PO::prepend_each_line( $text, "#$char " );
}