Last modified: 2013-06-27 21:40:04 UTC
We would like to show a 'time elapsed' indicator such as '1 hour ago' or '1 day ago' instead of the full date in the notifications. Since MediaWiki core still doesn't support 'time elapsed' indicators ('1 hour ago'), we can try to use the AFT code or Moodbar code instead. We should also ask Terry if there any way to give this feature a higher priority, so it gets incorporated into core sooner. Note that we would also like to use the saem short timestamps in the 'all-notifications' archive page.
[ Adding Terry as cc, per description. ]
Echo already tries to use Language::prettyTimestamp if it exists, in the flyout and Special:Notifications. Core just doesn't have that at the moment... I don't like the idea of adding an AFT/MB dependency, so we should either get it into core or our own (Echo extension) code.
This has been a long running saga in https://gerrit.wikimedia.org/r/#/c/15746 which was reverted in https://gerrit.wikimedia.org/r/#/c/29947/ Basically, the code is a mess and needs to be refactored to the language team's standards. A similar but incorrect patch was inserted by platform that needs resolving before Language::prettyTimestamp() can proceed. Echo will support whatever the final code once it's done and AFT and MoodBar should be refactored to use that feature in core instead of having Echo dependent on them. I'll look at this in a month because this isn't a showstopper for early releases.
What is the status of this bug?
This is something of an epic effort actually. So far these pieces are merged: https://gerrit.wikimedia.org/r/45708 (core) https://gerrit.wikimedia.org/r/45077 (cldr) https://gerrit.wikimedia.org/r/49018 (core) https://gerrit.wikimedia.org/r/49029 (core) https://gerrit.wikimedia.org/r/52027 (core) https://gerrit.wikimedia.org/r/52033 (core) https://gerrit.wikimedia.org/r/54338 (core) https://gerrit.wikimedia.org/r/54350 (core) These pieces are not yet merged: https://gerrit.wikimedia.org/r/45499 (cldr, depends on one of the 2 below being merged first) https://gerrit.wikimedia.org/r/45294 (core) -or- https://gerrit.wikimedia.org/r/45651 (core) Much of the work over the last few months has been cleaning up MediaWiki's handling of plurals so that it is compatible with CLDR's timeunit rules. We are actually very close to pushing something out at this point. I'll probably merge 45651 into core within the next week or so and then 45499.