* setOptions( array( 'format' => 'translation-[LOCALE].xml' ) ); * $r->initReader( 'nl_NL' ); * $r->next(); * while ( $r->valid() ) * { * $ctxt = $r->current(); * $r->next(); * } * $r->deinitReader(); * ?> * * * @package Translation * @version 1.2alpha1 */ interface ezcTranslationContextRead extends Iterator { /** * Initializes the reader to read from the locale $locale. * * Before starting to request context through the reader, you should call * this method to initialize it. * * @param string $locale * @throws TranslationException when the path of the translation and the * fileformat of the translation are not set before * this method is called. * @return void */ public function initReader( $locale ); /** * Deinitializes the reader. * * This method should be called after the haveMore() method returns false * to cleanup resources. * * @throws TranslationException when the reader is not initialized with * initReader(). * @return void */ public function deinitReader(); } ?>