MO::import_from_file( string $filename )

Fills up with the entries from MO file $filename


Description Description


Parameters Parameters

$filename

(string) (Required) MO file to load


Top ↑

Return Return

(bool) True if the import from file was successful, otherwise false.


Top ↑

Source Source

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 );
		}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.