Quantcast
Viewing all articles
Browse latest Browse all 11471

frafor on "Polylang does not translate months after update to WP 3.8.1"

Hi there,

I have a site configured with polylang and using two languages (IT/EN).

There is a section "Eventi" that stores some dates in a custom field. It then retrieves the dates to the correct format storing them in two variables in the local language via date_i18n:

$date_it = date_i18n("d F Y", strtotime(get_post_meta(get_the_ID(), "end_date_it", true)));
$date_en = date_i18n("dS F Y", strtotime(get_post_meta(get_the_ID(), "end_date_it", true))); ?>

This was working like a charm, until i updated wordpress to 3.8.1: now it always shows the month in English.

I tried to update Polylang to the latest version but it doesn't change behaviour.

I noticed that even the dates in the backend are displayed in english, even if the original wordpress installation is in italian.

I hope that someone can help me!

https://wordpress.org/plugins/polylang/


Viewing all articles
Browse latest Browse all 11471

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>