Project

General

Profile

Bug #20259 » 8360-t3lib_div_1.diff

Administrator Admin, 2009-04-01 00:46

View differences:

t3lib/class.t3lib_div.php 2009-04-01 00:44:28.000000000 +0200
// converting the default language (English)
// this needs to be done for a few accented loan words and extension names
// NOTE: no conversion is done when in UTF-8 mode!
if (is_array($LOCAL_LANG['default']) && $targetCharset != 'utf-8') {
if (is_array($LOCAL_LANG['default']) && $targetCharset != '' && $targetCharset != 'utf-8') {
foreach ($LOCAL_LANG['default'] as &$labelValue) {
$labelValue = $csConvObj->utf8_decode($labelValue, $targetCharset);
}
......
}
// Checking if charset should be converted.
if (is_array($LOCAL_LANG[$langKey]) && $targetCharset!='utf-8') {
if (is_array($LOCAL_LANG[$langKey]) && $targetCharset!='' && $targetCharset!='utf-8') {
foreach($LOCAL_LANG[$langKey] as $labelKey => $labelValue) {
$LOCAL_LANG[$langKey][$labelKey] = $csConvObj->utf8_decode($labelValue,$targetCharset);
}
(2-2/2)