Bug #16870 » patchfile.patch
t3lib/class.t3lib_tceforms.php 2007-02-25 17:47:17.000000000 +0100 | ||
---|---|---|
$rowCells=array();
|
||
|
||
// Icon:
|
||
$rowCells['title'] = '<img src="clear.gif" width="'.($level*16).'" height="1" alt="" /><strong>'.htmlspecialchars(t3lib_div::fixed_lgd_cs($this->sL($value['tx_templavoila']['title']),30)).'</strong>';;
|
||
$rowCells['title'] = '<img src="clear.gif" width="'.($level*16).'" height="1" alt="" /><strong>'.htmlspecialchars(t3lib_div::fixed_lgd_cs($this->sL_FF($value['tx_templavoila']['title']),30)).'</strong>';;
|
||
|
||
$rowCells['formEl']='';
|
||
if ($value['type']=='array') {
|
||
... | ... | |
$opt=array();
|
||
$opt[]='<option value=""></option>';
|
||
foreach($value['el'] as $kk => $vv) {
|
||
$opt[]='<option value="'.$kk.'">'.htmlspecialchars($this->getLL('l_new') . ' "'.$this->sL($value['el'][$kk]['tx_templavoila']['title']).'"').'</option>';
|
||
$opt[]='<option value="'.$kk.'">'.htmlspecialchars($this->getLL('l_new') . ' "'.$this->sL_FF($value['el'][$kk]['tx_templavoila']['title']).'"').'</option>';
|
||
}
|
||
$rowCells['formEl']='<select name="flexFormsCmdData'.$formPrefix.'['.$key.'][value]">'.implode('',$opt).'</select>';
|
||
}
|
||
... | ... | |
if (!$value['TCEforms']['displayCond'] || $this->isDisplayCondition($value['TCEforms']['displayCond'],$editData,$vDEFkey)) {
|
||
$fakePA=array();
|
||
$fakePA['fieldConf']=array(
|
||
'label' => $this->sL(trim($value['TCEforms']['label'])),
|
||
'label' => $this->sL_FF(trim($value['TCEforms']['label'])),
|
||
'config' => $value['TCEforms']['config'],
|
||
'defaultExtras' => $value['TCEforms']['defaultExtras'],
|
||
'onChange' => $value['TCEforms']['onChange']
|
||
... | ... | |
}
|
||
|
||
/**
|
||
* Fetches language label for key from flexform. This function is also called for "plain" labels (not <code>LLL:</code>). Labels in flexforms are always in UTF-8, so this function temporarily alters $LANG->origCharSet to UTF-8 to correctly convert text.
|
||
*
|
||
* @param string Language label reference, eg. 'LLL:EXT:lang/locallang_core.php:labels.blablabla'
|
||
* @return string The value of the label, fetched for the current backend language.
|
||
*/
|
||
function sL_FF($str) {
|
||
global $LANG;
|
||
$charset = $LANG->origCharSet;
|
||
$LANG->origCharSet = 'utf-8';
|
||
$result = $LANG->sL($str);
|
||
$LANG->origCharSet = $charset;
|
||
return $result;
|
||
}
|
||
|
||
/**
|
||
* Returns language label from locallang_core.php
|
||
* Labels must be prefixed with either "l_" or "m_".
|
||
* The prefix "l_" maps to the prefix "labels." inside locallang_core.php
|
- « Previous
- 1
- …
- 3
- 4
- 5
- Next »