<?php
// $Id: i18n.php,v 1.6 2003/04/24 18:36:00 rufustfirefly Exp $
// $Author: rufustfirefly $
// GettextXML support
LoadObjectDependency('PHP.GettextXML');
GettextXML::bindtextdomain('FreeMED', './locale');
GettextXML::setlanguage($GLOBALS['freemed']['__language']);
// Set basic text domain
GettextXML::textdomain('freemed');
GettextXML::textdomain('template_default');
if ($template) {
GettextXML::textdomain('template_'.$template);
}
// Set text domain for page
GettextXML::textdomain(str_replace('.php', '', page_name()));
// If there is a module loaded, get its text
if (isset($_REQUEST['module'])) {
GettextXML::textdomain(strtolower($_REQUEST['module']));
}
// For debugging, uncomment the next line; it allows all untranslated strings
// to come up with a '*' appended to them.
//GettextXML::markuntranslated('*');
?>