How it works:
- Extract phrases: lupdate linguist.php -ts en.ts nl.ts
- Translate: linguist nl.ts
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');
?>