Feature #15073 » tslib_pibase-LLsuffix.patch
class.tslib_pibase-LLsuffix.php 2005-12-12 23:12:12.000000000 +0100 | ||
---|---|---|
* @return string The value from LOCAL_LANG.
|
||
*/
|
||
function pi_getLL($key,$alt='',$hsc=FALSE) {
|
||
if (isset($this->LOCAL_LANG[$this->LLkey][$key])) {
|
||
$word = $GLOBALS['TSFE']->csConv($this->LOCAL_LANG[$this->LLkey][$key], $this->LOCAL_LANG_charset[$this->LLkey][$key]); // The "from" charset is normally empty and thus it will convert from the charset of the system language, but if it is set (see ->pi_loadLL()) it will be used.
|
||
// The "from" charset in the conversions below is normally empty and thus it will convert from the charset of the system language, but if it is set (see ->pi_loadLL()) it will be used.
|
||
if ($this->LLsuffix && isset($this->LOCAL_LANG[$this->LLkey][$key.$this->LLsuffix])) {
|
||
$word = $GLOBALS['TSFE']->csConv($this->LOCAL_LANG[$this->LLkey][$key.$this->LLsuffix], $this->LOCAL_LANG_charset[$this->LLkey][$key.$this->LLsuffix]);
|
||
} elseif ($this->LLsuffix && $this->altLLkey && isset($this->LOCAL_LANG[$this->altLLkey][$key.$this->LLsuffix])) {
|
||
$word = $GLOBALS['TSFE']->csConv($this->LOCAL_LANG[$this->altLLkey][$key.$this->LLsuffix], $this->LOCAL_LANG_charset[$this->altLLkey][$key.$this->LLsuffix]);
|
||
} elseif (isset($this->LOCAL_LANG[$this->LLkey][$key])) {
|
||
$word = $GLOBALS['TSFE']->csConv($this->LOCAL_LANG[$this->LLkey][$key], $this->LOCAL_LANG_charset[$this->LLkey][$key]);
|
||
} elseif ($this->altLLkey && isset($this->LOCAL_LANG[$this->altLLkey][$key])) {
|
||
$word = $GLOBALS['TSFE']->csConv($this->LOCAL_LANG[$this->altLLkey][$key], $this->LOCAL_LANG_charset[$this->altLLkey][$key]); // The "from" charset is normally empty and thus it will convert from the charset of the system language, but if it is set (see ->pi_loadLL()) it will be used.
|
||
$word = $GLOBALS['TSFE']->csConv($this->LOCAL_LANG[$this->altLLkey][$key], $this->LOCAL_LANG_charset[$this->altLLkey][$key]);
|
||
} elseif (isset($this->LOCAL_LANG['default'][$key])) {
|
||
$word = $this->LOCAL_LANG['default'][$key]; // No charset conversion because default is english and thereby ASCII
|
||
} else {
|
||
... | ... | |
}
|
||
}
|
||
}
|
||
$this->LLsuffix = $this->conf['_LOCAL_LANG_suffix'] ? '_'.$this->conf['_LOCAL_LANG_suffix'] : '';
|
||
$this->LOCAL_LANG_loaded = 1;
|
||
}
|
||