I need to display to user a list of localized day names (like \'Monday\', \'Tuesday\', ...) in a form. I know ho to get day name of any date. But is there a particular and f
$dayNames = array(
'Sunday',
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday',
);
Is pretty fail-proof :)
On a more serious note, the likes of PHPBB do this by defining localization files and hard coding for different languages. It's really the only way to do this reliably.
I would recommend downloading something like that and looking at the code to see how its done.
http://www.phpbb.com/downloads/olympus.php