How it works:

Usage:
<?php
    
// Parse XML file "nl.ts" into $dictionary

    
function tr($phrase)
    {
        return 
$GLOBALS['dictionary'][$phrase];
    }
    
    
printf(tr("Click <a href='%s'>here</a>") . " " .
        
tr("to login"), 'login.php');
?>