本文整理汇总了PHP中rex_i18n::msgappendFile方法的典型用法代码示例。如果您正苦于以下问题:PHP rex_i18n::msgappendFile方法的具体用法?PHP rex_i18n::msgappendFile怎么用?PHP rex_i18n::msgappendFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类rex_i18n
的用法示例。
在下文中一共展示了rex_i18n::msgappendFile方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: rex_register_extension
<?php
$REX['ADDON']['yform']['templatepaths'][] = $REX['INCLUDE_PATH'] . '/addons/yform/templates/';
rex_register_extension('ADDONS_INCLUDED', function () {
$REX['ADDON']['yform']['templatepaths'][] = rex_path::addonData('yform', 'templates/');
}, array(), REX_EXTENSION_EARLY);
include_once $REX['INCLUDE_PATH'] . '/addons/' . $mypage . '/classes/basic/class.rex_radio.inc.php';
include_once $REX['INCLUDE_PATH'] . '/addons/' . $mypage . '/classes/basic/class.rex_yform_list.inc.php';
include_once $REX['INCLUDE_PATH'] . '/addons/' . $mypage . '/classes/basic/class.rex_yform.inc.php';
if ($REX['REDAXO'] && $REX['USER']) {
rex_i18n::msgappendFile($REX['INCLUDE_PATH'] . '/addons/' . $mypage . '/lang/');
$REX['ADDON'][$mypage]['SUBPAGES'] = array();
$REX['ADDON'][$mypage]['SUBPAGES'][] = array('', rex_i18n::msg('yform_overview'));
if (rex::getUser()->isAdmin()) {
$REX['ADDON'][$mypage]['SUBPAGES'][] = array('description', rex_i18n::msg('yform_description'));
}
function rex_yform_css($params)
{
$params['subject'] .= "\n " . '<link rel="stylesheet" type="text/css" href="../files/addons/yform/yform.css" media="screen, projection, print" />';
$params['subject'] .= "\n " . '<script src="../files/addons/yform/manager.js" type="text/javascript"></script>';
if ($REX['REDAXO']) {
$params['subject'] .= "\n " . '<link rel="stylesheet" type="text/css" href="../files/addons/yform/manager.css" media="screen, projection, print" />';
}
return $params['subject'];
}
rex_register_extension('PAGE_HEADER', 'rex_yform_css');
}
示例2: array
<?php
/**
* yform
* @author jan.kristinus[at]redaxo[dot]org Jan Kristinus
* @author <a href="http://www.yakamara.de">www.yakamara.de</a>
*/
$mypage = 'email';
$REX['ADDON']['yform']['classpaths']['action'][] = $REX['INCLUDE_PATH'] . '/addons/yform/plugins/email/classes/action/';
include $REX['INCLUDE_PATH'] . '/addons/yform/plugins/email/classes/basic/class.rex_yform_emailtemplate.inc.php';
if ($REX['REDAXO'] && !$REX['SETUP']) {
rex_i18n::msgappendFile($REX['INCLUDE_PATH'] . '/addons/yform/plugins/email/lang/');
$REX['ADDON']['version'][$mypage] = '4.12';
$REX['ADDON']['author'][$mypage] = 'Jan Kristinus';
$REX['ADDON']['supportpage'][$mypage] = 'www.yakamara.de/tag/redaxo/';
$REX['PERM'][] = 'yform[email]';
if ($REX['USER'] && (rex::getUser()->isAdmin() || $REX['USER']->hasPerm('yform[email]'))) {
$REX['ADDON']['yform']['SUBPAGES'][] = array('email', rex_i18n::msg('yform_email_templates'));
}
}