Service for looking up language names based on MediaWiki's Language class.
More...
|
| __construct (LanguageNameUtils $languageNameUtils, ?string $inLanguage) |
|
| getName (string $languageCode) |
|
Service for looking up language names based on MediaWiki's Language class.
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Lib\LanguageNameLookup::__construct |
( |
LanguageNameUtils | $languageNameUtils, |
|
|
?string | $inLanguage ) |
- Parameters
-
LanguageNameUtils | $languageNameUtils | |
string | null | $inLanguage | Language 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). |
◆ getName()
Wikibase\Lib\LanguageNameLookup::getName |
( |
string | $languageCode | ) |
|
◆ normalize()
Wikibase\Lib\LanguageNameLookup::normalize |
( |
string | $languageCode | ) |
|
|
private |
◆ $inLanguage
Wikibase\Lib\LanguageNameLookup::$inLanguage |
|
private |
◆ $languageNameUtils
LanguageNameUtils Wikibase\Lib\LanguageNameLookup::$languageNameUtils |
|
private |
The documentation for this class was generated from the following file: