";
foreach ($langarray as $l) {
$label=split("_",$l);
$class="";
if ($l == $lang)
$class="class='it'";
echo "
".$label[0]."";
}
$foo = getenv("HTTP_ACCEPT_LANGUAGE");
echo "\n";
}
/**
* Sets a new text domain after recording the current one
* so it can be restored later with restore_textdomain().
*
* It's possible to nest calls to these two functions.
* @param string the new text domain to set
*/
function set_textdomain($td)
{
global $_td_stack;
$old_td = textdomain(NULL);
if ($old_td) {
if (!strcmp($old_td, $td))
array_push($_td_stack, false);
else
array_push($_td_stack, $old_td);
}
textdomain($td);
}
/**
* Restore the text domain active before the last call to
* set_textdomain().
*/
function restore_textdomain()
{
global $_td_stack;
$old_td = array_pop($_td_stack);
if ($old_td)
textdomain($old_td);
}
?>