https://bugzilla.wikimedia.org/show_bug.cgi?id=19239
Web browser: ---
Summary: Special:Preferences dies if user's date preference is
not valid and the language does not have a formatting
type named 'default'
Product: MediaWiki
Version: unspecified
Platform: All
URL: http://cs.wikipedia.org/wiki/Special:Preferences?uselang
=cs
OS/Version: All
Status: NEW
Keywords: need-review, patch
Severity: major
Priority: Normal
Component: User preferences
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=6231)
--> (https://bugzilla.wikimedia.org/attachment.cgi?id=6231)
simple patch to solve (?) the problem
The newly revamped [[Special:Preferences]] checks if all user preference values
are valid, and if not, it resets them to the global defaults.
In case of the 'date' preference, the global default is hardcoded to 'default'
(see $wgDefaultUserOptions), however, some languages do not have a date
formatting style called 'default' (e.g. cs, hu). In those languages,
Special:Preferences dies with an internal error “Global default default is
invalid for field date” (see
http://cs.wikipedia.org/wiki/Soubor:Vnit%C5%99n%C3%AD_chyba2.jpg).
The global default for date formatting should be language-dependent. However,
no big deal, it seems we already have that, we are just not using it. See
MessagesXx::$defaultDateFormat.
Therefore, I believe a fix might be as simple as presented in the attachment.
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l