function getLabels()
{
$markerArray = array();
$basePath = 'EXT:' . $this->extKey . '/' . dirname($this->scriptRelPath) . '/locallang.xml';
$languageArray = $this->LOCAL_LANG = t3lib_div::readLLfile($basePath,$this->LLkey,$GLOBALS['TSFE']->renderCharset);
if($this->LLkey=='en')
{
$key = 'default';
}else
{
$key = $this->LLkey;
}
foreach($languageArray[$key] as $key=>$val)
{
$index = '###'.strtoupper($key).'###';
$markerArray[$index] = $val;
}
return $markerArray;
}
call above function it will return whole array of labels
No comments:
Post a Comment