41 $this->mLang = $langobj;
49 return [ $this->mLang->getCode() => $text ];
65 return $t->getPrefixedText();
69 return $this->mLang->getFormattedNsText( $ns );
76 return [ $this->mLang->getCode() ];
80 return $this->mLang->getCode();
84 return $this->mLang->getCode();
88 return $this->mLang->getCode();
119 return $variant === $this->mLang->getCode() ? $variant :
null;
A fake language variant converter.
validateVariant( $variant=null)
getVariantFallbacks( $variant)
convertCategoryKey( $key)
autoConvert( $text, $variant=false)
markNoConversion( $text, $noParse=false)
translate( $text, $variant)
convertTo( $text, $variant)
reloadTables()
Used by test suites which need to reset the converter state.
updateConversionTable(Title $title)
autoConvertToAllVariants( $text)
findVariantLink(&$l, &$n, $ignoreOtherCond=false)
Internationalisation code.
Represents a title within MediaWiki.