本文整理汇总了PHP中TTi18n::getLanguage方法的典型用法代码示例。如果您正苦于以下问题:PHP TTi18n::getLanguage方法的具体用法?PHP TTi18n::getLanguage怎么用?PHP TTi18n::getLanguage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TTi18n
的用法示例。
在下文中一共展示了TTi18n::getLanguage方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: MessageListFactory
$smarty->assign('INSTALLER_ENABLED', $config_vars['other']['installer_enabled']);
}
if (isset($system_settings['system_version']) and DEPLOYMENT_ON_DEMAND == FALSE and APPLICATION_VERSION != $system_settings['system_version']) {
$smarty->assign('VERSION_MISMATCH', TRUE);
}
if (isset($system_settings)) {
$smarty->assign_by_ref('system_settings', $system_settings);
}
if (isset($current_company)) {
$smarty->assign_by_ref('current_company', $current_company);
}
if (isset($config_vars)) {
$smarty->assign_by_ref('config_vars', $config_vars);
}
if (TTi18n::getLanguage() != '') {
$smarty->assign('CALENDAR_LANG', TTi18n::getLanguage());
} else {
$smarty->assign('CALENDAR_LANG', 'en');
}
if (isset($current_user)) {
$smarty->assign_by_ref('current_user', $current_user);
$smarty->assign_by_ref('current_user_prefs', $current_user_prefs);
if (!isset($skip_message_check)) {
$profiler->startTimer("Interface.inc - Check for UNREAD messages...");
//CHeck for unread messages
$mlf = new MessageListFactory();
$unread_messages = $mlf->getNewMessagesByUserId($current_user->getId());
Debug::text('UnRead Messages: ' . $unread_messages, __FILE__, __LINE__, __METHOD__, 10);
$smarty->assign_by_ref('unread_messages', $unread_messages);
if (isset($_COOKIE['newMailPopUp'])) {
$smarty->assign_by_ref('newMailPopUp', $_COOKIE['newMailPopUp']);