Get currrent locale

Post Reply
michel.weber
Posts: 256
Joined: Sat Oct 08, 2005 12:40 pm

Get currrent locale

Post by michel.weber »

Can i get the currently use locale from Vortex?
User avatar
John
Site Admin
Posts: 2597
Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:

Get currrent locale

Post by John »

Not directly. You may be able to get the default from the environment variables (LANG or LC_*) if they are set.
John Turnbull
Thunderstone Software
michel.weber
Posts: 256
Joined: Sat Oct 08, 2005 12:40 pm

Get currrent locale

Post by michel.weber »

Hmmm

None of thes variables seem to be set in our environments.
Also, it's more the client side i'm interested in.

Maybe i can get this from the browser via the http headers?
User avatar
mark
Site Admin
Posts: 5513
Joined: Tue Apr 25, 2000 6:56 pm

Get currrent locale

Post by mark »

I don't think you can get the client's locale directly.
The headers/variables HTTP_ACCEPT_CHARSET and HTTP_ACCEPT_LANGUAGE may be of use.
michel.weber
Posts: 256
Joined: Sat Oct 08, 2005 12:40 pm

Get currrent locale

Post by michel.weber »

I'll go with HTTP_ACCEPT_LANGUAGE
Post Reply