"; echo "

Simple locale testing routines

"; $currentLocale = setlocale(LC_TIME, 0); echo "Your current system locale is : $currentLocale
"; echo "Joomla has set your locale as : $mosConfig_locale

"; $testLocale = $mainframe->getUserStateFromRequest( "jev_locale", 'jev_locale', "de_DE" ); ?>

try out a locale string

Today's day name in this locale () is : %A"); ?>

Typical unix locale values are tried out below

"; setlocale(LC_TIME, "fr_FR"); echo $today.strftime(" in French (using fr_FR) is %A")."
"; setlocale(LC_TIME, "de_DE"); echo $today.strftime(" in German (using de_DE) is %A.")."
"; $x = setlocale(LC_TIME, "cy_GB"); echo $x." ".$today.strftime(" in Welsh (using cy_GB) is %A.")."
"; // windows type strings echo "
"; echo "

For information about setting locale for windows servers see the following links:

"; echo "See: http://www.unicode.org/onlinedat/countries.html
"; echo "Also see : http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vclib/html/_crt_language_strings.asp
"; echo "Also see : http://docs.moodle.org/en/Table_of_locales
"; echo "http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_238z.asp
"; echo "http://www.loc.gov/standards/iso639-2/php/English_list.php
"; echo "

For windows servers you could try the following pattern

"; setlocale(LC_TIME, "FIN"); echo $today.strftime(" in Finnish (using FIN) is %A,")."
"; setlocale(LC_TIME, "FRA"); echo $today.strftime(" in French (using FRA) is %A")."
"; setlocale(LC_TIME, "DEU"); echo $today.strftime(" in German (using DEU) is %A.")."
"; setlocale(LC_TIME, "cym_gbr"); echo $today.strftime(" in Welsh (using cym_gbr) is %A.")."
"; setlocale(LC_TIME, "german"); echo $today.strftime(" in German (using german) is %A.")."
"; setlocale(LC_TIME, "welsh"); echo $today.strftime(" in Welsh (using welsh) is %A.")."
"; if (@exec("locale -a",$output)){ echo "

Your server supports the following locales

"; echo "

Choose the one most suited to your requirements

"; echo "
";
		print_r($output);
		echo "
"; } }