MediaWiki REL1_40
|
An interface for creating language converters. More...
Public Member Functions | |
__construct (ObjectFactory $objectFactory, $usePigLatinVariant, $isConversionDisabled, $isTitleConversionDisabled, callable $defaultLanguage) | |
getLanguageConverter ( $language=null) | |
Provide a LanguageConverter for given language. | |
isConversionDisabled () | |
Whether to disable language variant conversion. | |
isLinkConversionDisabled () | |
Whether to disable language variant conversion for links. | |
isTitleConversionDisabled () | |
Whether to disable language variant conversion for titles. | |
An interface for creating language converters.
Definition at line 49 of file LanguageConverterFactory.php.
MediaWiki\Languages\LanguageConverterFactory::__construct | ( | ObjectFactory | $objectFactory, |
$usePigLatinVariant, | |||
$isConversionDisabled, | |||
$isTitleConversionDisabled, | |||
callable | $defaultLanguage ) |
ObjectFactory | $objectFactory | |
bool | $usePigLatinVariant | should pig variant of English be used |
bool | $isConversionDisabled | Whether to disable language variant conversion |
bool | $isTitleConversionDisabled | Whether to disable language variant conversion for links |
callable | $defaultLanguage | callback of () : Language, should return default language. Used in getLanguageConverter when $language is null. |
Definition at line 136 of file LanguageConverterFactory.php.
References MediaWiki\Languages\LanguageConverterFactory\isConversionDisabled(), and MediaWiki\Languages\LanguageConverterFactory\isTitleConversionDisabled().
MediaWiki\Languages\LanguageConverterFactory::getLanguageConverter | ( | $language = null | ) |
Provide a LanguageConverter for given language.
Language | StubUserLang | null | $language | for which a LanguageConverter should be provided. If null then LanguageConverter provided for current content language as returned by the callback provided to the constructor. |
Definition at line 179 of file LanguageConverterFactory.php.
References $lang.
Referenced by ApiQueryInfo\__construct(), SpecialMIMESearch\__construct(), SpecialMostLinkedCategories\__construct(), SpecialWantedCategories\__construct(), MediaWiki\Deferred\LinksUpdate\CategoryLinksTable\__construct(), SpecialUnwatchedPages\__construct(), SpecialFileDuplicateSearch\__construct(), SpecialAncientPages\__construct(), SpecialDeadendPages\__construct(), SpecialFewestRevisions\__construct(), SpecialUncategorizedPages\__construct(), SpecialWithoutInterwiki\__construct(), SpecialLonelyPages\__construct(), SpecialListGroupRights\__construct(), MediaWiki\Search\TitleMatcher\__construct(), and MessageCache\__construct().
MediaWiki\Languages\LanguageConverterFactory::isConversionDisabled | ( | ) |
Whether to disable language variant conversion.
Definition at line 194 of file LanguageConverterFactory.php.
Referenced by MediaWiki\Languages\LanguageConverterFactory\__construct(), and Parser\__construct().
MediaWiki\Languages\LanguageConverterFactory::isLinkConversionDisabled | ( | ) |
Whether to disable language variant conversion for links.
Definition at line 212 of file LanguageConverterFactory.php.
MediaWiki\Languages\LanguageConverterFactory::isTitleConversionDisabled | ( | ) |
Whether to disable language variant conversion for titles.
Definition at line 203 of file LanguageConverterFactory.php.
References wfDeprecated().
Referenced by MediaWiki\Languages\LanguageConverterFactory\__construct().