Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\LanguageNameLookup Class Reference

Service for looking up language names based on MediaWiki's Language class. More...

+ Collaboration diagram for Wikibase\Lib\LanguageNameLookup:

Public Member Functions

 __construct (LanguageNameUtils $languageNameUtils, ?string $inLanguage)
 
 getName (string $languageCode)
 

Private Member Functions

 normalize (string $languageCode)
 

Private Attributes

LanguageNameUtils $languageNameUtils
 
 $inLanguage
 

Detailed Description

Service for looking up language names based on MediaWiki's Language class.

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\LanguageNameLookup::__construct ( LanguageNameUtils $languageNameUtils,
?string $inLanguage )
Parameters
LanguageNameUtils$languageNameUtils
string | null$inLanguageLanguage code of the language in which to return the language names. Use LanguageNameUtils::AUTONYMS for autonyms (returns each language name in it's own language).

Member Function Documentation

◆ getName()

Wikibase\Lib\LanguageNameLookup::getName ( string $languageCode)

◆ normalize()

Wikibase\Lib\LanguageNameLookup::normalize ( string $languageCode)
private

Member Data Documentation

◆ $inLanguage

Wikibase\Lib\LanguageNameLookup::$inLanguage
private

◆ $languageNameUtils

LanguageNameUtils Wikibase\Lib\LanguageNameLookup::$languageNameUtils
private

The documentation for this class was generated from the following file: