Pages (3):    1 2 3   
Member
Member
Ipstenu   23-06-2014, 20:29
#11

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

Member
Member
Ipstenu   23-06-2014, 20:43
#12

[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.

Administrator
Administrator
acrylian   23-06-2014, 20:44
#13

Maybe just ask your host to install the locale… Shared hosts here I know have all the local one (de_DE) by default and mine installed a en_US one they forgot after a server upgrade in minutes.

Administrator
Administrator
acrylian   23-06-2014, 20:47
#14

You can use that on any theme page directly or even better your theme's functions.php (like you do these things on WP ;-)). on the cfg. file you cannot do anything like that, too early in the chain.

Member
Member
Ipstenu   23-06-2014, 21:52
#15

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

Member
Member
sbillard   23-06-2014, 22:50
#16

[quote]But if I toss echo setlocale(LC_ALL, 0); into a php file, it kicks back C.
[/quote]
What do you get from echo setLocale(LC_ALL,'EN_US.UTF-8');?

I would still like to know what the 'dynamic-locale' cookie value was.

Member
Member
Ipstenu   24-06-2014, 00:30
#17

echo setLocale(LC_ALL,'EN_US.UTF-8'); echos nothing though if I use en_US.UTF-8 it works.

The dynamic-locale cookie value is %0E%CC%0A%E86

Administrator
Administrator
acrylian   24-06-2014, 08:02
#18

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?

Member
Member
Ipstenu   24-06-2014, 13:27
#19

Nope, I don't know either, so I have an open ticket with my host and politely asked my frind who IS a server guru :)

Administrator
Administrator
acrylian   24-06-2014, 15:18
#20

Ok, keep us posted what those two may find out.

Pages (3):    1 2 3   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.