$sk = $wgUser->getSkin();
foreach ( $categories as $category => $type ) {
$title = Title::makeTitleSafe( NS_CATEGORY, $category );
+ $wgContLang->findVariantLink( $category, $title );
$text = $wgContLang->convertHtml( $title->getText() );
$this->mCategoryLinks[$type][] = $sk->makeLinkObj( $title, $text );
}
}
/**
- * caption convert, base on preg_replace_callback
+ * caption convert, base on preg_replace
*
* to convert text in "title" or "alt", like '<img alt="text" ... '
* or '<span title="text" ... '