Page MenuHomePhabricator

Replace local date format with the Commons date format
Closed, DeclinedPublic

Description

Replace local date format with the Commons date format, e.g.
|Date = DD.MM.YYYY|Date = YYYY-MM-DD

Where this wish was mentioned

Event Timeline

Quick first story grooming:

  • Converting dates is an extremely hard problem. See T87764, for example. Whatever we implement will most probably be a "good enough" solution that will stop working in many situations (e.g. Chinese).
  • Deleting template parameters is certainly possible. It was not part of the original CommonsHelper2 specification, that's why we have not talked about it yet.
  • Wrapping text in language templates is part of the original CommonsHelper2 specification. We decided this should not be part of an MVP. A separate ticket exists: T198607.
  • I think the last bit is technically already resolved via T198316. I juts went to https://www.mediawiki.org/wiki/Extension:FileImporter/Data/de.wikipedia#Licensing and added this alternative headline.
JStrodt_WMDE renamed this task from Local formats for file information should be translated into the format on Commons: to Translate local formats for file information into the format on Commons:.Jan 25 2019, 11:58 AM
JStrodt_WMDE updated the task description. (Show Details)
JStrodt_WMDE renamed this task from Translate local formats for file information into the format on Commons: to Replace local date format with the Commons date format.Jan 25 2019, 12:13 PM
JStrodt_WMDE updated the task description. (Show Details)

Commons have a bot that will try to fix dates. There is no guarantee that dates on a specific wiki always uses the same format. So I think it is better to leave the converting to the bot on Commons instead of making the code of FileImporter more complicated. I can of course not forbid the team to implement it but I would support if they decide not to do it (to close this as not done).

As argued above this is a hard problem. A general solution that works with all Wikimedia languages would require an entirely new sub-system in the FileImporter codebase. More specialized community-maintained solutions exist.