Last modified: 2014-06-16 02:51:01 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 T58603, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 56603 - #time function should be able to output a language's standard date format
#time function should be able to output a language's standard date format
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
ParserFunctions (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-05 06:27 UTC by Yair Rand
Modified: 2014-06-16 02:51 UTC (History)
2 users (show)

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


Attachments

Description Yair Rand 2013-11-05 06:27:43 UTC
It would be useful, particularly for multilingual wikis, if #time had a code for outputting the standard date layout of a language. For example, for English this would be equivalent to the code "j F Y", but in Mandarin it appears to be "Y年n月j日".

I imagine this data is already stored somewhere, as it seems to be used in signature timestamps on different language wikis.
Comment 1 Bawolff (Brian Wolff) 2013-11-06 04:37:52 UTC
Note you can somewhat use formatdate to do that (Formatdate outputs the user's preference date format, which defaults to the standard wiki one, but can be changed)
Comment 2 Jarek Tuszynski 2014-06-16 02:51:01 UTC
I did not notice this bug, but I am working on writing a Lua module for translating dated on Commons. The old Template did EVERYTHING  from scratch and the new one will be mostly an interface to {{#time}}. And the first step was to convert the templates cataloging language's standard date formats to {{#time}} formats. They can be found at https://commons.wikimedia.org/wiki/Module:I18n/date

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


Navigation
Links