Base class for Language objects.
More...
|
static | isValidInternalCode (string $code) |
| Returns true if a language code string is of a valid form, whether or not it exists. More...
|
|
Base class for Language objects.
◆ fetchLanguageNames()
Wikimedia\Parsoid\Language\Language::fetchLanguageNames |
( |
string |
$inLanguage, |
|
|
string |
$include |
|
) |
| |
Get an array of language names, indexed by code.
- Parameters
-
string | $inLanguage | Code of language in which to return the names. Use null for autonyms (native names) |
string | $include | One of:
all all available languages
mw only if the language is defined in MediaWiki or wgExtraLanguageNames (default)
mwfile only if the language is in mw and has a message file
|
- Returns
- array
- Deprecated:
- Appears to be unused
◆ getConverter()
Wikimedia\Parsoid\Language\Language::getConverter |
( |
| ) |
|
- Returns
- LanguageConverter|null
◆ isValidInternalCode()
static Wikimedia\Parsoid\Language\Language::isValidInternalCode |
( |
string |
$code | ) |
|
|
static |
Returns true if a language code string is of a valid form, whether or not it exists.
This includes codes which are used solely for customisation via the MediaWiki namespace.
- Parameters
-
string | $code | a MediaWiki-internal code |
- Returns
- bool
◆ setConverter()
The documentation for this class was generated from the following file:
- src/Language/Language.php