Author: avarab
Description:
Note: this bug is not a duplicate of bug 248.
$wgUseDynamicDates should be split in two, $wgUseDynamicDates and $wgUseDates,
i.e. one for the whole [[January 1]] [[2005]] => [[2005]]-[[January 5|01-01]]
thing and another ($wgUseDates) for the "Date format" option in the preferences
which would only affect the output of the date(),time() and timeanddate()
functions in the language file. Both could then be switched on to achive the
current effect.
Ideally, from the $wgUseDates point of view this would be done by parsing the
$wgDateFormatsXx array, which is currently for english;
array( 'No preference', 'January 15, 2001', '15 January 2001', '2001 January
15', '2001-01-15' );
Just do array_shift and then use the numbers in a switch statement, this would
ensure that the array can be made smaller for languages who don't need such a
long format or larger for those that do.
$wgUseDates should probably be turned on in the language file rather than in
LocalSettings, this should be an interface feature like any other.
Version: 1.5.x
Severity: enhancement