The class BabelUserLanguageLookup is in the Wikibase extension, but should be in Babel. This creates a situation where each extension has to reimplement the code.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Cache the result of getUserLanguageInfo() | mediawiki/extensions/Babel | master | +88 -31 |
Status | Subtype | Assigned | Task | |
---|---|---|---|---|
· · · | ||||
Open | None | T104912 Provide API for (likely) language preference | ||
Open | None | T148005 BabelUserLanguageLookup is in Wikibase, should be in Babel | ||
· · · |
Event Timeline
Comment Actions
Agreed, though there is a need ot integrate with ULS too: T104912.
Maybe core can provide the API and let ULS/Babel hook into its guesses, adding the information they have.
Comment Actions
Change 350569 had a related patch set uploaded (by Amire80; owner: Amire80):
[mediawiki/extensions/Babel@master] Cache the result of getUserLanguageInfo()
Comment Actions
Change 350569 merged by Nikerabbit:
[mediawiki/extensions/Babel@master] Cache the result of getUserLanguageInfo()
Comment Actions
Mmm, so the code in Wikibase that reads from Babel can now be updated to use Babel's functions. See https://phabricator.wikimedia.org/diffusion/EBAB/browse/master/Babel.class.php;3c475fe3dacf8dfbdeb22e58a7fb0b77b7bed4a8$352 as a starting point.