-
☆ A M B ☆
- 24,524 Posts
You’ll need a snippet (or a plugin or a TV using @EVAL) to set this in your template, using a variable based on the user’s language choice
<?php
// get the user's language choice
$loc = <however this is set/retrieved>;
// set up a conversion from language choice to locale strings if necessary
setlocale(LC_ALL, $loc);
http://php.net/manual/en/function.setlocale.php
I put the line setlocale(LC_TIME, ’fr_FR.UTF8’); at the beginning of the Ditto’s snippet. Isn’t it the same as creating a new snippet? And obviously my charset is charset=UTF-8.
Maybe it’s because of the server. I’m working on local with Xampp.
Hi everybody,
It works now (on the server)! Coroico explained me that the setlocale setting doesn’t work on Windows XP. So don’t worry if you are in this case.