* @ingroup Language
*/
class ShiConverter extends LanguageConverter {
-
protected $mDoContentConvert;
public $mToLatin = array(
* update: delete all rule parsing because it's not used
* currently, and just produces a couple of bugs
*
- * @param $rule string
- * @param $flags array
+ * @param string $rule
+ * @param array $flags
* @return array
*/
function parseManualRule( $rule, $flags = array() ) {
/**
* Do not convert content on talk pages
*
- * @param $text string
- * @param $parser Parser
+ * @param string $text
+ * @param Parser $parser
* @return string
*/
function parserConvert( $text, &$parser ) {
- $this->mDoContentConvert = !( is_object( $parser->getTitle() ) && $parser->getTitle()->isTalkPage() );
+ $this->mDoContentConvert = !( is_object( $parser->getTitle() )
+ && $parser->getTitle()->isTalkPage() );
return parent::parserConvert( $text, $parser );
}
* names as they were
* - do not try to find variants for usernames
*
- * @param $link string
- * @param $nt Title
- * @param $ignoreOtherCond bool
+ * @param string &$link
+ * @param Title &$nt
+ * @param bool $ignoreOtherCond
*/
function findVariantLink( &$link, &$nt, $ignoreOtherCond = false ) {
// check for user namespace
}
}
- /**
- * An ugly function wrapper for parsing Image titles
- * (to prevent image name conversion)
- *
- * @param $text string
- * @param $toVariant bool
- *
- * @return string
- */
- function autoConvert( $text, $toVariant = false ) {
- global $wgTitle;
- if ( is_object( $wgTitle ) && $wgTitle->getNamespace() == NS_FILE ) {
- $imagename = $wgTitle->getNsText();
- if ( preg_match( "/^$imagename:/", $text ) ) {
- return $text;
- }
- }
- return parent::autoConvert( $text, $toVariant );
- }
-
/**
* It translates text into variant
*
- * @param $text string
- * @param $toVariant string
+ * @param string $text
+ * @param string $toVariant
*
* @return string
*/