wpseek.com
A WordPress-centric search engine for devs and theme authors
wp_get_pomo_file_data › WordPress Function
Since3.7.0
Deprecatedn/a
› wp_get_pomo_file_data ( $po_file )
Parameters: |
|
Returns: |
|
Defined at: |
|
Codex: |
Extracts headers from a PO file.
Related Functions: wp_get_l10n_php_file_data, get_file_data, wp_get_update_data, get_inline_data, wp_get_post_tags
Source
function wp_get_pomo_file_data( $po_file ) { $headers = get_file_data( $po_file, array( 'POT-Creation-Date' => '"POT-Creation-Date', 'PO-Revision-Date' => '"PO-Revision-Date', 'Project-Id-Version' => '"Project-Id-Version', 'X-Generator' => '"X-Generator', ) ); foreach ( $headers as $header => $value ) { // Remove possible contextual '\n' and closing double quote. $headers[ $header ] = preg_replace( '~(\\\n)?"$~', '', $value ); } return $headers; }