Uses
Uses | Description |
---|---|
wp-includes/pomo/streams.php: POMO_FileReader::__construct() | |
wp-includes/pomo/mo.php: MO::import_from_reader() |
Fills up with the entries from MO file $filename
(string) (Required) MO file to load
(bool) True if the import from file was successful, otherwise false.
File: wp-includes/pomo/mo.php
function import_from_file( $filename ) { $reader = new POMO_FileReader( $filename ); if ( ! $reader->is_resource() ) { return false; } $this->filename = (string) $filename; return $this->import_from_reader( $reader ); }
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/mo/import_from_file