MO::import_from_file()

最后更新于:2021-11-25 20:31:03

MO::import_from_file( string$filename)

Fills up with the entries from MO file $filename

参数

$filename

(string) (Required) MO file to load

响应

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

源文件

文件: gc-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 );
		}