Improve display of news dates #142

Open
opened 2018-02-07 21:53:14 +00:00 by paul · 4 comments

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
design
labels 2018-02-07 21:53:14 +00:00
Author
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 2019-04-29 21:04:56 +00:00
Member

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
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?
Member

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
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: FSFE/fsfe-website#142
No description provided.