本文整理汇总了PHP中language::includeLLFile方法的典型用法代码示例。如果您正苦于以下问题:PHP language::includeLLFile方法的具体用法?PHP language::includeLLFile怎么用?PHP language::includeLLFile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类language
的用法示例。
在下文中一共展示了language::includeLLFile方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getInitializedTranslator
/**
* Loads the language data and returns the corresponding translator instance.
*
* @return language
*/
protected function getInitializedTranslator()
{
if ($this->translator === NULL) {
if (isset($GLOBALS['LANG'])) {
$this->translator = $GLOBALS['LANG'];
} else {
$this->translator = t3lib_div::makeInstance('language');
if (isset($GLOBALS['BE_USER'])) {
$this->translator->init($GLOBALS['BE_USER']->uc['lang']);
} else {
$this->translator->init('default');
}
}
$this->translator->includeLLFile(t3lib_extMgm::extPath('lang') . 'locallang_general.xml');
$this->translator->includeLLFile(t3lib_extMgm::extPath('seminars') . 'locallang_db.xml');
$this->includeAdditionalLanguageFiles();
}
return $this->translator;
}
示例2: __construct
/**
* The constructor.
*/
public function __construct()
{
$this->language = t3lib_div::makeInstance('language');
$this->language->init($GLOBALS['BE_USER']->uc['lang']);
$this->language->includeLLFile('EXT:seminars/Resources/Private/Language/FrontEnd/locallang.xml');
}