On 25 October 2012 07:07, Tyler Romeo tylerromeo@gmail.com wrote:
So recently https://gerrit.wikimedia.org/r/15746 was merged. It implements a pretty timestamp function. Yet it was somehow completely ignored that we actually have an MWTimestamp class made specifically for timestamp objects in MediaWiki.
…and its getHumanTimestamp is implemented in an unlocalizable way, see http://translatewiki.net/wiki/Thread:Support/ago_%28%22$1_ago%22%29_cannot_w...
Replace the implementation of getHumanTimestamp with a call to Language::prettyTimestamp() and we are done, aren’t we? The language-specific user-friendly formatting belongs to the language class, anyway. And I am not sure what should have prettyTimestamp() done differently – is wfTimestamp deprecated in favor of MWTimestamp, or what?
-- [[cs:User:Mormegil | Petr Kadlec]]