Translating the_date() and the_time() in french

As other sites have suggested, I’ve updated the /wp-includes/locale.php file to replace all right-side values with the equivalent french values (for days of the week, months of the year, etc.)

I’m still stuck with english dates when I call the_time() in my single.php template file, I don’t know what I’m missing. I’ve also included a fr_FR.mo file in my WordPress in hopes this might magically help.

Am I missing something? I’ve also checked the locale in my template file using get_locale and it’s correctly returning fr_FR.

I’ve updated the /wp-includes/locale.php file to replace all right-side values with the equivalent french values (for days of the week, months of the year, etc.)

The rule of thumb is never to alter a WP core.
Besides, I translated a site four years ago and I updated WordPress many times ever since, meaning /wp-includes was overwritten with a new version during each WordPress update.

In other words, I never bothered myself playing with locale.php and I won’t recommend to do that.

The rule of thumb is never to alter a WP core.
Besides, I translated a site four years ago and I updated WordPress many times ever since, meaning /wp-includes was overwritten with a new version during each WordPress update.

I think you hit it right on as to why you shouldn’t alter the core. It wrecks the maintainability and evolutivity of the installation, since you can no longer update it without losing what new code you’ve introduced.

In my case, I know that the scope of this website is no longer than a year to 2 years and WordPress won’t be updated in the interim.

More to the point…
I thought that the .po file was only used to generate the .mo file, does WordPress use the .po file directly?