Translating the_date() and the_time() in french
in my wp-config.php file I’ve defined my language as follows:
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.
- The topic ‘Translating the_date() and the_time() in french’ is closed to new replies.