本文整理匯總了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']);