PO::export_headers()
最后更新于:2021-11-25 21:17:07
PO::export_headers()Exports headers to a PO entry
响应
(string) msgid/msgstr PO entry for this PO file headers, doesn’t contain newline at the end
源文件
文件: gc-includes/pomo/po.php
function export_headers() {
$header_string = '';
foreach ( $this->headers as $header => $value ) {
$header_string .= "$header: $valuen";
}
$poified = PO::poify( $header_string );
if ( $this->comments_before_headers ) {
$before_headers = $this->prepend_each_line( rtrim( $this->comments_before_headers ) . "n", '# ' );
} else {
$before_headers = '';
}
return rtrim( "{$before_headers}msgid ""nmsgstr $poified" );
}