I still vaguely understand how to implement transliterator method. I guess, I have to construct a transliterator object first but I don't know how to perform this task. As for the locale script, I got it to work without errors but it does not show any other locales except for the default one. Here's what I've tried so far:
<?php
//Set the default timezone:
date_default_timezone_set('UTC');
//Need a date object:
//$d = new DateTime();
//Create a list of locales:
$locales = array ('en_US', 'fr_FR', 'es_BO', 'zh_Hans_CN', 'ru_RU',
'el_GR', 'is_IS');
//Print the date in each locale:
foreach ($locales as $locale){
//Set the locale:
locale_set_default($locale);
//Print the date:
setlocale(LC_ALL, $locale);
echo "<p>$locale: ".
strftime('%A, %#d %B %Y'). "</p>\n";
}
?>