Last modified: 2014-09-23 22:57:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T32087, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 30087 - Preferences - Date format - display standard date format
Preferences - Date format - display standard date format
Status: NEW
Product: MediaWiki
Classification: Unclassified
User preferences (Other open bugs)
1.18.x
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Iswariya
: patch, patch-reviewed
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-27 18:56 UTC by [[kgh]]
Modified: 2014-09-23 22:57 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
The standard date format is displayed in brackets just next to 'no preference' (276.47 KB, text/plain)
2011-12-20 06:42 UTC, Iswariya
Details

Description [[kgh]] 2011-07-27 18:56:24 UTC
At Special:Preferences - Date and time - Date format one is able to select several options including "no preference" which means that the standard date format of the wiki will be used. However, I think it would be useful to display the result of this setting (=standard date format) in brackets just next to "no preference". Thank you for considering this.
Comment 1 Iswariya 2011-12-05 08:53:05 UTC
Reply to :
------------------------------
(At Special:Preferences - Date and time - Date format one is able to select
several options including "no preference" which means that the standard date
format of the wiki will be used. However, I think it would be useful to display
the result of this setting (=standard date format) in brackets just next to "no
preference". Thank you for considering this.)
------------------------------
Standard date format is displayed in brackets next to 'no preference' by adding the below code:


languages\messages\MessagesEn.php
---------------------------------

1753: 'datedefault'=> 'No preference ('.date('j F Y').', at '.date('H:i').')',
Comment 2 Iswariya 2011-12-20 06:42:38 UTC
Created attachment 9746 [details]
The standard date format is displayed in brackets just next to 'no preference'

Standard date format is added in MessagesEn.php (Line 1752). You can add the code and execute it.
Comment 3 Niklas Laxström 2011-12-20 06:47:13 UTC
Thanks, but you can't use dynamic content in message files. It wouldn't pick up the correct format for all languages anyway.
Comment 4 Bawolff (Brian Wolff) 2011-12-20 06:49:23 UTC
As an aside, no preference doesn't just mean use standard, it also means don't reformat dates from {{#dateformat or if that magic date setting is on (Although that's probably not a large percentage of the cases where the pref does stuff)
Comment 5 Iswariya 2011-12-20 06:55:56 UTC
Alright thanku :)
Comment 6 Sumana Harihareswara 2011-12-21 04:20:10 UTC
Marked patch as reviewed.  Iswariya, do you plan on improving your fix so that you account for the suggestions and critique you have received from Bawolff and Niklas?
Comment 7 [[kgh]] 2012-06-23 22:13:35 UTC
Hey, is this one turning into patch rot or bug rot or both? O_o
Comment 8 Sumana Harihareswara 2012-10-14 21:31:52 UTC
Iswariya, ping. :-)

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links