Context
The UserLanguage service has been migrated to the new service container. However, it was decided in T278819 that this service should be deprecated and gradually retired out of usage, because services in the service container should be independent of a specific request context, including the user language for that request, and $wgUser will be deprecated eventually (T159299). The method itself was deprecated in https://gerrit.wikimedia.org/r/c/mediawiki/extensions/Wikibase/+/676422.
Objective
The service accessor method is no longer called in any of the Wikibase related extensions:
- Wikibase
- WikibaseLexeme
- WikibaseCirrusSearch
- WikibaseLexemeCirrusSearch
- WikibaseQualityConstraints
- WikibaseMediaInfo
Code search: https://codesearch.wmcloud.org/search/?q=WikibaseRepo%3A%3AgetUserLanguage&i=nope&files=&excludeFiles=&repos=
Additional Considerations
- In each of these extensions, an alternative way to obtain the user language should be found to replace calls to this method, either by utilizing the RequestContext or otherwise (in places where the request is not available).