Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Matt Gibbs

    (@mgibbs189)

    You need to set the locale in wp-config.php or on your page.

    setlocale( LC_ALL, ‘fr_FR’ );

    Thread Starter Guillaume84

    (@guillaume84)

    Thank you, but if it’s working for the <?php the_time('l, F jS, Y') ?> it’s not wordking for the field “date” of CFS. Any idea? Thanks.

    Hi!

    I have the same problem for polish date.
    “the_date” and “the_time” are showing in my language but not for:
    <?php echo date(‘d.F.Y’, strtotime(CFS()->get(‘my-date’))); ?>
    For cfs date I have months in english.

    Any tip how to solve it?

    Thread Starter Guillaume84

    (@guillaume84)

    Hi gordonek,
    this code works for me…

    <?php $dateformatstring = “D d M”; $unixtimestamp = strtotime(CFS()->get(‘my-date’)); echo date_i18n($dateformatstring, $unixtimestamp); ?>

    I hope that it will be ok for your problem.

    This is working great!
    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Display date in French’ is closed to new replies.