Ubuntu locale
I've followed this guide
When I run locale as root, I see all definitions in Portuguese, but if I run as a regular user, locale is set to POSIX
I need to set this so that dates in php are shown in Portuguese.
What else do I need to do?
Thanks
N
3 Replies
LC_ALL="your_loccale"; export LC_ALL
And , in your PHP script:
setlocale (LC_ALL, "your_locale");
In my case, this file contains :
LC_ALL="en_US.UTF-8"
LANG="en_US.UTF-8"
You need to make sure the corresponding language-pack-xx is installed (in my case, language-pack-en).
Hope it helps…