Fuzzy DateTime in french

Plugin Banner

Fuzzy DateTime in french

by mll

Download
Description

This plugin adds a function that prints a fuzzy date and time in french. For example, “22 octobre 2012 à 14:00” can get changed to “Il y a 3 heures”, or “Hier en début d’après-midi”, or “Il y a 2 mois”, etc.

It also provides hooks to automatically fuzzify comments dates and times, but it’s pretty rough at the moment.

This plugin is adapted from Splee’s Fuzzy DateTime.

Contribute

I (mll) am not really a developer. Lots of things could be improved : * make this plugin really international, with a GUI to edit what’s hard-coded at the moment * make a GUI to set the options on wich dates must be fuzzified * …

So, if you feel like contributing to the development of this plugin, please let me know!

  1. Install and activate like any other plugin.
  2. Go to Settings > Fuzzy DateTime and edit the sentences as you will
  3. The comments dates and times are automatically changed. You may also use in your theme the function fuzzy_datetime(the_date).
  1. The settings page

    The settings page

  2. A sample of the fussy date and time generated

    A sample of the fussy date and time generated

My comments date and time are a bit garbled. How comes ?

Yes, the plugin replaces the dates for a fuzzy DateTime, and the time with nothing. So, if you had “Rédigé le 22 octobre 2012 à 14:00”, you’ll get instead “Rédigé le Il y a 3 heures à 14:00”.

You’ll have to edit your theme, or better, make a child theme to have something correct. If someone has a solution, I’ll gladly include it in a future version.

0.8

  • fixed: working informative URLs
  • fixed: GMT offset problem
  • added: more complete (but not exhaustive yet) hooks to comments
  • fixed: UTF-8 encoding

0.7

  • fixed: minor typos
  • fixed: still some stripslashes problems
  • no changes 🙁 using hooks

0.6.FR.2

  • fixed: one typo corrected (“journé”)
  • changed: now returns (and does not print) a string

0.6.FR.1

  • added: French adaptation (more than a translation)
  • fixed: added stripslashes to the admin form values
  • fixed: maybe some other bugs, I don’t remember
Back to top