#142 Improve display of news dates

Open
opened 2 years ago by paul · 4 comments
paul commented 2 years ago

Listings of tagged news articles appear odd, especially in translated pages.

  • The month of the news date is always shown in English
  • The date format is not internationalized, but also is not in the ISO format, it is basically wrong, in any language.
  • The news date is displayed between headline and newsteaser, if a newsteaser cannot be found, it is just displayed after the headline, and still styled as an introduction to subsequent content. This looks especially odd.

(transferred from pauls kan board)

Listings of tagged news articles appear odd, especially in translated pages. * The month of the news date is always shown in English * The date format is not internationalized, but also is not in the ISO format, it is basically wrong, in any language. * The news date is displayed between headline and newsteaser, if a newsteaser cannot be found, it is just displayed after the headline, and still styled as an introduction to subsequent content. This looks especially odd. (transferred from pauls kan board)
paul added the
bug
label 2 years ago
paul added the
design
label 2 years ago
paul commented 2 years ago
Poster
Original comment from @max.mehl:

What is this item about specifically? We should separate between news archive, news frontpage, and some general issues like the date localisation.

Regarding the latter, I noted down that @paul had the idea to render all localised dates for 365(+1) days using GNU date, and save them in an XML file.

##### Original comment from @max.mehl: What is this item about specifically? We should separate between news archive, news frontpage, and some general issues like the date localisation. Regarding the latter, I noted down that @paul had the idea to render all localised dates for 365(+1) days using GNU date, and save them in an XML file.
reinhard removed the due date 0001-01-01 1 year ago
reinhard commented 5 months ago
Collaborator

xsl 2.0 has powerful date formatting capabilities, including language-specific formatting: https://www.oreilly.com/library/view/xslt-2nd-edition/9780596527211/ch04s05.html

xsl 2.0 has powerful date formatting capabilities, including language-specific formatting: https://www.oreilly.com/library/view/xslt-2nd-edition/9780596527211/ch04s05.html
max.mehl commented 5 months ago
Owner

Do we actually use XSL 2.0? IIRC we were doomed to use v1 earlier because of some dependency. Is this still the case?

Do we actually use XSL 2.0? IIRC we were doomed to use v1 earlier because of some dependency. Is this still the case?
reinhard commented 5 months ago
Collaborator

We use XSL 1.0 and looking closer, it seems like switching to 2.0 could turn out to be way harder than I expected. So maybe this is not a good option.

We use XSL 1.0 and looking closer, it seems like switching to 2.0 could turn out to be way harder than I expected. So maybe this is not a good option.
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.