Can i get the currently use locale from Vortex?
Get currrent locale
Get currrent locale
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
Thunderstone Software
-
- Posts: 256
- Joined: Sat Oct 08, 2005 12:40 pm
Get currrent locale
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?
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?
Get currrent locale
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.
The headers/variables HTTP_ACCEPT_CHARSET and HTTP_ACCEPT_LANGUAGE may be of use.
-
- Posts: 256
- Joined: Sat Oct 08, 2005 12:40 pm
Get currrent locale
I'll go with HTTP_ACCEPT_LANGUAGE