Page MenuHomePhabricator

hrwiki - Wrong date format on single page analysis
Closed, ResolvedPublic

Description

When the bot runs autonomously, everything is fine.

When the bot is started from the Management console, using single page analysis, the dates are in the wrong format.

See good edit vs bad edit.

The bad edits use the wrong declension and capitalization for the month name (Rujan instead of rujna).

Event Timeline

Harej triaged this task as Medium priority.May 2 2022, 6:35 PM
Harej subscribed.

@Ivi104 , can you provide us a list of correctly spelled month names, as well as the incorrectly spelled month names the bot uses?

@Harej, there are two cases:

Day of month known: "2022-11-25" → "25. studenoga 2022."

  • Month names should be in the genitive case: "siječnja", "veljače", "ožujka", "travnja", "svibnja", "lipnja", "srpnja", "kolovoza", "rujna", "listopada", "studenoga", "prosinca"
  • They are now in the nominative case "siječanj", "veljača", "ožujak", "travanj", "svibanj", "lipanj", "srpanj", "kolovoz", "rujan", "listopad", "studeni", "prosinac" (wrong)

Day of month unknown: "2022-11" → "Studeni 2022." (month name capitalized because it starts the 'sentence')

  • Month names in the nominative case: "siječanj", "veljača", "ožujak", "travanj", "svibanj", "lipanj", "srpanj", "kolovoz", "rujan", "listopad", "studeni", "prosinac"

We're now using CS1 templates, and if the bot is editing them, it might be easier for you to just use the ISO 8601 format (date=2022-11-25 or date=2022-11 or year=2022). You will still need the above-mentioned formats for other templates though.

Cyberpower678 claimed this task.