Hello
Just another issue concerning dates. In my localhost, my dates works fine in French. On servor, it appears in English, I don’t know how to fix it, and it’s a big problem for me.
The website is on OVH, and I don’t think OVH needs any language installation. (I didn’t find any documentation about this).
But here is another clue : I have copied/pasted all the files of the site into another OVH server and this time, the site is displayed in french, like it have to be.
I’m a bit lost about this issue, but I’m still supposing it comes from the server. How can I fix it ?
Do you have SSH access to the servers? If I recall correctly, OVH are mostly a dedicated server and VPS provider. If that’s the case, I doubt OVH has documentation on language installation as the method differs between OSes, regardless of the host. By default most Linux distributions have en_US.utf8 and other variants of en installed.
When you use date functions like strftime, PHP gets the month, weekday strings from the server. The server doesn’t know Wednesday is Mercredi unless you have the languages installed.
I actually have access to the SSH. I’ve never done that before, it makes me a little scared. How am I supposed to change to fr_FR.uft8 ? What is the command line to write?
Do you think a <? phpinfo(); ?> file could be usefull ?
You don’t need to do anything complicated. Assuming you’re on Ubuntu, first think you can do, is connect to the offending server via SSH an use the command:
locale -a
This should list all of the installed languages. Check if fr_FR.utf8 is listed.
Doesn’t change anything.
I tried FR.UTF8, fr_FR.UTF-8, and fr_FR.iso88591 (just trying)
I’m really starting to worry, especially with these possible solutions that do not work.
I assure you I put exactly the same files on another OVH server and that it works in French.
On top on that, some people reported that they saw the date of June 9 since three days on the home page, while the default today date always worked for me in both URL…
I have called OVH and my server is mutualized, so I can’t change the OS. Matiere-revue.com and latolerie.fr are running on Linux. You can check every informations you need here
Do you think this is necessarily a server problem?