My guess is that when there's no locale detectable, it's not actually failing back to anything so it's unable to save the serialized data?
When I check via shell:
$ locale LANG=en_US.UTF-8 LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=
so that's what I want.
But if I toss echo setlocale(LC_ALL, 0); into a php file, it kicks back C.
.<
From man setlocale on my box:
The locale "C" or "POSIX" is a portable locale; its LC_CTYPE part corresponds to the 7-bit ASCII character set.
This may be endemic to my OS/PHP setup?
http://bugs.centos.org/view.php?id=3187
https://www.centos.org/forums/viewtopic.php?t=11893
sigh Not sure how to force that around.
Same thing happens on ZenPhoto20
[quote]1. The general language option: options table > locale (setOption('locale','en_US',true); – true means add to database permanently, false means temporarily - works for most options btw).
[/quote]
Where do you set that? You mean I put the option value in the DB as setOption('locale','en_US',true); ? I tried putting that in my zenphoto.cfg.php file, but it white-screened on me.
It's a VPS :) So technically I can install everything I want. But ... it HAS the locale, is the thing! It's set to en_US like it should be and the local is installed and working. It's just kicking setlocale weirdly. I have a ticket in to see if they can make any more sense of it.
functions.php didn't work so I put it in themeoptions.php and THAT seemed to make both the installer and the admin happy.
fingers crossed for now
Right, my fault, theme's functions.php is probably too late to change the option for everything. themeoptions.php comes earlier. At least good if that works for now.
The dynamic locale cookie looks not correct. Makes sort of sense if there is no locale sticking…
Since I am no server export are you sure the server is setup correctly regarding the locale?