Page MenuHomePhabricator

The toggle defined in $extraUserToggles won't display in the user preferences
Closed, ResolvedPublic

Description

As of the current working copy in the trunk, seems the
options defined in "$extraUserToggles" does not appear in
the user preferences. The "$wgLanguageCode" value had been
set with the "$extraUserToggles" value already defined,
such as 'zh' and 'kk-cyrl'.


Version: unspecified
Severity: normal

Details

Reference
bz18870

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:42 PM
bzimport set Reference to bz18870.

Andrew, this refers to additional preference toggles which are language-specific, grabbed via Language::getExtraUserToggles().

They're listed in the message files in $extraUserToggles. This seems to be used primarily to add a 'nolangconversion' toggle for kk, sr, and zh.

Indeed, the $extraUserToggles should be grabbed based on the content language
instead of the user languages.

(In reply to comment #3)

Indeed, the $extraUserToggles should be grabbed based on the content language
instead of the user languages.

And the way to display the text should be showing based on the user language.

Moved blockers to dependencies because they don't block it and I don't want to get mail about them.