PDA

View Full Version : Locales


rashgash
03-03-2005, 03:11 AM
I'm using the setlocale() function in php for setting the locale for time strings. It requires an OS-specific locale string, e.g.: he_IL. Is there a list of locale codes for the VDS setup? I tried running locale -a, but I noticed that command isn't available. Specifically, I'm looking for Hebrew.

Chris
03-03-2005, 05:14 AM
rashgash,

Let us research this a bit...we might be able to get this supported.

rashgash
03-03-2005, 12:50 PM
Thanks, Chris.

Chris
03-03-2005, 03:13 PM
I'm using the setlocale() function in php for setting the locale for time strings. It requires an OS-specific locale string, e.g.: he_IL. Is there a list of locale codes for the VDS setup? I tried running locale -a, but I noticed that command isn't available. Specifically, I'm looking for Hebrew.
OK, I found the he_IL files on the server and I have copied them to your /usr/lib/locale directory. Try the PHP setlocale() function again and see if it works.

rashgash
03-03-2005, 03:37 PM
Chris,

Works like a charm. Thanks a million.

- Josh