Preferred locale for Russian
<?php
if($loc_ru = setlocale(LC_ALL, 'ru_RU.utf8', 'rus_RUS.1251', 'rus', 'russian')) {
echo "<p>Preferred locale for Russian on this system is \"$loc_ru\".<br />\n";
echo strftime('%A %d %B %Y', mktime()) . ".</p>\n";
}else
echo "<p>Couldn't set a Russian locale.</p>\n";
?>
Related examples in the same category