/**
  * Hook: ArticlePrepareTextForEdit
  * @param WikiPage $wikiPage
  * @param ParserOptions $popts
  * @return bool
  */
 public static function disablePreSaveTransform($wikiPage, ParserOptions $popts)
 {
     global $wgTranslateUsePreSaveTransform;
     if (!$wgTranslateUsePreSaveTransform) {
         $handle = new MessageHandle($wikiPage->getTitle());
         if ($handle->isMessageNamespace() && !$handle->isDoc()) {
             $popts->setPreSaveTransform(false);
         }
     }
     return true;
 }
	/**
	 * Hook: ArticlePrepareTextForEdit
	 */
	public static function disablePreSaveTransform( $article, ParserOptions $popts ) {
		$handle = new MessageHandle( $article->getTitle() );
		if ( $handle->isMessageNamespace() && !$handle->isDoc() ) {
			$popts->setPreSaveTransform( false );
		}
		return true;
	}