MO::import_from_file

Advertisement

Summery Summery

Fills up with the entries from MO file $filename

Syntax Syntax

MO::import_from_file( string $filename )

Parameters Parameters

$filename

(string) (Required) MO file to load

Return Return

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

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

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.