Description:
In wikis with $wgLanguageCode = "en", and display language is not English the preview of 'OpenDyslexic' font in page content is not reverted when the 'Cancel' button is pressed from the Language Panel -> Display Settings.
Steps to Reproduce:
- Go to a page with English content on a wiki with $wgLanguageCode = "en" set
- As a logged-in user, select a language other than English from ULS -> Display Settings -> Language
- Go to Display Settings -> Fonts
- Select 'OpenDyslexic' from the dropdown box to select the English font
- Confirm that the display and content is being previewed in OpenDyslexic
- Press 'Cancel'
Actual Results:
Display messages are restored to the earlier font; content is still displayed in OpenDyslexic. Refreshing the page restores the earlier font for the content.
Expected Results:
Content is displayed with the original font (i.e. system font)
Additional Information:
This problem is not observed when the display language is set to English.
Version: unspecified
Severity: minor
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=50562