function textdomain($domain = null) { $gettext =& phpgettext(); return $gettext->textdomain($domain); }
function display() { $renderer =& renderer(); $renderer->addbyref('view', $this); $renderer->addbyref('t', phpgettext()); $renderer->display('main.tpl.php'); }
/** retrieve some possible request string (or form) arguments */ $type = (int) mosGetParam($_REQUEST, 'type', 1); $do_pdf = (int) mosGetParam($_REQUEST, 'do_pdf', 0); $id = (int) mosGetParam($_REQUEST, 'id', 0); $task = htmlspecialchars(mosGetParam($_REQUEST, 'task', '')); $act = strtolower(htmlspecialchars(mosGetParam($_REQUEST, 'act', ''))); $section = htmlspecialchars(mosGetParam($_REQUEST, 'section', '')); $no_html = strtolower(mosGetParam($_REQUEST, 'no_html', '')); $cid = (array) mosGetParam($_POST, 'cid', array()); ini_set('session.use_trans_sid', 0); ini_set('session.use_cookies', 1); ini_set('session.use_only_cookies', 1); /* initialize i18n */ $lang = $configuration->current_language->name; $charset = $configuration->current_language->charset; $gettext =& phpgettext(); $gettext->debug = $configuration->mosConfig_locale_debug; $gettext->has_gettext = $configuration->mosConfig_locale_use_gettext; $language = new mamboLanguage($lang); $gettext->setlocale($lang, $language->getSystemLocale()); $gettext->bindtextdomain($lang, $configuration->rootPath() . '/language'); $gettext->bind_textdomain_codeset($lang, $charset); $gettext->textdomain($lang); #$gettext =& phpgettext(); dump($gettext); if ($adminside) { // Start ACL require_once $configuration->rootPath() . '/includes/gacl.class.php'; require_once $configuration->rootPath() . '/includes/gacl_api.class.php'; $acl = new gacl_api(); // Handle special admin side options $option = strtolower(mosGetParam($_REQUEST, 'option', 'com_admin'));
function Tdn_($domain, $msg1, $msg2, $count) { $gettext =& phpgettext(); return $gettext->dngettext($domain, $msg1, $msg2, $count); }