Page MenuHomePhabricator

ULS should override $wgLoginLanguageSelector
Open, Needs TriagePublic

Description

When $wgLoginLanguageSelector is set to true, Special:Login and Special:CreateAccount show a language selector that statically created based on system message MediaWiki:Loginlanguagelinks. It could be improved with ULS.

Event Timeline

As far as I can see, that special page has no extension points. This means it is not possible to do this in a maintainable way without core changes.

It sounds like a hook would be useful inside makeLanguageSelector (includes/specialpage/LoginSignupSpecialPage.php) to allow extensions to override the default behaviour.

The default behaviour when the hook variable passed by reference is an empty string we could return
count( $links ) > 0 ? $this->msg( 'loginlanguagelabel' )->rawParams( $this->getLanguage()->pipeList( $links ) )->escaped() : '';