I’m trying to use date_i18n() to display a localised date in my theme.
<?php echo date_i18n( 'F j, Y', strtotime( get_the_time( "Y-m-d" ) ) ); ?>
However, this always returns the English version of the month, rather than the French version. I’m using wordpress as a network. My primary site has the default WPLANG (so english), and I’m setting the second site to french by setting the WPLANG to fr_FR in site-settings.
Other translations on the page are working fine, so wordpress is aware that the language is different.
I downloaded the necessary .mo and .po files for French, but it doesn’t have months in there, so I assume there’s somewhere else these are set/used.
Any help would be appreciated as I’ve been stumped by this for hours.