Wikibase
MediaWiki Wikibase extension
|
Service for looking up the languages understood by a user. More...
Public Member Functions | |
getUserSpecifiedLanguages (User $user) | |
Returns a list of languages the user specified in addition to the non-optional interface language. More... | |
getAllUserLanguages (User $user) | |
Collects all languages from all user settings we can reach at this point. More... | |
Service for looking up the languages understood by a user.
Wikibase\Lib\UserLanguageLookup::getAllUserLanguages | ( | User | $user | ) |
Collects all languages from all user settings we can reach at this point.
Note: This can contain language codes not actually valid to MediaWiki or valid at all.
User | $user | The current user. |
Implemented in Wikibase\Repo\BabelUserLanguageLookup.
Wikibase\Lib\UserLanguageLookup::getUserSpecifiedLanguages | ( | User | $user | ) |
Returns a list of languages the user specified in addition to the non-optional interface language.
Note: This can contain language codes not actually valid to MediaWiki or valid at all.
User | $user | The current user. |
Implemented in Wikibase\Repo\BabelUserLanguageLookup.