$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($GLOBALS['TSFE']->sys_language_uid==0)
{
$key = 'default';
}else
{
$res = $GLOBALS["TYPO3_DB"]->exec_SELECTquery("st.lg_iso_2","sys_language sl INNER JOIN static_languages st ON st.uid=sl.static_lang_isocode","sl.uid='".$GLOBALS['TSFE']->sys_language_uid."'");
$row = $GLOBALS["TYPO3_DB"]->sql_fetch_assoc($res);
$key = strtolower($row["lg_iso_2"]);
}
foreach($languageArray[$key] as $key=>$val)
{
$index = '###'.strtoupper($key).'###';
$markerArray[$index] = $this->pi_getLL($key);
}
$basePath = 'EXT:' . $this->extKey . '/' . dirname($this->scriptRelPath) . '/locallang.xml';
$languageArray = $this->LOCAL_LANG = t3lib_div::readLLfile($basePath,$this->LLkey,$GLOBALS['TSFE']->renderCharset);
if($GLOBALS['TSFE']->sys_language_uid==0)
{
$key = 'default';
}else
{
$res = $GLOBALS["TYPO3_DB"]->exec_SELECTquery("st.lg_iso_2","sys_language sl INNER JOIN static_languages st ON st.uid=sl.static_lang_isocode","sl.uid='".$GLOBALS['TSFE']->sys_language_uid."'");
$row = $GLOBALS["TYPO3_DB"]->sql_fetch_assoc($res);
$key = strtolower($row["lg_iso_2"]);
}
foreach($languageArray[$key] as $key=>$val)
{
$index = '###'.strtoupper($key).'###';
$markerArray[$index] = $this->pi_getLL($key);
}