Tim Starling wrote:
I've written some PHP code to convert date formats
from those typed to a
user preference. A demonstration is now available at:
http://www.piclab.com/wiki/wiki.phtml?title=Date_demonstration
There's also some information at:
http://meta.wikipedia.org/wiki/Dynamic_dates
Any comments would be appreciated. There's just a few minor things left to
do: for example I want to have an option in LocalSettings.php to disable it.
I haven't seen your code, but if you haven't already done so I highly
recommend putting the guts of this into Language.php, so it doesn't
clutter up the common code, and so other languages that want such an
option can adapt it cleanly.
The user option should also override the sitewide setting in
Language::date() ($wgAmericanDates true or false -- incidentally,
although there were terrible flame wars a few months ago when it was
suggested to change the date format used to display timestamps from
American to British order, I've not heard a peep since the default got
flipped during the server upgrade over a month ago.)
Can I please have whatever access is necessary to
enable me to install this
on
test.wikipedia.org, and ultimately on the live server?
I'll see about setting up a login for you. (Erik probably should get
one, too.)
-- brion vibber (brion @
pobox.com)