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...

Public Member Functions

 __construct ( $inLanguage=null)
 
 getName ( $languageCode)
 

Private Member Functions

 normalize ( $languageCode)
 

Private Attributes

 $inLanguage = null
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

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

Member Function Documentation

◆ getName()

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

◆ normalize()

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

Member Data Documentation

◆ $inLanguage

Wikibase\Lib\LanguageNameLookup::$inLanguage = null
private

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