Ticket #141 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

Format the date according to locale settings

Reported by: AeN0 <aen0rphe@…> Owned by: mbonetti
Priority: normal Milestone: Gregarius 0.5.2
Component: TRANSLATIONS Version:
Severity: normal Keywords: date, locale
Cc:

Description

I suggest the use of setlocale() in conjunction with rss.output.lang for the date ...

"Publié: August 27th, 2005, 13:08:00" sounds like weird.

Attachments

locale_date.patch (5.4 kB) - added by oruffin 3 years ago.
better_locale_patch.patch (6.7 kB) - added by oruffin 3 years ago.
Final (?) patch for locale date string (see comments)

Change History

Changed 3 years ago by anonymous

  • milestone changed from Gregarius 0.5.1 to Gregarius 0.5.2

This one isn't going to be easy.

Changed 3 years ago by oruffin

Changed 3 years ago by oruffin

Ok i did work a little on this one, and added my local_date patch. To move forward, maybe we could: - change the config date format to use strftime format string instead of date format string (but we will loose the 'S' format, which provide the 2 letters in english for 'nd', 'th', etc)

or

- add another config parameter that will provide a strftime date format string, used only when we use locale? (but it can be confusing for users?)

Marco, tell me what you think about it.

Changed 3 years ago by oruffin

Final (?) patch for locale date string (see comments)

Changed 3 years ago by oruffin

I just uploaded the patch "better_locale_patch" which is better because : - it take cares of all possible month and day format strings when we build urls to month or day archives - it does not require anychange to how we manage date string in config - it preserve the 'S' format for english date

Let me know if there is a problem

Changed 3 years ago by anonymous

  • status changed from new to closed
  • resolution set to fixed

Patch commited to trunk repository.

Note: See TracTickets for help on using tickets.