getConf('i18n.locale'));
textdomain($TEXTDOMAIN);
}
$msg = _($msg);
}
if ($p1 !== null)
{
$msg = str_replace('@1', $p1, $msg);
}
if ($p2 !== null)
{
$msg = str_replace('@2', $p2, $msg);
}
if ($p3 !== null)
{
$msg = str_replace('@3', $p3, $msg);
}
return $msg;
}
function __autoload($className)
{
global $autoload, $mioloClassesPath;
// echo "
autoload: $className";
$className = strtolower($className);
$file = $mioloClassesPath . '/' . $autoload->getFile($className);
if ($file == '')
{
echo "className: $className not found!
";
}
if ( file_exists($file) && is_file($file) )
{
include_once($file);
}
else
{
echo "
File not found: $file";
}
}
?>