Skip to content

Localization: Date format in header should be locale dependent #5059

@vaclavstepan

Description

@vaclavstepan

Describe the bug
Currently, in event header, the date is formatted using the format_event_date macro.
This macro relies on English locale custom for formatting the event date, which may not be OK for non-English languages.

To Reproduce
Steps to reproduce the behavior:

  1. Go to main page of an event.
  2. Switch to a different language
  3. See the date format in the event header stay the same, e.g. 1-13 listopada for Polish.

Expected behavior
The date format should reflect the language, e.g. probably be set by a translation template.
For Czech it would be 12.–14. září (for example).

Additional context
The macro in question is in modules/events/templates/display/conference/_util.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions