All Low add-ons are now owned by EEHarbor. Read the blog post.

Support archive

Low Event Dates displayed in French or other language?

David Couillard 19 Jul 2012 23:14 problem, complete

Is there a way to translate the language of the displayed low event dates?

I've tried with the exp:datetime_convert from Hippo like I've done it with regular EE dates, but it doesn't seem to work with Low Events dates...

I'd like to get the displayed dates in French for my client...
Using EE 2.5.1 with Low Event 1.0.1.

Thanks!

Replies

  1. Low 20 Jul 2012 06:42

    Hi David,

    Low Events uses the native language packs for translations. So if you have the French language pack installed and the site is set to use it, it should show the dates in French.

  2. David Couillard 23 Jul 2012 23:00

    Thanks for the reply!

    I actually have a bilingual website but not using MSM.
    So I can't set the site to use a specific language pack.

    Date/Time Language Converter works well with any date field. But doesn't seem to play well with Low Event...

  3. Low 24 Jul 2012 06:46

    What's the code you're using for the Converter and Low Events variables?

  4. David Couillard 26 Jul 2012 02:52

    This is what I was trying using the date time converter and the low events in between...


    {exp:datetime_convert language="fr_FR" format="%A %e %B %Y"}{event_date:start_date}{/exp:datetime_convert}


    But this type of date will work tho:


    {exp:datetime_convert language="fr_FR" format="%A %e %B %Y"}{entry_date}{/exp:datetime_convert}


    The datetime convert language plugin seems not to like the low event way of displaying dates... I guess low event uses two dates when an even gets on multiple days...

  5. Low 26 Jul 2012 07:00

    The plugin requires a timestamp while Low Events will return YYYY-MM-DD by default. Try this:

    {exp:datetime_convert language="fr_FR" format="%A %e %B %Y"}{event_date:start_date format="%U"}{/exp:datetime_convert}

  6. David Couillard 27 Jul 2012 22:03

    That worked perfectly :)
    Thank you very much!!