CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Bug #8381

Multilanguage is not working

Added by Alexander Grein almost 3 years ago. Updated over 2 years ago.

Status:New Start date:2010-06-21
Priority:Should have Due date:
Assignee:- % Done:

0%

Category:-
Target version:-
Votes: 0

Description

In calendar- and listinterval view, only the title will be throw out in the correct language.
In list and next-event view the default language will be throw out at all, independent of the FE language.

History

Updated by Alexander Grein almost 3 years ago

SOLUTION:

CHANGE THIS (LINE 1260):

function makelistNormal($res) {
    $items=array();
    // Make list table rows
    while($this->internal['currentRow'] = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
        // get the translated record if the content language is not the default language
        $items[]=$this->makeListItemNormal();
    }

    $out = '<div'.$this->pi_classParam('listrow').'>
        '.implode(chr(10),$items).'
        </div>';
    return $out;
}

TO THIS:

function makelistNormal($res) {
    $items=array();
    // Make list table rows
    while($this->internal['currentRow'] = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
        // get the translated record if the content language is not the default language
        if ($GLOBALS['TSFE']->sys_language_content) {
            $OLmode = $GLOBALS['TSFE']->tmpl->setup['config.']['sys_language_overlay'];
            $this->internal['currentRow'] = $GLOBALS['TSFE']->sys_page->getRecordOverlay('tt_news', $this->internal['currentRow'], $GLOBALS['TSFE']->sys_language_content, $OLmode);
        }
        $items[]=$this->makeListItemNormal();
    }

    $out = '<div'.$this->pi_classParam('listrow').'>
        '.implode(chr(10),$items).'
        </div>';
    return $out;
}

Cheers!

Updated by Rob De Vries almost 3 years ago

This will fix the localization problem with the list, but not with the JS calendar. The titles are translated, but the subheader is still in the default language.

Also available in: Atom PDF