POMO_FileReader example

public function get_filename() {
            return $this->filename;
        }

        /** * Fills up with the entries from MO file $filename * * @param string $filename MO file to load * @return bool True if the import from file was successful, otherwise false. */
        public 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 );
        }

        /** * @param string $filename * @return bool */
Home | Imprint | This part of the site doesn't use cookies.