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