How can I find out which locales are installed on my server?
- Date added:
- Thursday, 03 April 2008
- Last revised:
- Saturday, 27 March 2010
To format date and time a so called "locale" library installed on your server is used. Which date/time formats are supported by this library can vary extremely from environment to environment. Which locale joomla uses is defined different in the current releases. In Joomla 1.5 the translation teams provide a list of locales along their translation which is picked up and used by Joomla automagically (Mostly it matches well). In Joomla 1.0 you have to type in the locale you want to use in the global configuration.
Mostly you notice that something is wrong when weekdays etc. are displayed in the wrong language or if date format settings you typed in in the EventList configuration have no effect.
If this is the case it might be a good idea to check if the used locale is available on your server. You can do that easily if you have shell access by performing this command: "locale -a".
If you don't have shell access use the attached script for that. Upload it to your server and point your browser to it. The script will list each locale available on your server environment. Note: The "system" function needs to be enabled!